aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/realview_pb1176.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-realview/realview_pb1176.c')
-rw-r--r--arch/arm/mach-realview/realview_pb1176.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c
index 226769664101..e4abe94fb11a 100644
--- a/arch/arm/mach-realview/realview_pb1176.c
+++ b/arch/arm/mach-realview/realview_pb1176.c
@@ -21,7 +21,7 @@
21 21
22#include <linux/init.h> 22#include <linux/init.h>
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24#include <linux/sysdev.h> 24#include <linux/device.h>
25#include <linux/amba/bus.h> 25#include <linux/amba/bus.h>
26#include <linux/amba/pl061.h> 26#include <linux/amba/pl061.h>
27#include <linux/amba/mmci.h> 27#include <linux/amba/mmci.h>
@@ -333,12 +333,13 @@ static struct sys_timer realview_pb1176_timer = {
333 .init = realview_pb1176_timer_init, 333 .init = realview_pb1176_timer_init,
334}; 334};
335 335
336static void realview_pb1176_reset(char mode) 336static void realview_pb1176_restart(char mode, const char *cmd)
337{ 337{
338 void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL); 338 void __iomem *reset_ctrl = __io_address(REALVIEW_SYS_RESETCTL);
339 void __iomem *lock_ctrl = __io_address(REALVIEW_SYS_LOCK); 339 void __iomem *lock_ctrl = __io_address(REALVIEW_SYS_LOCK);
340 __raw_writel(REALVIEW_SYS_LOCK_VAL, lock_ctrl); 340 __raw_writel(REALVIEW_SYS_LOCK_VAL, lock_ctrl);
341 __raw_writel(REALVIEW_PB1176_SYS_SOFT_RESET, reset_ctrl); 341 __raw_writel(REALVIEW_PB1176_SYS_SOFT_RESET, reset_ctrl);
342 dsb();
342} 343}
343 344
344static void realview_pb1176_fixup(struct tag *tags, char **from, 345static void realview_pb1176_fixup(struct tag *tags, char **from,
@@ -378,7 +379,6 @@ static void __init realview_pb1176_init(void)
378#ifdef CONFIG_LEDS 379#ifdef CONFIG_LEDS
379 leds_event = realview_leds_event; 380 leds_event = realview_leds_event;
380#endif 381#endif
381 realview_reset = realview_pb1176_reset;
382} 382}
383 383
384MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176") 384MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176")
@@ -389,8 +389,10 @@ MACHINE_START(REALVIEW_PB1176, "ARM-RealView PB1176")
389 .init_early = realview_init_early, 389 .init_early = realview_init_early,
390 .init_irq = gic_init_irq, 390 .init_irq = gic_init_irq,
391 .timer = &realview_pb1176_timer, 391 .timer = &realview_pb1176_timer,
392 .handle_irq = gic_handle_irq,
392 .init_machine = realview_pb1176_init, 393 .init_machine = realview_pb1176_init,
393#ifdef CONFIG_ZONE_DMA 394#ifdef CONFIG_ZONE_DMA
394 .dma_zone_size = SZ_256M, 395 .dma_zone_size = SZ_256M,
395#endif 396#endif
397 .restart = realview_pb1176_restart,
396MACHINE_END 398MACHINE_END