summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-spear/restart.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-04-19 22:23:13 +0530
committerArnd Bergmann <arnd@arndb.de>2012-05-14 17:34:05 +0200
commite3978dc7dfcb9e7b022bda775929943b43bdefd8 (patch)
treec37d37291c0b7df7c3207d2e042d2f1253af2afd /arch/arm/plat-spear/restart.c
parentb31e23726bb9d6cd8848fc539b23330769830110 (diff)
SPEAr13xx: Add source files
This patch adds source files for SPEAr13xx Machines. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Deepak Sikri <deepak.sikri@st.com> Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Diffstat (limited to 'arch/arm/plat-spear/restart.c')
-rw-r--r--arch/arm/plat-spear/restart.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-spear/restart.c b/arch/arm/plat-spear/restart.c
index 4471a232713..ea0a61302b7 100644
--- a/arch/arm/plat-spear/restart.c
+++ b/arch/arm/plat-spear/restart.c
@@ -16,6 +16,7 @@
#include <mach/spear.h>
#include <mach/generic.h>
+#define SPEAR13XX_SYS_SW_RES (VA_MISC_BASE + 0x204)
void spear_restart(char mode, const char *cmd)
{
if (mode == 's') {
@@ -23,6 +24,10 @@ void spear_restart(char mode, const char *cmd)
soft_restart(0);
} else {
/* hardware reset, Use on-chip reset capability */
+#ifdef CONFIG_ARCH_SPEAR13XX
+ writel_relaxed(0x01, SPEAR13XX_SYS_SW_RES);
+#else
sysctl_soft_reset((void __iomem *)VA_SPEAR_SYS_CTRL_BASE);
+#endif
}
}