diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-05 13:06:28 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 07:57:16 -0500 |
commit | baa9588344d35d751d6e2b1677ec67e7b32d2878 (patch) | |
tree | 16996ca64d788d0fcd66053dd9d50d4557eea5c2 /arch/arm/mach-omap2 | |
parent | 35b47a405db2b26ce4e541e7add02e792b04f1fe (diff) |
ARM: restart: omap: use new restart hook
Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2')
29 files changed, 38 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index a17a6c49e18d..2e730242132f 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -303,4 +303,5 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | |||
303 | .init_irq = omap2_init_irq, | 303 | .init_irq = omap2_init_irq, |
304 | .init_machine = omap_2430sdp_init, | 304 | .init_machine = omap_2430sdp_init, |
305 | .timer = &omap2_timer, | 305 | .timer = &omap2_timer, |
306 | .restart = omap_prcm_restart, | ||
306 | MACHINE_END | 307 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 670919c04851..7111677c7e6b 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -730,4 +730,5 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | |||
730 | .init_irq = omap3_init_irq, | 730 | .init_irq = omap3_init_irq, |
731 | .init_machine = omap_3430sdp_init, | 731 | .init_machine = omap_3430sdp_init, |
732 | .timer = &omap3_timer, | 732 | .timer = &omap3_timer, |
733 | .restart = omap_prcm_restart, | ||
733 | MACHINE_END | 734 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 63f4b4fefb46..a01d08118a40 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -217,4 +217,5 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | |||
217 | .init_irq = omap3_init_irq, | 217 | .init_irq = omap3_init_irq, |
218 | .init_machine = omap_sdp_init, | 218 | .init_machine = omap_sdp_init, |
219 | .timer = &omap3_timer, | 219 | .timer = &omap3_timer, |
220 | .restart = omap_prcm_restart, | ||
220 | MACHINE_END | 221 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index cff2e3249fee..8a46ad8f1227 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -985,4 +985,5 @@ MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") | |||
985 | .init_irq = gic_init_irq, | 985 | .init_irq = gic_init_irq, |
986 | .init_machine = omap_4430sdp_init, | 986 | .init_machine = omap_4430sdp_init, |
987 | .timer = &omap4_timer, | 987 | .timer = &omap4_timer, |
988 | .restart = omap_prcm_restart, | ||
988 | MACHINE_END | 989 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index 25704759d241..c1d6b6338b00 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c | |||
@@ -100,4 +100,5 @@ MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD") | |||
100 | .init_irq = omap3_init_irq, | 100 | .init_irq = omap3_init_irq, |
101 | .init_machine = am3517_crane_init, | 101 | .init_machine = am3517_crane_init, |
102 | .timer = &omap3_timer, | 102 | .timer = &omap3_timer, |
103 | .restart = omap_prcm_restart, | ||
103 | MACHINE_END | 104 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 56ea01184ec9..18c079070ec3 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -493,4 +493,5 @@ MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | |||
493 | .init_irq = omap3_init_irq, | 493 | .init_irq = omap3_init_irq, |
494 | .init_machine = am3517_evm_init, | 494 | .init_machine = am3517_evm_init, |
495 | .timer = &omap3_timer, | 495 | .timer = &omap3_timer, |
496 | .restart = omap_prcm_restart, | ||
496 | MACHINE_END | 497 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index 9aea158ba514..75c731c45b2d 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -356,4 +356,5 @@ MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") | |||
356 | .init_irq = omap2_init_irq, | 356 | .init_irq = omap2_init_irq, |
357 | .init_machine = omap_apollon_init, | 357 | .init_machine = omap_apollon_init, |
358 | .timer = &omap2_timer, | 358 | .timer = &omap2_timer, |
359 | .restart = omap_prcm_restart, | ||
359 | MACHINE_END | 360 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index e1de33ebf95a..c3402cdf0bac 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -636,6 +636,7 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
636 | .init_irq = omap3_init_irq, | 636 | .init_irq = omap3_init_irq, |
637 | .init_machine = cm_t35_init, | 637 | .init_machine = cm_t35_init, |
638 | .timer = &omap3_timer, | 638 | .timer = &omap3_timer, |
639 | .restart = omap_prcm_restart, | ||
639 | MACHINE_END | 640 | MACHINE_END |
640 | 641 | ||
641 | MACHINE_START(CM_T3730, "Compulab CM-T3730") | 642 | MACHINE_START(CM_T3730, "Compulab CM-T3730") |
@@ -646,4 +647,5 @@ MACHINE_START(CM_T3730, "Compulab CM-T3730") | |||
646 | .init_irq = omap3_init_irq, | 647 | .init_irq = omap3_init_irq, |
647 | .init_machine = cm_t3730_init, | 648 | .init_machine = cm_t3730_init, |
648 | .timer = &omap3_timer, | 649 | .timer = &omap3_timer, |
650 | .restart = omap_prcm_restart, | ||
649 | MACHINE_END | 651 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 952df9b6c020..0b06ac3d440b 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -301,4 +301,5 @@ MACHINE_START(CM_T3517, "Compulab CM-T3517") | |||
301 | .init_irq = omap3_init_irq, | 301 | .init_irq = omap3_init_irq, |
302 | .init_machine = cm_t3517_init, | 302 | .init_machine = cm_t3517_init, |
303 | .timer = &omap3_timer, | 303 | .timer = &omap3_timer, |
304 | .restart = omap_prcm_restart, | ||
304 | MACHINE_END | 305 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 99e6e7a76d2e..519e5f9d491c 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -662,4 +662,5 @@ MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | |||
662 | .init_irq = omap3_init_irq, | 662 | .init_irq = omap3_init_irq, |
663 | .init_machine = devkit8000_init, | 663 | .init_machine = devkit8000_init, |
664 | .timer = &omap3_secure_timer, | 664 | .timer = &omap3_secure_timer, |
665 | .restart = omap_prcm_restart, | ||
665 | MACHINE_END | 666 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index a89d72309de2..f462d8c65bc4 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -106,6 +106,7 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") | |||
106 | .init_machine = omap_generic_init, | 106 | .init_machine = omap_generic_init, |
107 | .timer = &omap2_timer, | 107 | .timer = &omap2_timer, |
108 | .dt_compat = omap242x_boards_compat, | 108 | .dt_compat = omap242x_boards_compat, |
109 | .restart = omap_prcm_restart, | ||
109 | MACHINE_END | 110 | MACHINE_END |
110 | #endif | 111 | #endif |
111 | 112 | ||
@@ -124,6 +125,7 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") | |||
124 | .init_machine = omap_generic_init, | 125 | .init_machine = omap_generic_init, |
125 | .timer = &omap2_timer, | 126 | .timer = &omap2_timer, |
126 | .dt_compat = omap243x_boards_compat, | 127 | .dt_compat = omap243x_boards_compat, |
128 | .restart = omap_prcm_restart, | ||
127 | MACHINE_END | 129 | MACHINE_END |
128 | #endif | 130 | #endif |
129 | 131 | ||
@@ -142,6 +144,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") | |||
142 | .init_machine = omap3_init, | 144 | .init_machine = omap3_init, |
143 | .timer = &omap3_timer, | 145 | .timer = &omap3_timer, |
144 | .dt_compat = omap3_boards_compat, | 146 | .dt_compat = omap3_boards_compat, |
147 | .restart = omap_prcm_restart, | ||
145 | MACHINE_END | 148 | MACHINE_END |
146 | #endif | 149 | #endif |
147 | 150 | ||
@@ -160,5 +163,6 @@ DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") | |||
160 | .init_machine = omap4_init, | 163 | .init_machine = omap4_init, |
161 | .timer = &omap4_timer, | 164 | .timer = &omap4_timer, |
162 | .dt_compat = omap4_boards_compat, | 165 | .dt_compat = omap4_boards_compat, |
166 | .restart = omap_prcm_restart, | ||
163 | MACHINE_END | 167 | MACHINE_END |
164 | #endif | 168 | #endif |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 199a174e1ba8..34ccde484fa6 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -398,4 +398,5 @@ MACHINE_START(OMAP_H4, "OMAP2420 H4 board") | |||
398 | .init_irq = omap2_init_irq, | 398 | .init_irq = omap2_init_irq, |
399 | .init_machine = omap_h4_init, | 399 | .init_machine = omap_h4_init, |
400 | .timer = &omap2_timer, | 400 | .timer = &omap2_timer, |
401 | .restart = omap_prcm_restart, | ||
401 | MACHINE_END | 402 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 6434bdcd7ade..e1850d555616 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -674,6 +674,7 @@ MACHINE_START(IGEP0020, "IGEP v2 board") | |||
674 | .init_irq = omap3_init_irq, | 674 | .init_irq = omap3_init_irq, |
675 | .init_machine = igep_init, | 675 | .init_machine = igep_init, |
676 | .timer = &omap3_timer, | 676 | .timer = &omap3_timer, |
677 | .restart = omap_prcm_restart, | ||
677 | MACHINE_END | 678 | MACHINE_END |
678 | 679 | ||
679 | MACHINE_START(IGEP0030, "IGEP OMAP3 module") | 680 | MACHINE_START(IGEP0030, "IGEP OMAP3 module") |
@@ -684,4 +685,5 @@ MACHINE_START(IGEP0030, "IGEP OMAP3 module") | |||
684 | .init_irq = omap3_init_irq, | 685 | .init_irq = omap3_init_irq, |
685 | .init_machine = igep_init, | 686 | .init_machine = igep_init, |
686 | .timer = &omap3_timer, | 687 | .timer = &omap3_timer, |
688 | .restart = omap_prcm_restart, | ||
687 | MACHINE_END | 689 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index e75102a5eb0a..84bbdd6e5aff 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -436,4 +436,5 @@ MACHINE_START(OMAP_LDP, "OMAP LDP board") | |||
436 | .init_irq = omap3_init_irq, | 436 | .init_irq = omap3_init_irq, |
437 | .init_machine = omap_ldp_init, | 437 | .init_machine = omap_ldp_init, |
438 | .timer = &omap3_timer, | 438 | .timer = &omap3_timer, |
439 | .restart = omap_prcm_restart, | ||
439 | MACHINE_END | 440 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 736861463b34..cc1dd541224a 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -691,6 +691,7 @@ MACHINE_START(NOKIA_N800, "Nokia N800") | |||
691 | .init_irq = omap2_init_irq, | 691 | .init_irq = omap2_init_irq, |
692 | .init_machine = n8x0_init_machine, | 692 | .init_machine = n8x0_init_machine, |
693 | .timer = &omap2_timer, | 693 | .timer = &omap2_timer, |
694 | .restart = omap_prcm_restart, | ||
694 | MACHINE_END | 695 | MACHINE_END |
695 | 696 | ||
696 | MACHINE_START(NOKIA_N810, "Nokia N810") | 697 | MACHINE_START(NOKIA_N810, "Nokia N810") |
@@ -701,6 +702,7 @@ MACHINE_START(NOKIA_N810, "Nokia N810") | |||
701 | .init_irq = omap2_init_irq, | 702 | .init_irq = omap2_init_irq, |
702 | .init_machine = n8x0_init_machine, | 703 | .init_machine = n8x0_init_machine, |
703 | .timer = &omap2_timer, | 704 | .timer = &omap2_timer, |
705 | .restart = omap_prcm_restart, | ||
704 | MACHINE_END | 706 | MACHINE_END |
705 | 707 | ||
706 | MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | 708 | MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") |
@@ -711,4 +713,5 @@ MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | |||
711 | .init_irq = omap2_init_irq, | 713 | .init_irq = omap2_init_irq, |
712 | .init_machine = n8x0_init_machine, | 714 | .init_machine = n8x0_init_machine, |
713 | .timer = &omap2_timer, | 715 | .timer = &omap2_timer, |
716 | .restart = omap_prcm_restart, | ||
714 | MACHINE_END | 717 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 1843e141f3a7..bb6031f6dcb6 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -561,4 +561,5 @@ MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") | |||
561 | .init_irq = omap3_init_irq, | 561 | .init_irq = omap3_init_irq, |
562 | .init_machine = omap3_beagle_init, | 562 | .init_machine = omap3_beagle_init, |
563 | .timer = &omap3_secure_timer, | 563 | .timer = &omap3_secure_timer, |
564 | .restart = omap_prcm_restart, | ||
564 | MACHINE_END | 565 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 1653d1813308..60912e473253 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -683,4 +683,5 @@ MACHINE_START(OMAP3EVM, "OMAP3 EVM") | |||
683 | .init_irq = omap3_init_irq, | 683 | .init_irq = omap3_init_irq, |
684 | .init_machine = omap3_evm_init, | 684 | .init_machine = omap3_evm_init, |
685 | .timer = &omap3_timer, | 685 | .timer = &omap3_timer, |
686 | .restart = omap_prcm_restart, | ||
686 | MACHINE_END | 687 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index 1b2a77621626..7ecf04a3ff1d 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -210,6 +210,7 @@ MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") | |||
210 | .init_irq = omap3_init_irq, | 210 | .init_irq = omap3_init_irq, |
211 | .init_machine = omap3logic_init, | 211 | .init_machine = omap3logic_init, |
212 | .timer = &omap3_timer, | 212 | .timer = &omap3_timer, |
213 | .restart = omap_prcm_restart, | ||
213 | MACHINE_END | 214 | MACHINE_END |
214 | 215 | ||
215 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | 216 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") |
@@ -219,4 +220,5 @@ MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | |||
219 | .init_irq = omap3_init_irq, | 220 | .init_irq = omap3_init_irq, |
220 | .init_machine = omap3logic_init, | 221 | .init_machine = omap3logic_init, |
221 | .timer = &omap3_timer, | 222 | .timer = &omap3_timer, |
223 | .restart = omap_prcm_restart, | ||
222 | MACHINE_END | 224 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 6297e814cddd..7071a2473a6b 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -608,4 +608,5 @@ MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console") | |||
608 | .init_irq = omap3_init_irq, | 608 | .init_irq = omap3_init_irq, |
609 | .init_machine = omap3pandora_init, | 609 | .init_machine = omap3pandora_init, |
610 | .timer = &omap3_timer, | 610 | .timer = &omap3_timer, |
611 | .restart = omap_prcm_restart, | ||
611 | MACHINE_END | 612 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index ab226473deeb..6e47987d989b 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -456,4 +456,5 @@ MACHINE_START(SBC3530, "OMAP3 STALKER") | |||
456 | .init_irq = omap3_init_irq, | 456 | .init_irq = omap3_init_irq, |
457 | .init_machine = omap3_stalker_init, | 457 | .init_machine = omap3_stalker_init, |
458 | .timer = &omap3_secure_timer, | 458 | .timer = &omap3_secure_timer, |
459 | .restart = omap_prcm_restart, | ||
459 | MACHINE_END | 460 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 2741a34630b1..5bb590a40f2b 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -383,4 +383,5 @@ MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") | |||
383 | .init_irq = omap3_init_irq, | 383 | .init_irq = omap3_init_irq, |
384 | .init_machine = omap3_touchbook_init, | 384 | .init_machine = omap3_touchbook_init, |
385 | .timer = &omap3_secure_timer, | 385 | .timer = &omap3_secure_timer, |
386 | .restart = omap_prcm_restart, | ||
386 | MACHINE_END | 387 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 7722d4d97fb9..955cbee91b46 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -578,4 +578,5 @@ MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") | |||
578 | .init_irq = gic_init_irq, | 578 | .init_irq = gic_init_irq, |
579 | .init_machine = omap4_panda_init, | 579 | .init_machine = omap4_panda_init, |
580 | .timer = &omap4_timer, | 580 | .timer = &omap4_timer, |
581 | .restart = omap_prcm_restart, | ||
581 | MACHINE_END | 582 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 26c5cbb4f2bb..c14d78129999 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -564,4 +564,5 @@ MACHINE_START(OVERO, "Gumstix Overo") | |||
564 | .init_irq = omap3_init_irq, | 564 | .init_irq = omap3_init_irq, |
565 | .init_machine = overo_init, | 565 | .init_machine = overo_init, |
566 | .timer = &omap3_timer, | 566 | .timer = &omap3_timer, |
567 | .restart = omap_prcm_restart, | ||
567 | MACHINE_END | 568 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 6ffb6405285e..0c67ecc244d6 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -151,4 +151,5 @@ MACHINE_START(NOKIA_RM680, "Nokia RM-680 board") | |||
151 | .init_irq = omap3_init_irq, | 151 | .init_irq = omap3_init_irq, |
152 | .init_machine = rm680_init, | 152 | .init_machine = rm680_init, |
153 | .timer = &omap3_timer, | 153 | .timer = &omap3_timer, |
154 | .restart = omap_prcm_restart, | ||
154 | MACHINE_END | 155 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 847731377af7..c3e716ad2b51 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -129,4 +129,5 @@ MACHINE_START(NOKIA_RX51, "Nokia RX-51 board") | |||
129 | .init_irq = omap3_init_irq, | 129 | .init_irq = omap3_init_irq, |
130 | .init_machine = rx51_init, | 130 | .init_machine = rx51_init, |
131 | .timer = &omap3_timer, | 131 | .timer = &omap3_timer, |
132 | .restart = omap_prcm_restart, | ||
132 | MACHINE_END | 133 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 8402b39b2840..74713e3993e5 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -48,4 +48,5 @@ MACHINE_START(TI8168EVM, "ti8168evm") | |||
48 | .init_irq = ti816x_init_irq, | 48 | .init_irq = ti816x_init_irq, |
49 | .timer = &omap3_timer, | 49 | .timer = &omap3_timer, |
50 | .init_machine = ti8168_evm_init, | 50 | .init_machine = ti8168_evm_init, |
51 | .restart = omap_prcm_restart, | ||
51 | MACHINE_END | 52 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index bd58f9205175..68d6f1c875b8 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -137,6 +137,7 @@ MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | |||
137 | .init_irq = omap3_init_irq, | 137 | .init_irq = omap3_init_irq, |
138 | .init_machine = omap_zoom_init, | 138 | .init_machine = omap_zoom_init, |
139 | .timer = &omap3_timer, | 139 | .timer = &omap3_timer, |
140 | .restart = omap_prcm_restart, | ||
140 | MACHINE_END | 141 | MACHINE_END |
141 | 142 | ||
142 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | 143 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") |
@@ -147,4 +148,5 @@ MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | |||
147 | .init_irq = omap3_init_irq, | 148 | .init_irq = omap3_init_irq, |
148 | .init_machine = omap_zoom_init, | 149 | .init_machine = omap_zoom_init, |
149 | .timer = &omap3_timer, | 150 | .timer = &omap3_timer, |
151 | .restart = omap_prcm_restart, | ||
150 | MACHINE_END | 152 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 950b39d76e94..1df1b396fc3b 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -84,6 +84,7 @@ void omap3_init_early(void); /* Do not use this one */ | |||
84 | void am35xx_init_early(void); | 84 | void am35xx_init_early(void); |
85 | void ti816x_init_early(void); | 85 | void ti816x_init_early(void); |
86 | void omap4430_init_early(void); | 86 | void omap4430_init_early(void); |
87 | void omap_prcm_restart(char, const char *); | ||
87 | 88 | ||
88 | /* | 89 | /* |
89 | * IO bases for various OMAP processors | 90 | * IO bases for various OMAP processors |
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index c35e5cea9f8f..626acfad7190 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | #include <linux/export.h> | 26 | #include <linux/export.h> |
27 | 27 | ||
28 | #include <mach/system.h> | ||
29 | #include "common.h" | 28 | #include "common.h" |
30 | #include <plat/prcm.h> | 29 | #include <plat/prcm.h> |
31 | #include <plat/irqs.h> | 30 | #include <plat/irqs.h> |
@@ -59,7 +58,7 @@ u32 omap_prcm_get_reset_sources(void) | |||
59 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); | 58 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); |
60 | 59 | ||
61 | /* Resets clock rates and reboots the system. Only called from system.h */ | 60 | /* Resets clock rates and reboots the system. Only called from system.h */ |
62 | static void omap_prcm_arch_reset(char mode, const char *cmd) | 61 | void omap_prcm_restart(char mode, const char *cmd) |
63 | { | 62 | { |
64 | s16 prcm_offs = 0; | 63 | s16 prcm_offs = 0; |
65 | 64 | ||
@@ -110,8 +109,6 @@ static void omap_prcm_arch_reset(char mode, const char *cmd) | |||
110 | omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ | 109 | omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ |
111 | } | 110 | } |
112 | 111 | ||
113 | void (*arch_reset)(char, const char *) = omap_prcm_arch_reset; | ||
114 | |||
115 | /** | 112 | /** |
116 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness | 113 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness |
117 | * @reg: physical address of module IDLEST register | 114 | * @reg: physical address of module IDLEST register |