|
@@ -36,6 +36,7 @@
|
|
|
#include <plat/iic-core.h>
|
|
|
#include <plat/keypad-core.h>
|
|
|
#include <plat/sdhci.h>
|
|
|
+#include <plat/reset.h>
|
|
|
|
|
|
/* Initial IO mappings */
|
|
|
|
|
@@ -71,6 +72,11 @@ static void s5pv210_idle(void)
|
|
|
local_irq_enable();
|
|
|
}
|
|
|
|
|
|
+static void s5pv210_sw_reset(void)
|
|
|
+{
|
|
|
+ __raw_writel(0x1, S5P_SWRESET);
|
|
|
+}
|
|
|
+
|
|
|
/* s5pv210_map_io
|
|
|
*
|
|
|
* register the standard cpu IO areas
|
|
@@ -145,5 +151,8 @@ int __init s5pv210_init(void)
|
|
|
/* set idle function */
|
|
|
pm_idle = s5pv210_idle;
|
|
|
|
|
|
+ /* set sw_reset function */
|
|
|
+ s5p_reset_hook = s5pv210_sw_reset;
|
|
|
+
|
|
|
return sysdev_register(&s5pv210_sysdev);
|
|
|
}
|