Commit 271a74fc authored by Russell King's avatar Russell King

ARM: restart: pxa: use new restart hook

Hook these platforms restart code into the new restart hook rather
than using arch_reset().
Acked-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 125c4033
...@@ -829,4 +829,5 @@ MACHINE_START(BALLOON3, "Balloon3") ...@@ -829,4 +829,5 @@ MACHINE_START(BALLOON3, "Balloon3")
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = balloon3_init, .init_machine = balloon3_init,
.atag_offset = 0x100, .atag_offset = 0x100,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -153,5 +153,6 @@ MACHINE_START(CAPC7117, ...@@ -153,5 +153,6 @@ MACHINE_START(CAPC7117,
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = capc7117_init .init_machine = capc7117_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -524,4 +524,5 @@ MACHINE_START(ARMCORE, "Compulab CM-X2XX") ...@@ -524,4 +524,5 @@ MACHINE_START(ARMCORE, "Compulab CM-X2XX")
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
.dma_zone_size = SZ_64M, .dma_zone_size = SZ_64M,
#endif #endif
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -858,4 +858,5 @@ MACHINE_START(CM_X300, "CM-X300 module") ...@@ -858,4 +858,5 @@ MACHINE_START(CM_X300, "CM-X300 module")
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = cm_x300_init, .init_machine = cm_x300_init,
.fixup = cm_x300_fixup, .fixup = cm_x300_fixup,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -313,6 +313,7 @@ MACHINE_START(COLIBRI, "Toradex Colibri PXA270") ...@@ -313,6 +313,7 @@ MACHINE_START(COLIBRI, "Toradex Colibri PXA270")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
MACHINE_START(INCOME, "Income s.r.o. SH-Dmaster PXA270 SBC") MACHINE_START(INCOME, "Income s.r.o. SH-Dmaster PXA270 SBC")
...@@ -322,5 +323,6 @@ MACHINE_START(INCOME, "Income s.r.o. SH-Dmaster PXA270 SBC") ...@@ -322,5 +323,6 @@ MACHINE_START(INCOME, "Income s.r.o. SH-Dmaster PXA270 SBC")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -189,5 +189,6 @@ MACHINE_START(COLIBRI300, "Toradex Colibri PXA300") ...@@ -189,5 +189,6 @@ MACHINE_START(COLIBRI300, "Toradex Colibri PXA300")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -259,5 +259,6 @@ MACHINE_START(COLIBRI320, "Toradex Colibri PXA320") ...@@ -259,5 +259,6 @@ MACHINE_START(COLIBRI320, "Toradex Colibri PXA320")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -655,7 +655,7 @@ static void corgi_poweroff(void) ...@@ -655,7 +655,7 @@ static void corgi_poweroff(void)
/* Green LED off tells the bootloader to halt */ /* Green LED off tells the bootloader to halt */
gpio_set_value(CORGI_GPIO_LED_GREEN, 0); gpio_set_value(CORGI_GPIO_LED_GREEN, 0);
arm_machine_restart('h', NULL); pxa_restart('h', NULL);
} }
static void corgi_restart(char mode, const char *cmd) static void corgi_restart(char mode, const char *cmd)
...@@ -664,13 +664,12 @@ static void corgi_restart(char mode, const char *cmd) ...@@ -664,13 +664,12 @@ static void corgi_restart(char mode, const char *cmd)
/* Green LED on tells the bootloader to reboot */ /* Green LED on tells the bootloader to reboot */
gpio_set_value(CORGI_GPIO_LED_GREEN, 1); gpio_set_value(CORGI_GPIO_LED_GREEN, 1);
arm_machine_restart('h', cmd); pxa_restart('h', cmd);
} }
static void __init corgi_init(void) static void __init corgi_init(void)
{ {
pm_power_off = corgi_poweroff; pm_power_off = corgi_poweroff;
arm_pm_restart = corgi_restart;
/* Stop 3.6MHz and drive HIGH to PCMCIA and CS */ /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
PCFR |= PCFR_OPDE; PCFR |= PCFR_OPDE;
...@@ -726,6 +725,7 @@ MACHINE_START(CORGI, "SHARP Corgi") ...@@ -726,6 +725,7 @@ MACHINE_START(CORGI, "SHARP Corgi")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = corgi_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -737,6 +737,7 @@ MACHINE_START(SHEPHERD, "SHARP Shepherd") ...@@ -737,6 +737,7 @@ MACHINE_START(SHEPHERD, "SHARP Shepherd")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = corgi_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -748,6 +749,7 @@ MACHINE_START(HUSKY, "SHARP Husky") ...@@ -748,6 +749,7 @@ MACHINE_START(HUSKY, "SHARP Husky")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = corgi_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -278,4 +278,5 @@ MACHINE_START(CSB726, "Cogent CSB726") ...@@ -278,4 +278,5 @@ MACHINE_START(CSB726, "Cogent CSB726")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = csb726_init, .init_machine = csb726_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -1305,6 +1305,7 @@ MACHINE_START(EM_X270, "Compulab EM-X270") ...@@ -1305,6 +1305,7 @@ MACHINE_START(EM_X270, "Compulab EM-X270")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = em_x270_init, .init_machine = em_x270_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
MACHINE_START(EXEDA, "Compulab eXeda") MACHINE_START(EXEDA, "Compulab eXeda")
...@@ -1314,4 +1315,5 @@ MACHINE_START(EXEDA, "Compulab eXeda") ...@@ -1314,4 +1315,5 @@ MACHINE_START(EXEDA, "Compulab eXeda")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = em_x270_init, .init_machine = em_x270_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -196,6 +196,7 @@ MACHINE_START(E330, "Toshiba e330") ...@@ -196,6 +196,7 @@ MACHINE_START(E330, "Toshiba e330")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e330_init, .init_machine = e330_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -246,6 +247,7 @@ MACHINE_START(E350, "Toshiba e350") ...@@ -246,6 +247,7 @@ MACHINE_START(E350, "Toshiba e350")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e350_init, .init_machine = e350_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -369,6 +371,7 @@ MACHINE_START(E400, "Toshiba e400") ...@@ -369,6 +371,7 @@ MACHINE_START(E400, "Toshiba e400")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e400_init, .init_machine = e400_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -558,6 +561,7 @@ MACHINE_START(E740, "Toshiba e740") ...@@ -558,6 +561,7 @@ MACHINE_START(E740, "Toshiba e740")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e740_init, .init_machine = e740_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -750,6 +754,7 @@ MACHINE_START(E750, "Toshiba e750") ...@@ -750,6 +754,7 @@ MACHINE_START(E750, "Toshiba e750")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e750_init, .init_machine = e750_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -955,5 +960,6 @@ MACHINE_START(E800, "Toshiba e800") ...@@ -955,5 +960,6 @@ MACHINE_START(E800, "Toshiba e800")
.fixup = eseries_fixup, .fixup = eseries_fixup,
.init_machine = e800_init, .init_machine = e800_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -804,6 +804,7 @@ MACHINE_START(EZX_A780, "Motorola EZX A780") ...@@ -804,6 +804,7 @@ MACHINE_START(EZX_A780, "Motorola EZX A780")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = a780_init, .init_machine = a780_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -870,6 +871,7 @@ MACHINE_START(EZX_E680, "Motorola EZX E680") ...@@ -870,6 +871,7 @@ MACHINE_START(EZX_E680, "Motorola EZX E680")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = e680_init, .init_machine = e680_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -936,6 +938,7 @@ MACHINE_START(EZX_A1200, "Motorola EZX A1200") ...@@ -936,6 +938,7 @@ MACHINE_START(EZX_A1200, "Motorola EZX A1200")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = a1200_init, .init_machine = a1200_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1127,6 +1130,7 @@ MACHINE_START(EZX_A910, "Motorola EZX A910") ...@@ -1127,6 +1130,7 @@ MACHINE_START(EZX_A910, "Motorola EZX A910")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = a910_init, .init_machine = a910_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1193,6 +1197,7 @@ MACHINE_START(EZX_E6, "Motorola EZX E6") ...@@ -1193,6 +1197,7 @@ MACHINE_START(EZX_E6, "Motorola EZX E6")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = e6_init, .init_machine = e6_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1233,5 +1238,6 @@ MACHINE_START(EZX_E2, "Motorola EZX E2") ...@@ -1233,5 +1238,6 @@ MACHINE_START(EZX_E2, "Motorola EZX E2")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = e2_init, .init_machine = e2_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -57,3 +57,5 @@ void __init pxa_set_ffuart_info(void *info); ...@@ -57,3 +57,5 @@ void __init pxa_set_ffuart_info(void *info);
void __init pxa_set_btuart_info(void *info); void __init pxa_set_btuart_info(void *info);
void __init pxa_set_stuart_info(void *info); void __init pxa_set_stuart_info(void *info);
void __init pxa_set_hwuart_info(void *info); void __init pxa_set_hwuart_info(void *info);
void pxa_restart(char, const char *);
...@@ -239,4 +239,5 @@ MACHINE_START(GUMSTIX, "Gumstix") ...@@ -239,4 +239,5 @@ MACHINE_START(GUMSTIX, "Gumstix")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = gumstix_init, .init_machine = gumstix_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -209,4 +209,5 @@ MACHINE_START(H5400, "HP iPAQ H5000") ...@@ -209,4 +209,5 @@ MACHINE_START(H5400, "HP iPAQ H5000")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = h5000_init, .init_machine = h5000_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -164,4 +164,5 @@ MACHINE_START(HIMALAYA, "HTC Himalaya") ...@@ -164,4 +164,5 @@ MACHINE_START(HIMALAYA, "HTC Himalaya")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = himalaya_init, .init_machine = himalaya_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -845,4 +845,5 @@ MACHINE_START(H4700, "HP iPAQ HX4700") ...@@ -845,4 +845,5 @@ MACHINE_START(H4700, "HP iPAQ HX4700")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = hx4700_init, .init_machine = hx4700_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -196,5 +196,6 @@ MACHINE_START(ICONTROL, "iControl/SafeTcam boards using Embedian MXM-8x10 CoM") ...@@ -196,5 +196,6 @@ MACHINE_START(ICONTROL, "iControl/SafeTcam boards using Embedian MXM-8x10 CoM")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = icontrol_init .init_machine = icontrol_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -199,4 +199,5 @@ MACHINE_START(PXA_IDP, "Vibren PXA255 IDP") ...@@ -199,4 +199,5 @@ MACHINE_START(PXA_IDP, "Vibren PXA255 IDP")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = idp_init, .init_machine = idp_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -9,15 +9,11 @@ ...@@ -9,15 +9,11 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <asm/proc-fns.h>
#include "hardware.h"
#include "pxa2xx-regs.h"
static inline void arch_idle(void) static inline void arch_idle(void)
{ {
cpu_do_idle(); cpu_do_idle();
} }
static inline void arch_reset(char mode, const char *cmd)
void arch_reset(char mode, const char *cmd); {
}
...@@ -445,4 +445,5 @@ MACHINE_START(LITTLETON, "Marvell Form Factor Development Platform (aka Littleto ...@@ -445,4 +445,5 @@ MACHINE_START(LITTLETON, "Marvell Form Factor Development Platform (aka Littleto
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = littleton_init, .init_machine = littleton_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -505,4 +505,5 @@ MACHINE_START(LOGICPD_PXA270, "LogicPD PXA270 Card Engine") ...@@ -505,4 +505,5 @@ MACHINE_START(LOGICPD_PXA270, "LogicPD PXA270 Card Engine")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = lpd270_init, .init_machine = lpd270_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -556,4 +556,5 @@ MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)") ...@@ -556,4 +556,5 @@ MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = lubbock_init, .init_machine = lubbock_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -760,4 +760,5 @@ MACHINE_START(MAGICIAN, "HTC Magician") ...@@ -760,4 +760,5 @@ MACHINE_START(MAGICIAN, "HTC Magician")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = magician_init, .init_machine = magician_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -622,4 +622,5 @@ MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") ...@@ -622,4 +622,5 @@ MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = mainstone_init, .init_machine = mainstone_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -696,13 +696,13 @@ static void mioa701_machine_exit(void); ...@@ -696,13 +696,13 @@ static void mioa701_machine_exit(void);
static void mioa701_poweroff(void) static void mioa701_poweroff(void)
{ {
mioa701_machine_exit(); mioa701_machine_exit();
arm_machine_restart('s', NULL); pxa_restart('s', NULL);
} }
static void mioa701_restart(char c, const char *cmd) static void mioa701_restart(char c, const char *cmd)
{ {
mioa701_machine_exit(); mioa701_machine_exit();
arm_machine_restart('s', cmd); pxa_restart('s', cmd);
} }
static struct gpio global_gpios[] = { static struct gpio global_gpios[] = {
...@@ -734,7 +734,6 @@ static void __init mioa701_machine_init(void) ...@@ -734,7 +734,6 @@ static void __init mioa701_machine_init(void)
pxa_set_udc_info(&mioa701_udc_info); pxa_set_udc_info(&mioa701_udc_info);
pxa_set_ac97_info(&mioa701_ac97_info); pxa_set_ac97_info(&mioa701_ac97_info);
pm_power_off = mioa701_poweroff; pm_power_off = mioa701_poweroff;
arm_pm_restart = mioa701_restart;
platform_add_devices(devices, ARRAY_SIZE(devices)); platform_add_devices(devices, ARRAY_SIZE(devices));
gsm_init(); gsm_init();
...@@ -758,4 +757,5 @@ MACHINE_START(MIOA701, "MIO A701") ...@@ -758,4 +757,5 @@ MACHINE_START(MIOA701, "MIO A701")
.handle_irq = &pxa27x_handle_irq, .handle_irq = &pxa27x_handle_irq,
.init_machine = mioa701_machine_init, .init_machine = mioa701_machine_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = mioa701_restart,
MACHINE_END MACHINE_END
...@@ -98,5 +98,6 @@ MACHINE_START(NEC_MP900, "MobilePro900/C") ...@@ -98,5 +98,6 @@ MACHINE_START(NEC_MP900, "MobilePro900/C")
.init_irq = pxa25x_init_irq, .init_irq = pxa25x_init_irq,
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = mp900c_init, .init_machine = mp900c_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -347,5 +347,6 @@ MACHINE_START(PALMLD, "Palm LifeDrive") ...@@ -347,5 +347,6 @@ MACHINE_START(PALMLD, "Palm LifeDrive")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmld_init .init_machine = palmld_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -208,5 +208,6 @@ MACHINE_START(PALMT5, "Palm Tungsten|T5") ...@@ -208,5 +208,6 @@ MACHINE_START(PALMT5, "Palm Tungsten|T5")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmt5_init .init_machine = palmt5_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -542,5 +542,6 @@ MACHINE_START(PALMTC, "Palm Tungsten|C") ...@@ -542,5 +542,6 @@ MACHINE_START(PALMTC, "Palm Tungsten|C")
.init_irq = pxa25x_init_irq, .init_irq = pxa25x_init_irq,
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmtc_init .init_machine = palmtc_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -361,5 +361,6 @@ MACHINE_START(PALMTE2, "Palm Tungsten|E2") ...@@ -361,5 +361,6 @@ MACHINE_START(PALMTE2, "Palm Tungsten|E2")
.init_irq = pxa25x_init_irq, .init_irq = pxa25x_init_irq,
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmte2_init .init_machine = palmte2_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -452,6 +452,7 @@ MACHINE_START(TREO680, "Palm Treo 680") ...@@ -452,6 +452,7 @@ MACHINE_START(TREO680, "Palm Treo 680")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = treo680_init, .init_machine = treo680_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -464,5 +465,6 @@ MACHINE_START(CENTRO, "Palm Centro 685") ...@@ -464,5 +465,6 @@ MACHINE_START(CENTRO, "Palm Centro 685")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = centro_init, .init_machine = centro_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -369,5 +369,6 @@ MACHINE_START(PALMTX, "Palm T|X") ...@@ -369,5 +369,6 @@ MACHINE_START(PALMTX, "Palm T|X")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmtx_init .init_machine = palmtx_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -404,5 +404,6 @@ MACHINE_START(PALMZ72, "Palm Zire72") ...@@ -404,5 +404,6 @@ MACHINE_START(PALMZ72, "Palm Zire72")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = palmz72_init .init_machine = palmz72_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -265,4 +265,5 @@ MACHINE_START(PCM027, "Phytec Messtechnik GmbH phyCORE-PXA270") ...@@ -265,4 +265,5 @@ MACHINE_START(PCM027, "Phytec Messtechnik GmbH phyCORE-PXA270")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = pcm027_init, .init_machine = pcm027_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -417,7 +417,7 @@ static struct i2c_board_info __initdata poodle_i2c_devices[] = { ...@@ -417,7 +417,7 @@ static struct i2c_board_info __initdata poodle_i2c_devices[] = {
static void poodle_poweroff(void) static void poodle_poweroff(void)
{ {
arm_machine_restart('h', NULL); pxa_restart('h', NULL);
} }
static void __init poodle_init(void) static void __init poodle_init(void)
...@@ -466,4 +466,5 @@ MACHINE_START(POODLE, "SHARP Poodle") ...@@ -466,4 +466,5 @@ MACHINE_START(POODLE, "SHARP Poodle")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = poodle_init, .init_machine = poodle_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -1093,6 +1093,7 @@ MACHINE_START(RAUMFELD_RC, "Raumfeld Controller") ...@@ -1093,6 +1093,7 @@ MACHINE_START(RAUMFELD_RC, "Raumfeld Controller")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1104,6 +1105,7 @@ MACHINE_START(RAUMFELD_CONNECTOR, "Raumfeld Connector") ...@@ -1104,6 +1105,7 @@ MACHINE_START(RAUMFELD_CONNECTOR, "Raumfeld Connector")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1115,5 +1117,6 @@ MACHINE_START(RAUMFELD_SPEAKER, "Raumfeld Speaker") ...@@ -1115,5 +1117,6 @@ MACHINE_START(RAUMFELD_SPEAKER, "Raumfeld Speaker")
.init_irq = pxa3xx_init_irq, .init_irq = pxa3xx_init_irq,
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -81,8 +81,11 @@ static void do_hw_reset(void) ...@@ -81,8 +81,11 @@ static void do_hw_reset(void)
OSMR3 = OSCR + 368640; /* ... in 100 ms */ OSMR3 = OSCR + 368640; /* ... in 100 ms */
} }
void arch_reset(char mode, const char *cmd) void pxa_restart(char mode, const char *cmd)
{ {
local_irq_disable();
local_fiq_disable();
clear_reset_status(RESET_STATUS_ALL); clear_reset_status(RESET_STATUS_ALL);
switch (mode) { switch (mode) {
......
...@@ -602,4 +602,5 @@ MACHINE_START(SAAR, "PXA930 Handheld Platform (aka SAAR)") ...@@ -602,4 +602,5 @@ MACHINE_START(SAAR, "PXA930 Handheld Platform (aka SAAR)")
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = saar_init, .init_machine = saar_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -111,5 +111,6 @@ MACHINE_START(SAARB, "PXA955 Handheld Platform (aka SAARB)") ...@@ -111,5 +111,6 @@ MACHINE_START(SAARB, "PXA955 Handheld Platform (aka SAARB)")
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = saarb_init, .init_machine = saarb_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -926,7 +926,7 @@ static inline void spitz_i2c_init(void) {} ...@@ -926,7 +926,7 @@ static inline void spitz_i2c_init(void) {}
******************************************************************************/ ******************************************************************************/
static void spitz_poweroff(void) static void spitz_poweroff(void)
{ {
arm_machine_restart('g', NULL); pxa_restart('g', NULL);
} }
static void spitz_restart(char mode, const char *cmd) static void spitz_restart(char mode, const char *cmd)
...@@ -943,7 +943,6 @@ static void __init spitz_init(void) ...@@ -943,7 +943,6 @@ static void __init spitz_init(void)
{ {
init_gpio_reset(SPITZ_GPIO_ON_RESET, 1, 0); init_gpio_reset(SPITZ_GPIO_ON_RESET, 1, 0);
pm_power_off = spitz_poweroff; pm_power_off = spitz_poweroff;
arm_pm_restart = spitz_restart;
PMCR = 0x00; PMCR = 0x00;
...@@ -989,6 +988,7 @@ MACHINE_START(SPITZ, "SHARP Spitz") ...@@ -989,6 +988,7 @@ MACHINE_START(SPITZ, "SHARP Spitz")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = spitz_init, .init_machine = spitz_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = spitz_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1001,6 +1001,7 @@ MACHINE_START(BORZOI, "SHARP Borzoi") ...@@ -1001,6 +1001,7 @@ MACHINE_START(BORZOI, "SHARP Borzoi")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = spitz_init, .init_machine = spitz_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = spitz_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1013,5 +1014,6 @@ MACHINE_START(AKITA, "SHARP Akita") ...@@ -1013,5 +1014,6 @@ MACHINE_START(AKITA, "SHARP Akita")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.init_machine = spitz_init, .init_machine = spitz_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = spitz_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1005,6 +1005,7 @@ MACHINE_START(INTELMOTE2, "IMOTE 2") ...@@ -1005,6 +1005,7 @@ MACHINE_START(INTELMOTE2, "IMOTE 2")
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = imote2_init, .init_machine = imote2_init,
.atag_offset = 0x100, .atag_offset = 0x100,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -1017,5 +1018,6 @@ MACHINE_START(STARGATE2, "Stargate 2") ...@@ -1017,5 +1018,6 @@ MACHINE_START(STARGATE2, "Stargate 2")
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = stargate2_init, .init_machine = stargate2_init,
.atag_offset = 0x100, .atag_offset = 0x100,
.restart = pxa_restart,
MACHINE_END MACHINE_END
#endif #endif
...@@ -495,4 +495,5 @@ MACHINE_START(TAVOREVB, "PXA930 Evaluation Board (aka TavorEVB)") ...@@ -495,4 +495,5 @@ MACHINE_START(TAVOREVB, "PXA930 Evaluation Board (aka TavorEVB)")
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = tavorevb_init, .init_machine = tavorevb_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -132,4 +132,5 @@ MACHINE_START(TAVOREVB3, "PXA950 Evaluation Board (aka TavorEVB3)") ...@@ -132,4 +132,5 @@ MACHINE_START(TAVOREVB3, "PXA950 Evaluation Board (aka TavorEVB3)")
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = evb3_init, .init_machine = evb3_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -905,7 +905,7 @@ static struct platform_device *devices[] __initdata = { ...@@ -905,7 +905,7 @@ static struct platform_device *devices[] __initdata = {
static void tosa_poweroff(void) static void tosa_poweroff(void)
{ {
arm_machine_restart('g', NULL); pxa_restart('g', NULL);
} }
static void tosa_restart(char mode, const char *cmd) static void tosa_restart(char mode, const char *cmd)
...@@ -935,7 +935,6 @@ static void __init tosa_init(void) ...@@ -935,7 +935,6 @@ static void __init tosa_init(void)
init_gpio_reset(TOSA_GPIO_ON_RESET, 0, 0); init_gpio_reset(TOSA_GPIO_ON_RESET, 0, 0);
pm_power_off = tosa_poweroff; pm_power_off = tosa_poweroff;
arm_pm_restart = tosa_restart;
PCFR |= PCFR_OPDE; PCFR |= PCFR_OPDE;
...@@ -978,4 +977,5 @@ MACHINE_START(TOSA, "SHARP Tosa") ...@@ -978,4 +977,5 @@ MACHINE_START(TOSA, "SHARP Tosa")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.init_machine = tosa_init, .init_machine = tosa_init,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = tosa_restart,
MACHINE_END MACHINE_END
...@@ -561,6 +561,7 @@ MACHINE_START(TRIZEPS4, "Keith und Koep Trizeps IV module") ...@@ -561,6 +561,7 @@ MACHINE_START(TRIZEPS4, "Keith und Koep Trizeps IV module")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
MACHINE_START(TRIZEPS4WL, "Keith und Koep Trizeps IV-WL module") MACHINE_START(TRIZEPS4WL, "Keith und Koep Trizeps IV-WL module")
...@@ -571,4 +572,5 @@ MACHINE_START(TRIZEPS4WL, "Keith und Koep Trizeps IV-WL module") ...@@ -571,4 +572,5 @@ MACHINE_START(TRIZEPS4WL, "Keith und Koep Trizeps IV-WL module")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -998,4 +998,5 @@ MACHINE_START(VIPER, "Arcom/Eurotech VIPER SBC") ...@@ -998,4 +998,5 @@ MACHINE_START(VIPER, "Arcom/Eurotech VIPER SBC")
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = viper_init, .init_machine = viper_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -721,5 +721,6 @@ MACHINE_START(VPAC270, "Voipac PXA270") ...@@ -721,5 +721,6 @@ MACHINE_START(VPAC270, "Voipac PXA270")
.init_irq = pxa27x_init_irq, .init_irq = pxa27x_init_irq,
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = vpac270_init .init_machine = vpac270_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -185,5 +185,6 @@ MACHINE_START(XCEP, "Iskratel XCEP") ...@@ -185,5 +185,6 @@ MACHINE_START(XCEP, "Iskratel XCEP")
.init_irq = pxa25x_init_irq, .init_irq = pxa25x_init_irq,
.handle_irq = pxa25x_handle_irq, .handle_irq = pxa25x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -725,4 +725,5 @@ MACHINE_START(ZIPIT2, "Zipit Z2") ...@@ -725,4 +725,5 @@ MACHINE_START(ZIPIT2, "Zipit Z2")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = z2_init, .init_machine = z2_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -911,5 +911,6 @@ MACHINE_START(ARCOM_ZEUS, "Arcom/Eurotech ZEUS") ...@@ -911,5 +911,6 @@ MACHINE_START(ARCOM_ZEUS, "Arcom/Eurotech ZEUS")
.handle_irq = pxa27x_handle_irq, .handle_irq = pxa27x_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = zeus_init, .init_machine = zeus_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
...@@ -430,4 +430,5 @@ MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") ...@@ -430,4 +430,5 @@ MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)")
.handle_irq = pxa3xx_handle_irq, .handle_irq = pxa3xx_handle_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = zylonite_init, .init_machine = zylonite_init,
.restart = pxa_restart,
MACHINE_END MACHINE_END
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment