Skip to content

Commit

Permalink
ARM: 6722/1: SPEAr: sp810: switch to slow mode before reset
Browse files Browse the repository at this point in the history
In sysctl_soft_reset(), switch to slow mode before resetting the system
via the system controller.  This is required.

Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Shiraz Hashim authored and Russell King committed Feb 21, 2011
1 parent ac1556b commit b8272a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/include/asm/hardware/sp810.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

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);
}
Expand Down

0 comments on commit b8272a6

Please sign in to comment.