| * arch/arm/include/asm/hardware/sp810.h |
| * ARM PrimeXsys System Controller SP810 header file |
| * Copyright (C) 2009 ST Microelectronics |
| * Viresh Kumar<viresh.kumar@st.com> |
| * This file is licensed under the terms of the GNU General Public |
| * License version 2. This program is licensed "as is" without any |
| * warranty of any kind, whether express or implied. |
| #ifndef __ASM_ARM_SP810_H |
| #define __ASM_ARM_SP810_H |
| /* sysctl registers offset */ |
| #define SCPERIPHID0 0xFE0 |
| #define SCPERIPHID1 0xFE4 |
| #define SCPERIPHID2 0xFE8 |
| #define SCPERIPHID3 0xFEC |
| #define SCCTRL_TIMEREN0SEL_REFCLK (0 << 15) |
| #define SCCTRL_TIMEREN0SEL_TIMCLK (1 << 15) |
| #define SCCTRL_TIMEREN1SEL_REFCLK (0 << 17) |
| #define SCCTRL_TIMEREN1SEL_TIMCLK (1 << 17) |
| static inline void sysctl_soft_reset(void __iomem *base) |
| /* writing any value to SCSYSSTAT reg will reset system */ |
| writel(0, base + SCSYSSTAT); |
| #endif /* __ASM_ARM_SP810_H */ |