| * arch/arm/include/asm/hardware/sp810.h |
| * ARM PrimeXsys System Controller SP810 header file |
| * Copyright (C) 2009 ST Microelectronics |
| * Viresh Kumar <viresh.linux@gmail.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_TIMERENnSEL_SHIFT(n) (15 + ((n) * 2)) |
| static inline void sysctl_soft_reset(void __iomem *base) |
| /* switch to slow mode */ |
| writel(0x2, base + SCCTRL); |
| /* writing any value to SCSYSSTAT reg will reset system */ |
| writel(0, base + SCSYSSTAT); |
| #endif /* __ASM_ARM_SP810_H */ |