diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/generic.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mioa701.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/reset.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/time.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 6 |
8 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index a5b8fead7d61..f162f1b77cd2 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -663,16 +663,16 @@ static void corgi_poweroff(void) | |||
663 | /* Green LED off tells the bootloader to halt */ | 663 | /* Green LED off tells the bootloader to halt */ |
664 | gpio_set_value(CORGI_GPIO_LED_GREEN, 0); | 664 | gpio_set_value(CORGI_GPIO_LED_GREEN, 0); |
665 | 665 | ||
666 | pxa_restart('h', NULL); | 666 | pxa_restart(REBOOT_HARD, NULL); |
667 | } | 667 | } |
668 | 668 | ||
669 | static void corgi_restart(char mode, const char *cmd) | 669 | static void corgi_restart(enum reboot_mode mode, const char *cmd) |
670 | { | 670 | { |
671 | if (!machine_is_corgi()) | 671 | if (!machine_is_corgi()) |
672 | /* Green LED on tells the bootloader to reboot */ | 672 | /* Green LED on tells the bootloader to reboot */ |
673 | gpio_set_value(CORGI_GPIO_LED_GREEN, 1); | 673 | gpio_set_value(CORGI_GPIO_LED_GREEN, 1); |
674 | 674 | ||
675 | pxa_restart('h', cmd); | 675 | pxa_restart(REBOOT_HARD, cmd); |
676 | } | 676 | } |
677 | 677 | ||
678 | static void __init corgi_init(void) | 678 | static void __init corgi_init(void) |
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index fd7ea39b78c0..8963984d1f43 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h | |||
@@ -9,6 +9,8 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/reboot.h> | ||
13 | |||
12 | struct irq_data; | 14 | struct irq_data; |
13 | 15 | ||
14 | extern void pxa_timer_init(void); | 16 | extern void pxa_timer_init(void); |
@@ -56,4 +58,4 @@ void __init pxa_set_btuart_info(void *info); | |||
56 | void __init pxa_set_stuart_info(void *info); | 58 | void __init pxa_set_stuart_info(void *info); |
57 | void __init pxa_set_hwuart_info(void *info); | 59 | void __init pxa_set_hwuart_info(void *info); |
58 | 60 | ||
59 | void pxa_restart(char, const char *); | 61 | void pxa_restart(enum reboot_mode, const char *); |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 654b0ac84dea..acc9d3cc0762 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <linux/wm97xx.h> | 37 | #include <linux/wm97xx.h> |
38 | #include <linux/mtd/physmap.h> | 38 | #include <linux/mtd/physmap.h> |
39 | #include <linux/usb/gpio_vbus.h> | 39 | #include <linux/usb/gpio_vbus.h> |
40 | #include <linux/reboot.h> | ||
40 | #include <linux/regulator/max1586.h> | 41 | #include <linux/regulator/max1586.h> |
41 | #include <linux/slab.h> | 42 | #include <linux/slab.h> |
42 | #include <linux/i2c/pxa-i2c.h> | 43 | #include <linux/i2c/pxa-i2c.h> |
@@ -696,13 +697,13 @@ static void mioa701_machine_exit(void); | |||
696 | static void mioa701_poweroff(void) | 697 | static void mioa701_poweroff(void) |
697 | { | 698 | { |
698 | mioa701_machine_exit(); | 699 | mioa701_machine_exit(); |
699 | pxa_restart('s', NULL); | 700 | pxa_restart(REBOOT_SOFT, NULL); |
700 | } | 701 | } |
701 | 702 | ||
702 | static void mioa701_restart(char c, const char *cmd) | 703 | static void mioa701_restart(enum reboot_mode c, const char *cmd) |
703 | { | 704 | { |
704 | mioa701_machine_exit(); | 705 | mioa701_machine_exit(); |
705 | pxa_restart('s', cmd); | 706 | pxa_restart(REBOOT_SOFT, cmd); |
706 | } | 707 | } |
707 | 708 | ||
708 | static struct gpio global_gpios[] = { | 709 | static struct gpio global_gpios[] = { |
@@ -761,7 +762,6 @@ static void mioa701_machine_exit(void) | |||
761 | 762 | ||
762 | MACHINE_START(MIOA701, "MIO A701") | 763 | MACHINE_START(MIOA701, "MIO A701") |
763 | .atag_offset = 0x100, | 764 | .atag_offset = 0x100, |
764 | .restart_mode = 's', | ||
765 | .map_io = &pxa27x_map_io, | 765 | .map_io = &pxa27x_map_io, |
766 | .nr_irqs = PXA_NR_IRQS, | 766 | .nr_irqs = PXA_NR_IRQS, |
767 | .init_irq = &pxa27x_init_irq, | 767 | .init_irq = &pxa27x_init_irq, |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 50ccd5f1d560..711d37e26bd8 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -422,7 +422,7 @@ static struct i2c_board_info __initdata poodle_i2c_devices[] = { | |||
422 | 422 | ||
423 | static void poodle_poweroff(void) | 423 | static void poodle_poweroff(void) |
424 | { | 424 | { |
425 | pxa_restart('h', NULL); | 425 | pxa_restart(REBOOT_HARD, NULL); |
426 | } | 426 | } |
427 | 427 | ||
428 | static void __init poodle_init(void) | 428 | static void __init poodle_init(void) |
diff --git a/arch/arm/mach-pxa/reset.c b/arch/arm/mach-pxa/reset.c index 3fab583755d4..0d5dd646f61f 100644 --- a/arch/arm/mach-pxa/reset.c +++ b/arch/arm/mach-pxa/reset.c | |||
@@ -83,7 +83,7 @@ static void do_hw_reset(void) | |||
83 | writel_relaxed(readl_relaxed(OSCR) + 368640, OSMR3); | 83 | writel_relaxed(readl_relaxed(OSCR) + 368640, OSMR3); |
84 | } | 84 | } |
85 | 85 | ||
86 | void pxa_restart(char mode, const char *cmd) | 86 | void pxa_restart(enum reboot_mode mode, const char *cmd) |
87 | { | 87 | { |
88 | local_irq_disable(); | 88 | local_irq_disable(); |
89 | local_fiq_disable(); | 89 | local_fiq_disable(); |
@@ -91,14 +91,14 @@ void pxa_restart(char mode, const char *cmd) | |||
91 | clear_reset_status(RESET_STATUS_ALL); | 91 | clear_reset_status(RESET_STATUS_ALL); |
92 | 92 | ||
93 | switch (mode) { | 93 | switch (mode) { |
94 | case 's': | 94 | case REBOOT_SOFT: |
95 | /* Jump into ROM at address 0 */ | 95 | /* Jump into ROM at address 0 */ |
96 | soft_restart(0); | 96 | soft_restart(0); |
97 | break; | 97 | break; |
98 | case 'g': | 98 | case REBOOT_GPIO: |
99 | do_gpio_reset(); | 99 | do_gpio_reset(); |
100 | break; | 100 | break; |
101 | case 'h': | 101 | case REBOOT_HARD: |
102 | default: | 102 | default: |
103 | do_hw_reset(); | 103 | do_hw_reset(); |
104 | break; | 104 | break; |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 362726c49c70..2125df0444e7 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/regulator/machine.h> | 31 | #include <linux/regulator/machine.h> |
32 | #include <linux/io.h> | 32 | #include <linux/io.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/reboot.h> | ||
34 | 35 | ||
35 | #include <asm/setup.h> | 36 | #include <asm/setup.h> |
36 | #include <asm/mach-types.h> | 37 | #include <asm/mach-types.h> |
@@ -924,10 +925,10 @@ static inline void spitz_i2c_init(void) {} | |||
924 | ******************************************************************************/ | 925 | ******************************************************************************/ |
925 | static void spitz_poweroff(void) | 926 | static void spitz_poweroff(void) |
926 | { | 927 | { |
927 | pxa_restart('g', NULL); | 928 | pxa_restart(REBOOT_GPIO, NULL); |
928 | } | 929 | } |
929 | 930 | ||
930 | static void spitz_restart(char mode, const char *cmd) | 931 | static void spitz_restart(enum reboot_mode mode, const char *cmd) |
931 | { | 932 | { |
932 | uint32_t msc0 = __raw_readl(MSC0); | 933 | uint32_t msc0 = __raw_readl(MSC0); |
933 | /* Bootloader magic for a reboot */ | 934 | /* Bootloader magic for a reboot */ |
@@ -979,7 +980,6 @@ static void __init spitz_fixup(struct tag *tags, char **cmdline, | |||
979 | 980 | ||
980 | #ifdef CONFIG_MACH_SPITZ | 981 | #ifdef CONFIG_MACH_SPITZ |
981 | MACHINE_START(SPITZ, "SHARP Spitz") | 982 | MACHINE_START(SPITZ, "SHARP Spitz") |
982 | .restart_mode = 'g', | ||
983 | .fixup = spitz_fixup, | 983 | .fixup = spitz_fixup, |
984 | .map_io = pxa27x_map_io, | 984 | .map_io = pxa27x_map_io, |
985 | .nr_irqs = PXA_NR_IRQS, | 985 | .nr_irqs = PXA_NR_IRQS, |
@@ -993,7 +993,6 @@ MACHINE_END | |||
993 | 993 | ||
994 | #ifdef CONFIG_MACH_BORZOI | 994 | #ifdef CONFIG_MACH_BORZOI |
995 | MACHINE_START(BORZOI, "SHARP Borzoi") | 995 | MACHINE_START(BORZOI, "SHARP Borzoi") |
996 | .restart_mode = 'g', | ||
997 | .fixup = spitz_fixup, | 996 | .fixup = spitz_fixup, |
998 | .map_io = pxa27x_map_io, | 997 | .map_io = pxa27x_map_io, |
999 | .nr_irqs = PXA_NR_IRQS, | 998 | .nr_irqs = PXA_NR_IRQS, |
@@ -1007,7 +1006,6 @@ MACHINE_END | |||
1007 | 1006 | ||
1008 | #ifdef CONFIG_MACH_AKITA | 1007 | #ifdef CONFIG_MACH_AKITA |
1009 | MACHINE_START(AKITA, "SHARP Akita") | 1008 | MACHINE_START(AKITA, "SHARP Akita") |
1010 | .restart_mode = 'g', | ||
1011 | .fixup = spitz_fixup, | 1009 | .fixup = spitz_fixup, |
1012 | .map_io = pxa27x_map_io, | 1010 | .map_io = pxa27x_map_io, |
1013 | .nr_irqs = PXA_NR_IRQS, | 1011 | .nr_irqs = PXA_NR_IRQS, |
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index 8f1ee92aea30..9aa852a8fab9 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -16,11 +16,11 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/interrupt.h> | 17 | #include <linux/interrupt.h> |
18 | #include <linux/clockchips.h> | 18 | #include <linux/clockchips.h> |
19 | #include <linux/sched_clock.h> | ||
19 | 20 | ||
20 | #include <asm/div64.h> | 21 | #include <asm/div64.h> |
21 | #include <asm/mach/irq.h> | 22 | #include <asm/mach/irq.h> |
22 | #include <asm/mach/time.h> | 23 | #include <asm/mach/time.h> |
23 | #include <asm/sched_clock.h> | ||
24 | #include <mach/regs-ost.h> | 24 | #include <mach/regs-ost.h> |
25 | #include <mach/irqs.h> | 25 | #include <mach/irqs.h> |
26 | 26 | ||
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 3d91d2e5bf3a..0206b915a6f6 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/input/matrix_keypad.h> | 36 | #include <linux/input/matrix_keypad.h> |
37 | #include <linux/i2c/pxa-i2c.h> | 37 | #include <linux/i2c/pxa-i2c.h> |
38 | #include <linux/usb/gpio_vbus.h> | 38 | #include <linux/usb/gpio_vbus.h> |
39 | #include <linux/reboot.h> | ||
39 | 40 | ||
40 | #include <asm/setup.h> | 41 | #include <asm/setup.h> |
41 | #include <asm/mach-types.h> | 42 | #include <asm/mach-types.h> |
@@ -911,10 +912,10 @@ static struct platform_device *devices[] __initdata = { | |||
911 | 912 | ||
912 | static void tosa_poweroff(void) | 913 | static void tosa_poweroff(void) |
913 | { | 914 | { |
914 | pxa_restart('g', NULL); | 915 | pxa_restart(REBOOT_GPIO, NULL); |
915 | } | 916 | } |
916 | 917 | ||
917 | static void tosa_restart(char mode, const char *cmd) | 918 | static void tosa_restart(enum reboot_mode mode, const char *cmd) |
918 | { | 919 | { |
919 | uint32_t msc0 = __raw_readl(MSC0); | 920 | uint32_t msc0 = __raw_readl(MSC0); |
920 | 921 | ||
@@ -969,7 +970,6 @@ static void __init fixup_tosa(struct tag *tags, char **cmdline, | |||
969 | } | 970 | } |
970 | 971 | ||
971 | MACHINE_START(TOSA, "SHARP Tosa") | 972 | MACHINE_START(TOSA, "SHARP Tosa") |
972 | .restart_mode = 'g', | ||
973 | .fixup = fixup_tosa, | 973 | .fixup = fixup_tosa, |
974 | .map_io = pxa25x_map_io, | 974 | .map_io = pxa25x_map_io, |
975 | .nr_irqs = TOSA_NR_IRQS, | 975 | .nr_irqs = TOSA_NR_IRQS, |