brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 58fe9e8 Raw
63 lines · c
1/*2 * ARM PrimeXsys System Controller SP810 header file3 *4 * Copyright (C) 2009 ST Microelectronics5 * Viresh Kumar <vireshk@kernel.org>6 *7 * This file is licensed under the terms of the GNU General Public8 * License version 2. This program is licensed "as is" without any9 * warranty of any kind, whether express or implied.10 */11 12#ifndef __AMBA_SP810_H13#define __AMBA_SP810_H14 15#include <linux/io.h>16 17/* sysctl registers offset */18#define SCCTRL			0x00019#define SCSYSSTAT		0x00420#define SCIMCTRL		0x00821#define SCIMSTAT		0x00C22#define SCXTALCTRL		0x01023#define SCPLLCTRL		0x01424#define SCPLLFCTRL		0x01825#define SCPERCTRL0		0x01C26#define SCPERCTRL1		0x02027#define SCPEREN			0x02428#define SCPERDIS		0x02829#define SCPERCLKEN		0x02C30#define SCPERSTAT		0x03031#define SCSYSID0		0xEE032#define SCSYSID1		0xEE433#define SCSYSID2		0xEE834#define SCSYSID3		0xEEC35#define SCITCR			0xF0036#define SCITIR0			0xF0437#define SCITIR1			0xF0838#define SCITOR			0xF0C39#define SCCNTCTRL		0xF1040#define SCCNTDATA		0xF1441#define SCCNTSTEP		0xF1842#define SCPERIPHID0		0xFE043#define SCPERIPHID1		0xFE444#define SCPERIPHID2		0xFE845#define SCPERIPHID3		0xFEC46#define SCPCELLID0		0xFF047#define SCPCELLID1		0xFF448#define SCPCELLID2		0xFF849#define SCPCELLID3		0xFFC50 51#define SCCTRL_TIMERENnSEL_SHIFT(n)	(15 + ((n) * 2))52 53static inline void sysctl_soft_reset(void __iomem *base)54{55	/* switch to slow mode */56	writel(0x2, base + SCCTRL);57 58	/* writing any value to SCSYSSTAT reg will reset system */59	writel(0, base + SCSYSSTAT);60}61 62#endif /* __AMBA_SP810_H */63