diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-10-29 22:56:12 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-08 14:33:08 -0500 |
commit | 187e3e06e8d7050a77c3208f54edff1e1bfae31d (patch) | |
tree | 39cb9a6ebcd9e04e76d270f5ef7e6c7f508d5d4e | |
parent | 2f334a3896714b47e24cc4cd08eed11d1a7f0d8e (diff) |
ARM: OMAP2+: board files: use SoC-specific system restart functions
Modify the board files to use the SoC-specific system restart
functions. At this point it's possible to remove omap_prcm_restart()
from mach-omap2/prcm.c.
While removing the prototypes for the now-unused restart functions, clean
up a few more obsolete prototypes in mach-omap2/clock.h.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
33 files changed, 46 insertions, 151 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 3fc6d839fb3a..acb0a524ff7b 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -286,5 +286,5 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | |||
286 | .init_machine = omap_2430sdp_init, | 286 | .init_machine = omap_2430sdp_init, |
287 | .init_late = omap2430_init_late, | 287 | .init_late = omap2430_init_late, |
288 | .timer = &omap2_timer, | 288 | .timer = &omap2_timer, |
289 | .restart = omap_prcm_restart, | 289 | .restart = omap2xxx_restart, |
290 | MACHINE_END | 290 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 79fd9048fd79..6601754f9512 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -597,5 +597,5 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | |||
597 | .init_machine = omap_3430sdp_init, | 597 | .init_machine = omap_3430sdp_init, |
598 | .init_late = omap3430_init_late, | 598 | .init_late = omap3430_init_late, |
599 | .timer = &omap3_timer, | 599 | .timer = &omap3_timer, |
600 | .restart = omap_prcm_restart, | 600 | .restart = omap3xxx_restart, |
601 | MACHINE_END | 601 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 81871b1c735c..050aaa771254 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -212,5 +212,5 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | |||
212 | .init_machine = omap_sdp_init, | 212 | .init_machine = omap_sdp_init, |
213 | .init_late = omap3630_init_late, | 213 | .init_late = omap3630_init_late, |
214 | .timer = &omap3_timer, | 214 | .timer = &omap3_timer, |
215 | .restart = omap_prcm_restart, | 215 | .restart = omap3xxx_restart, |
216 | MACHINE_END | 216 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index fd80d976872d..85dfa71e0dc6 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -881,5 +881,5 @@ MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") | |||
881 | .init_machine = omap_4430sdp_init, | 881 | .init_machine = omap_4430sdp_init, |
882 | .init_late = omap4430_init_late, | 882 | .init_late = omap4430_init_late, |
883 | .timer = &omap4_timer, | 883 | .timer = &omap4_timer, |
884 | .restart = omap_prcm_restart, | 884 | .restart = omap44xx_restart, |
885 | MACHINE_END | 885 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index 603503c587b7..51b96a1206d1 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c | |||
@@ -93,5 +93,5 @@ MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD") | |||
93 | .init_machine = am3517_crane_init, | 93 | .init_machine = am3517_crane_init, |
94 | .init_late = am35xx_init_late, | 94 | .init_late = am35xx_init_late, |
95 | .timer = &omap3_timer, | 95 | .timer = &omap3_timer, |
96 | .restart = omap_prcm_restart, | 96 | .restart = omap3xxx_restart, |
97 | MACHINE_END | 97 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 96d6c5ab5d4c..4be58fd071f6 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -393,5 +393,5 @@ MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | |||
393 | .init_machine = am3517_evm_init, | 393 | .init_machine = am3517_evm_init, |
394 | .init_late = am35xx_init_late, | 394 | .init_late = am35xx_init_late, |
395 | .timer = &omap3_timer, | 395 | .timer = &omap3_timer, |
396 | .restart = omap_prcm_restart, | 396 | .restart = omap3xxx_restart, |
397 | MACHINE_END | 397 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index 64cf1bde0f3b..5d0a61f54165 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -338,5 +338,5 @@ MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") | |||
338 | .init_machine = omap_apollon_init, | 338 | .init_machine = omap_apollon_init, |
339 | .init_late = omap2420_init_late, | 339 | .init_late = omap2420_init_late, |
340 | .timer = &omap2_timer, | 340 | .timer = &omap2_timer, |
341 | .restart = omap_prcm_restart, | 341 | .restart = omap2xxx_restart, |
342 | MACHINE_END | 342 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index cf9449bde186..488f86fd0e72 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -753,18 +753,18 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
753 | .init_machine = cm_t35_init, | 753 | .init_machine = cm_t35_init, |
754 | .init_late = omap35xx_init_late, | 754 | .init_late = omap35xx_init_late, |
755 | .timer = &omap3_timer, | 755 | .timer = &omap3_timer, |
756 | .restart = omap_prcm_restart, | 756 | .restart = omap3xxx_restart, |
757 | MACHINE_END | 757 | MACHINE_END |
758 | 758 | ||
759 | MACHINE_START(CM_T3730, "Compulab CM-T3730") | 759 | MACHINE_START(CM_T3730, "Compulab CM-T3730") |
760 | .atag_offset = 0x100, | 760 | .atag_offset = 0x100, |
761 | .reserve = omap_reserve, | 761 | .reserve = omap_reserve, |
762 | .map_io = omap3_map_io, | 762 | .map_io = omap3_map_io, |
763 | .init_early = omap3630_init_early, | 763 | .init_early = omap3630_init_early, |
764 | .init_irq = omap3_init_irq, | 764 | .init_irq = omap3_init_irq, |
765 | .handle_irq = omap3_intc_handle_irq, | 765 | .handle_irq = omap3_intc_handle_irq, |
766 | .init_machine = cm_t3730_init, | 766 | .init_machine = cm_t3730_init, |
767 | .init_late = omap3630_init_late, | 767 | .init_late = omap3630_init_late, |
768 | .timer = &omap3_timer, | 768 | .timer = &omap3_timer, |
769 | .restart = omap_prcm_restart, | 769 | .restart = omap3xxx_restart, |
770 | MACHINE_END | 770 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 278664731d2c..699caec8f9e2 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -298,5 +298,5 @@ MACHINE_START(CM_T3517, "Compulab CM-T3517") | |||
298 | .init_machine = cm_t3517_init, | 298 | .init_machine = cm_t3517_init, |
299 | .init_late = am35xx_init_late, | 299 | .init_late = am35xx_init_late, |
300 | .timer = &omap3_timer, | 300 | .timer = &omap3_timer, |
301 | .restart = omap_prcm_restart, | 301 | .restart = omap3xxx_restart, |
302 | MACHINE_END | 302 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 933479e36737..7667eb749522 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -643,5 +643,5 @@ MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | |||
643 | .init_machine = devkit8000_init, | 643 | .init_machine = devkit8000_init, |
644 | .init_late = omap35xx_init_late, | 644 | .init_late = omap35xx_init_late, |
645 | .timer = &omap3_secure_timer, | 645 | .timer = &omap3_secure_timer, |
646 | .restart = omap_prcm_restart, | 646 | .restart = omap3xxx_restart, |
647 | MACHINE_END | 647 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 601ecdfb1cf9..475e14f07216 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -57,7 +57,7 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") | |||
57 | .init_machine = omap_generic_init, | 57 | .init_machine = omap_generic_init, |
58 | .timer = &omap2_timer, | 58 | .timer = &omap2_timer, |
59 | .dt_compat = omap242x_boards_compat, | 59 | .dt_compat = omap242x_boards_compat, |
60 | .restart = omap_prcm_restart, | 60 | .restart = omap2xxx_restart, |
61 | MACHINE_END | 61 | MACHINE_END |
62 | #endif | 62 | #endif |
63 | 63 | ||
@@ -76,7 +76,7 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") | |||
76 | .init_machine = omap_generic_init, | 76 | .init_machine = omap_generic_init, |
77 | .timer = &omap2_timer, | 77 | .timer = &omap2_timer, |
78 | .dt_compat = omap243x_boards_compat, | 78 | .dt_compat = omap243x_boards_compat, |
79 | .restart = omap_prcm_restart, | 79 | .restart = omap2xxx_restart, |
80 | MACHINE_END | 80 | MACHINE_END |
81 | #endif | 81 | #endif |
82 | 82 | ||
@@ -95,7 +95,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") | |||
95 | .init_machine = omap_generic_init, | 95 | .init_machine = omap_generic_init, |
96 | .timer = &omap3_timer, | 96 | .timer = &omap3_timer, |
97 | .dt_compat = omap3_boards_compat, | 97 | .dt_compat = omap3_boards_compat, |
98 | .restart = omap_prcm_restart, | 98 | .restart = omap3xxx_restart, |
99 | MACHINE_END | 99 | MACHINE_END |
100 | #endif | 100 | #endif |
101 | 101 | ||
@@ -134,7 +134,7 @@ DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") | |||
134 | .init_late = omap4430_init_late, | 134 | .init_late = omap4430_init_late, |
135 | .timer = &omap4_timer, | 135 | .timer = &omap4_timer, |
136 | .dt_compat = omap4_boards_compat, | 136 | .dt_compat = omap4_boards_compat, |
137 | .restart = omap_prcm_restart, | 137 | .restart = omap44xx_restart, |
138 | MACHINE_END | 138 | MACHINE_END |
139 | #endif | 139 | #endif |
140 | 140 | ||
@@ -154,6 +154,6 @@ DT_MACHINE_START(OMAP5_DT, "Generic OMAP5 (Flattened Device Tree)") | |||
154 | .init_machine = omap_generic_init, | 154 | .init_machine = omap_generic_init, |
155 | .timer = &omap5_timer, | 155 | .timer = &omap5_timer, |
156 | .dt_compat = omap5_boards_compat, | 156 | .dt_compat = omap5_boards_compat, |
157 | .restart = omap_prcm_restart, | 157 | .restart = omap44xx_restart, |
158 | MACHINE_END | 158 | MACHINE_END |
159 | #endif | 159 | #endif |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index bd11b0aa9495..3c1e458f68a1 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -386,5 +386,5 @@ MACHINE_START(OMAP_H4, "OMAP2420 H4 board") | |||
386 | .init_machine = omap_h4_init, | 386 | .init_machine = omap_h4_init, |
387 | .init_late = omap2420_init_late, | 387 | .init_late = omap2420_init_late, |
388 | .timer = &omap2_timer, | 388 | .timer = &omap2_timer, |
389 | .restart = omap_prcm_restart, | 389 | .restart = omap2xxx_restart, |
390 | MACHINE_END | 390 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index dbc705ac4334..cea5d5292628 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -651,7 +651,7 @@ MACHINE_START(IGEP0020, "IGEP v2 board") | |||
651 | .init_machine = igep_init, | 651 | .init_machine = igep_init, |
652 | .init_late = omap35xx_init_late, | 652 | .init_late = omap35xx_init_late, |
653 | .timer = &omap3_timer, | 653 | .timer = &omap3_timer, |
654 | .restart = omap_prcm_restart, | 654 | .restart = omap3xxx_restart, |
655 | MACHINE_END | 655 | MACHINE_END |
656 | 656 | ||
657 | MACHINE_START(IGEP0030, "IGEP OMAP3 module") | 657 | MACHINE_START(IGEP0030, "IGEP OMAP3 module") |
@@ -664,5 +664,5 @@ MACHINE_START(IGEP0030, "IGEP OMAP3 module") | |||
664 | .init_machine = igep_init, | 664 | .init_machine = igep_init, |
665 | .init_late = omap35xx_init_late, | 665 | .init_late = omap35xx_init_late, |
666 | .timer = &omap3_timer, | 666 | .timer = &omap3_timer, |
667 | .restart = omap_prcm_restart, | 667 | .restart = omap3xxx_restart, |
668 | MACHINE_END | 668 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 1164b1061038..0869f4f3d3e1 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -436,5 +436,5 @@ MACHINE_START(OMAP_LDP, "OMAP LDP board") | |||
436 | .init_machine = omap_ldp_init, | 436 | .init_machine = omap_ldp_init, |
437 | .init_late = omap3430_init_late, | 437 | .init_late = omap3430_init_late, |
438 | .timer = &omap3_timer, | 438 | .timer = &omap3_timer, |
439 | .restart = omap_prcm_restart, | 439 | .restart = omap3xxx_restart, |
440 | MACHINE_END | 440 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index e3efcb88cb3b..a4e167c55c1d 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -690,7 +690,7 @@ MACHINE_START(NOKIA_N800, "Nokia N800") | |||
690 | .init_machine = n8x0_init_machine, | 690 | .init_machine = n8x0_init_machine, |
691 | .init_late = omap2420_init_late, | 691 | .init_late = omap2420_init_late, |
692 | .timer = &omap2_timer, | 692 | .timer = &omap2_timer, |
693 | .restart = omap_prcm_restart, | 693 | .restart = omap2xxx_restart, |
694 | MACHINE_END | 694 | MACHINE_END |
695 | 695 | ||
696 | MACHINE_START(NOKIA_N810, "Nokia N810") | 696 | MACHINE_START(NOKIA_N810, "Nokia N810") |
@@ -703,7 +703,7 @@ MACHINE_START(NOKIA_N810, "Nokia N810") | |||
703 | .init_machine = n8x0_init_machine, | 703 | .init_machine = n8x0_init_machine, |
704 | .init_late = omap2420_init_late, | 704 | .init_late = omap2420_init_late, |
705 | .timer = &omap2_timer, | 705 | .timer = &omap2_timer, |
706 | .restart = omap_prcm_restart, | 706 | .restart = omap2xxx_restart, |
707 | MACHINE_END | 707 | MACHINE_END |
708 | 708 | ||
709 | MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | 709 | MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") |
@@ -716,5 +716,5 @@ MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | |||
716 | .init_machine = n8x0_init_machine, | 716 | .init_machine = n8x0_init_machine, |
717 | .init_late = omap2420_init_late, | 717 | .init_late = omap2420_init_late, |
718 | .timer = &omap2_timer, | 718 | .timer = &omap2_timer, |
719 | .restart = omap_prcm_restart, | 719 | .restart = omap2xxx_restart, |
720 | MACHINE_END | 720 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 85c09a09c5e3..8471c279ecd8 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -541,5 +541,5 @@ MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board") | |||
541 | .init_machine = omap3_beagle_init, | 541 | .init_machine = omap3_beagle_init, |
542 | .init_late = omap3_init_late, | 542 | .init_late = omap3_init_late, |
543 | .timer = &omap3_secure_timer, | 543 | .timer = &omap3_secure_timer, |
544 | .restart = omap_prcm_restart, | 544 | .restart = omap3xxx_restart, |
545 | MACHINE_END | 545 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 3c0b9a90f3b3..54647d6286b4 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -757,5 +757,5 @@ MACHINE_START(OMAP3EVM, "OMAP3 EVM") | |||
757 | .init_machine = omap3_evm_init, | 757 | .init_machine = omap3_evm_init, |
758 | .init_late = omap35xx_init_late, | 758 | .init_late = omap35xx_init_late, |
759 | .timer = &omap3_timer, | 759 | .timer = &omap3_timer, |
760 | .restart = omap_prcm_restart, | 760 | .restart = omap3xxx_restart, |
761 | MACHINE_END | 761 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index e84e2a875378..2a065ba6eb58 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -232,7 +232,7 @@ MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") | |||
232 | .init_machine = omap3logic_init, | 232 | .init_machine = omap3logic_init, |
233 | .init_late = omap35xx_init_late, | 233 | .init_late = omap35xx_init_late, |
234 | .timer = &omap3_timer, | 234 | .timer = &omap3_timer, |
235 | .restart = omap_prcm_restart, | 235 | .restart = omap3xxx_restart, |
236 | MACHINE_END | 236 | MACHINE_END |
237 | 237 | ||
238 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | 238 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") |
@@ -245,5 +245,5 @@ MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | |||
245 | .init_machine = omap3logic_init, | 245 | .init_machine = omap3logic_init, |
246 | .init_late = omap35xx_init_late, | 246 | .init_late = omap35xx_init_late, |
247 | .timer = &omap3_timer, | 247 | .timer = &omap3_timer, |
248 | .restart = omap_prcm_restart, | 248 | .restart = omap3xxx_restart, |
249 | MACHINE_END | 249 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index ce31bd329f38..a53a6683c1b8 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -619,5 +619,5 @@ MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console") | |||
619 | .init_machine = omap3pandora_init, | 619 | .init_machine = omap3pandora_init, |
620 | .init_late = omap35xx_init_late, | 620 | .init_late = omap35xx_init_late, |
621 | .timer = &omap3_timer, | 621 | .timer = &omap3_timer, |
622 | .restart = omap_prcm_restart, | 622 | .restart = omap3xxx_restart, |
623 | MACHINE_END | 623 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index ba1124538b9c..d8638b3b4f94 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -427,5 +427,5 @@ MACHINE_START(SBC3530, "OMAP3 STALKER") | |||
427 | .init_machine = omap3_stalker_init, | 427 | .init_machine = omap3_stalker_init, |
428 | .init_late = omap35xx_init_late, | 428 | .init_late = omap35xx_init_late, |
429 | .timer = &omap3_secure_timer, | 429 | .timer = &omap3_secure_timer, |
430 | .restart = omap_prcm_restart, | 430 | .restart = omap3xxx_restart, |
431 | MACHINE_END | 431 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index a225d819633f..263cb9cfbf37 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -387,5 +387,5 @@ MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") | |||
387 | .init_machine = omap3_touchbook_init, | 387 | .init_machine = omap3_touchbook_init, |
388 | .init_late = omap3430_init_late, | 388 | .init_late = omap3430_init_late, |
389 | .timer = &omap3_secure_timer, | 389 | .timer = &omap3_secure_timer, |
390 | .restart = omap_prcm_restart, | 390 | .restart = omap3xxx_restart, |
391 | MACHINE_END | 391 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 8c00b99cd2a3..12a3a24d5bb5 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -524,5 +524,5 @@ MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") | |||
524 | .init_machine = omap4_panda_init, | 524 | .init_machine = omap4_panda_init, |
525 | .init_late = omap4430_init_late, | 525 | .init_late = omap4430_init_late, |
526 | .timer = &omap4_timer, | 526 | .timer = &omap4_timer, |
527 | .restart = omap_prcm_restart, | 527 | .restart = omap44xx_restart, |
528 | MACHINE_END | 528 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 1cfb0374f5e2..140b73094aff 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -553,5 +553,5 @@ MACHINE_START(OVERO, "Gumstix Overo") | |||
553 | .init_machine = overo_init, | 553 | .init_machine = overo_init, |
554 | .init_late = omap35xx_init_late, | 554 | .init_late = omap35xx_init_late, |
555 | .timer = &omap3_timer, | 555 | .timer = &omap3_timer, |
556 | .restart = omap_prcm_restart, | 556 | .restart = omap3xxx_restart, |
557 | MACHINE_END | 557 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 1997e0e722a1..cbcb1b2dc31f 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -148,7 +148,7 @@ MACHINE_START(NOKIA_RM680, "Nokia RM-680 board") | |||
148 | .init_machine = rm680_init, | 148 | .init_machine = rm680_init, |
149 | .init_late = omap3630_init_late, | 149 | .init_late = omap3630_init_late, |
150 | .timer = &omap3_timer, | 150 | .timer = &omap3_timer, |
151 | .restart = omap_prcm_restart, | 151 | .restart = omap3xxx_restart, |
152 | MACHINE_END | 152 | MACHINE_END |
153 | 153 | ||
154 | MACHINE_START(NOKIA_RM696, "Nokia RM-696 board") | 154 | MACHINE_START(NOKIA_RM696, "Nokia RM-696 board") |
@@ -161,5 +161,5 @@ MACHINE_START(NOKIA_RM696, "Nokia RM-696 board") | |||
161 | .init_machine = rm680_init, | 161 | .init_machine = rm680_init, |
162 | .init_late = omap3630_init_late, | 162 | .init_late = omap3630_init_late, |
163 | .timer = &omap3_timer, | 163 | .timer = &omap3_timer, |
164 | .restart = omap_prcm_restart, | 164 | .restart = omap3xxx_restart, |
165 | MACHINE_END | 165 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index c388aec14799..bf8f74b0ce3e 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -127,5 +127,5 @@ MACHINE_START(NOKIA_RX51, "Nokia RX-51 board") | |||
127 | .init_machine = rx51_init, | 127 | .init_machine = rx51_init, |
128 | .init_late = omap3430_init_late, | 128 | .init_late = omap3430_init_late, |
129 | .timer = &omap3_timer, | 129 | .timer = &omap3_timer, |
130 | .restart = omap_prcm_restart, | 130 | .restart = omap3xxx_restart, |
131 | MACHINE_END | 131 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 5e672c2b6a43..1a3e056d63a7 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -46,7 +46,7 @@ MACHINE_START(TI8168EVM, "ti8168evm") | |||
46 | .timer = &omap3_timer, | 46 | .timer = &omap3_timer, |
47 | .init_machine = ti81xx_evm_init, | 47 | .init_machine = ti81xx_evm_init, |
48 | .init_late = ti81xx_init_late, | 48 | .init_late = ti81xx_init_late, |
49 | .restart = omap_prcm_restart, | 49 | .restart = omap44xx_restart, |
50 | MACHINE_END | 50 | MACHINE_END |
51 | 51 | ||
52 | MACHINE_START(TI8148EVM, "ti8148evm") | 52 | MACHINE_START(TI8148EVM, "ti8148evm") |
@@ -58,5 +58,5 @@ MACHINE_START(TI8148EVM, "ti8148evm") | |||
58 | .timer = &omap3_timer, | 58 | .timer = &omap3_timer, |
59 | .init_machine = ti81xx_evm_init, | 59 | .init_machine = ti81xx_evm_init, |
60 | .init_late = ti81xx_init_late, | 60 | .init_late = ti81xx_init_late, |
61 | .restart = omap_prcm_restart, | 61 | .restart = omap44xx_restart, |
62 | MACHINE_END | 62 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 8feb4d99b96d..d7fa31e67238 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -138,7 +138,7 @@ MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | |||
138 | .init_machine = omap_zoom_init, | 138 | .init_machine = omap_zoom_init, |
139 | .init_late = omap3430_init_late, | 139 | .init_late = omap3430_init_late, |
140 | .timer = &omap3_timer, | 140 | .timer = &omap3_timer, |
141 | .restart = omap_prcm_restart, | 141 | .restart = omap3xxx_restart, |
142 | MACHINE_END | 142 | MACHINE_END |
143 | 143 | ||
144 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | 144 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") |
@@ -151,5 +151,5 @@ MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | |||
151 | .init_machine = omap_zoom_init, | 151 | .init_machine = omap_zoom_init, |
152 | .init_late = omap3630_init_late, | 152 | .init_late = omap3630_init_late, |
153 | .timer = &omap3_timer, | 153 | .timer = &omap3_timer, |
154 | .restart = omap_prcm_restart, | 154 | .restart = omap3xxx_restart, |
155 | MACHINE_END | 155 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index cfba1ffe5cc2..ff9789bc0fd1 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -409,33 +409,6 @@ extern void omap2_clkt_iclk_deny_idle(struct clk *clk); | |||
409 | u32 omap2_get_dpll_rate(struct clk *clk); | 409 | u32 omap2_get_dpll_rate(struct clk *clk); |
410 | void omap2_init_dpll_parent(struct clk *clk); | 410 | void omap2_init_dpll_parent(struct clk *clk); |
411 | 411 | ||
412 | int omap2_wait_clock_ready(void __iomem *reg, u32 cval, const char *name); | ||
413 | |||
414 | |||
415 | #ifdef CONFIG_ARCH_OMAP2 | ||
416 | void omap2xxx_clk_prepare_for_reboot(void); | ||
417 | #else | ||
418 | static inline void omap2xxx_clk_prepare_for_reboot(void) | ||
419 | { | ||
420 | } | ||
421 | #endif | ||
422 | |||
423 | #ifdef CONFIG_ARCH_OMAP3 | ||
424 | void omap3_clk_prepare_for_reboot(void); | ||
425 | #else | ||
426 | static inline void omap3_clk_prepare_for_reboot(void) | ||
427 | { | ||
428 | } | ||
429 | #endif | ||
430 | |||
431 | #ifdef CONFIG_ARCH_OMAP4 | ||
432 | void omap4_clk_prepare_for_reboot(void); | ||
433 | #else | ||
434 | static inline void omap4_clk_prepare_for_reboot(void) | ||
435 | { | ||
436 | } | ||
437 | #endif | ||
438 | |||
439 | int omap2_dflt_clk_enable(struct clk *clk); | 412 | int omap2_dflt_clk_enable(struct clk *clk); |
440 | void omap2_dflt_clk_disable(struct clk *clk); | 413 | void omap2_dflt_clk_disable(struct clk *clk); |
441 | void omap2_clk_dflt_find_companion(struct clk *clk, void __iomem **other_reg, | 414 | void omap2_clk_dflt_find_companion(struct clk *clk, void __iomem **other_reg, |
@@ -454,7 +427,6 @@ extern const struct clkops clkops_dummy; | |||
454 | extern const struct clkops clkops_omap2_dflt; | 427 | extern const struct clkops clkops_omap2_dflt; |
455 | 428 | ||
456 | extern struct clk_functions omap2_clk_functions; | 429 | extern struct clk_functions omap2_clk_functions; |
457 | extern struct clk *vclk, *sclk; | ||
458 | 430 | ||
459 | extern const struct clksel_rate gpt_32k_rates[]; | 431 | extern const struct clksel_rate gpt_32k_rates[]; |
460 | extern const struct clksel_rate gpt_sys_rates[]; | 432 | extern const struct clksel_rate gpt_sys_rates[]; |
diff --git a/arch/arm/mach-omap2/clock2420_data.c b/arch/arm/mach-omap2/clock2420_data.c index 1d1d77e510a3..49ea3b62bb09 100644 --- a/arch/arm/mach-omap2/clock2420_data.c +++ b/arch/arm/mach-omap2/clock2420_data.c | |||
@@ -1968,10 +1968,6 @@ int __init omap2420_clk_init(void) | |||
1968 | */ | 1968 | */ |
1969 | clk_enable_init_clocks(); | 1969 | clk_enable_init_clocks(); |
1970 | 1970 | ||
1971 | /* Avoid sleeping sleeping during omap2_clk_prepare_for_reboot() */ | ||
1972 | vclk = clk_get(NULL, "virt_prcm_set"); | ||
1973 | sclk = clk_get(NULL, "sys_ck"); | ||
1974 | |||
1975 | return 0; | 1971 | return 0; |
1976 | } | 1972 | } |
1977 | 1973 | ||
diff --git a/arch/arm/mach-omap2/clock2430_data.c b/arch/arm/mach-omap2/clock2430_data.c index 15d859ae283b..6f1e26c21b91 100644 --- a/arch/arm/mach-omap2/clock2430_data.c +++ b/arch/arm/mach-omap2/clock2430_data.c | |||
@@ -2067,10 +2067,6 @@ int __init omap2430_clk_init(void) | |||
2067 | */ | 2067 | */ |
2068 | clk_enable_init_clocks(); | 2068 | clk_enable_init_clocks(); |
2069 | 2069 | ||
2070 | /* Avoid sleeping sleeping during omap2_clk_prepare_for_reboot() */ | ||
2071 | vclk = clk_get(NULL, "virt_prcm_set"); | ||
2072 | sclk = clk_get(NULL, "sys_ck"); | ||
2073 | |||
2074 | return 0; | 2070 | return 0; |
2075 | } | 2071 | } |
2076 | 2072 | ||
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index 8e0294e732f1..5f7faeb4c19b 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -28,27 +28,11 @@ | |||
28 | #include "cm.h" | 28 | #include "cm.h" |
29 | #include "cm-regbits-24xx.h" | 29 | #include "cm-regbits-24xx.h" |
30 | 30 | ||
31 | struct clk *vclk, *sclk; | ||
32 | |||
33 | /* | 31 | /* |
34 | * Omap24xx specific clock functions | 32 | * Omap24xx specific clock functions |
35 | */ | 33 | */ |
36 | 34 | ||
37 | /* | 35 | /* |
38 | * Set clocks for bypass mode for reboot to work. | ||
39 | */ | ||
40 | void omap2xxx_clk_prepare_for_reboot(void) | ||
41 | { | ||
42 | u32 rate; | ||
43 | |||
44 | if (vclk == NULL || sclk == NULL) | ||
45 | return; | ||
46 | |||
47 | rate = clk_get_rate(sclk); | ||
48 | clk_set_rate(vclk, rate); | ||
49 | } | ||
50 | |||
51 | /* | ||
52 | * Switch the MPU rate if specified on cmdline. We cannot do this | 36 | * Switch the MPU rate if specified on cmdline. We cannot do this |
53 | * early until cmdline is parsed. XXX This should be removed from the | 37 | * early until cmdline is parsed. XXX This should be removed from the |
54 | * clock code and handled by the OPP layer code in the near future. | 38 | * clock code and handled by the OPP layer code in the near future. |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 349d0153791b..c57eeeac7d11 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -111,7 +111,6 @@ void am35xx_init_late(void); | |||
111 | void ti81xx_init_late(void); | 111 | void ti81xx_init_late(void); |
112 | void omap4430_init_late(void); | 112 | void omap4430_init_late(void); |
113 | int omap2_common_pm_late_init(void); | 113 | int omap2_common_pm_late_init(void); |
114 | void omap_prcm_restart(char, const char *); | ||
115 | 114 | ||
116 | #if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430) | 115 | #if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430) |
117 | void omap2xxx_restart(char mode, const char *cmd); | 116 | void omap2xxx_restart(char mode, const char *cmd); |
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 92fc3b88a608..7782e0f88a31 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -47,58 +47,6 @@ void __iomem *prcm_mpu_base; | |||
47 | 47 | ||
48 | #define MAX_MODULE_ENABLE_WAIT 100000 | 48 | #define MAX_MODULE_ENABLE_WAIT 100000 |
49 | 49 | ||
50 | /* Resets clock rates and reboots the system. Only called from system.h */ | ||
51 | void omap_prcm_restart(char mode, const char *cmd) | ||
52 | { | ||
53 | s16 prcm_offs = 0; | ||
54 | |||
55 | if (cpu_is_omap24xx()) { | ||
56 | omap2xxx_clk_prepare_for_reboot(); | ||
57 | |||
58 | prcm_offs = WKUP_MOD; | ||
59 | } else if (cpu_is_omap34xx()) { | ||
60 | prcm_offs = OMAP3430_GR_MOD; | ||
61 | omap3_ctrl_write_boot_mode((cmd ? (u8)*cmd : 0)); | ||
62 | } else if (cpu_is_omap44xx()) { | ||
63 | omap4_prminst_global_warm_sw_reset(); /* never returns */ | ||
64 | } else { | ||
65 | WARN_ON(1); | ||
66 | } | ||
67 | |||
68 | /* | ||
69 | * As per Errata i520, in some cases, user will not be able to | ||
70 | * access DDR memory after warm-reset. | ||
71 | * This situation occurs while the warm-reset happens during a read | ||
72 | * access to DDR memory. In that particular condition, DDR memory | ||
73 | * does not respond to a corrupted read command due to the warm | ||
74 | * reset occurrence but SDRC is waiting for read completion. | ||
75 | * SDRC is not sensitive to the warm reset, but the interconnect is | ||
76 | * reset on the fly, thus causing a misalignment between SDRC logic, | ||
77 | * interconnect logic and DDR memory state. | ||
78 | * WORKAROUND: | ||
79 | * Steps to perform before a Warm reset is trigged: | ||
80 | * 1. enable self-refresh on idle request | ||
81 | * 2. put SDRC in idle | ||
82 | * 3. wait until SDRC goes to idle | ||
83 | * 4. generate SW reset (Global SW reset) | ||
84 | * | ||
85 | * Steps to be performed after warm reset occurs (in bootloader): | ||
86 | * if HW warm reset is the source, apply below steps before any | ||
87 | * accesses to SDRAM: | ||
88 | * 1. Reset SMS and SDRC and wait till reset is complete | ||
89 | * 2. Re-initialize SMS, SDRC and memory | ||
90 | * | ||
91 | * NOTE: Above work around is required only if arch reset is implemented | ||
92 | * using Global SW reset(GLOBAL_SW_RST). DPLL3 reset does not need | ||
93 | * the WA since it resets SDRC as well as part of cold reset. | ||
94 | */ | ||
95 | |||
96 | /* XXX should be moved to some OMAP2/3 specific code */ | ||
97 | omap2_prm_set_mod_reg_bits(OMAP_RST_DPLL3_MASK, prcm_offs, | ||
98 | OMAP2_RM_RSTCTRL); | ||
99 | omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ | ||
100 | } | ||
101 | |||
102 | /** | 50 | /** |
103 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness | 51 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness |
104 | * @reg: physical address of module IDLEST register | 52 | * @reg: physical address of module IDLEST register |