diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/colibri-pxa3xx.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/corgi.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 28 | ||||
-rw-r--r-- | arch/arm/mach-pxa/generic.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 77 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/balloon3.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/entry-macro.S | 15 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/system.h | 15 | ||||
-rw-r--r-- | arch/arm/mach-pxa/leds-idp.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/leds-lubbock.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/leds-mainstone.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/lubbock.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 34 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa95x.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/reset.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/viper.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/zeus.c | 1 |
21 files changed, 111 insertions, 75 deletions
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 4b981b82d2a5..895ee8c45009 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <asm/mach-types.h> | 44 | #include <asm/mach-types.h> |
45 | #include <asm/mach/arch.h> | 45 | #include <asm/mach/arch.h> |
46 | #include <asm/setup.h> | 46 | #include <asm/setup.h> |
47 | #include <asm/system_info.h> | ||
47 | 48 | ||
48 | #include <mach/pxa300.h> | 49 | #include <mach/pxa300.h> |
49 | #include <mach/pxa27x-udc.h> | 50 | #include <mach/pxa27x-udc.h> |
diff --git a/arch/arm/mach-pxa/colibri-pxa3xx.c b/arch/arm/mach-pxa/colibri-pxa3xx.c index 2b8ca0de8a3d..68cc75fac219 100644 --- a/arch/arm/mach-pxa/colibri-pxa3xx.c +++ b/arch/arm/mach-pxa/colibri-pxa3xx.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | #include <mach/hardware.h> | 19 | #include <mach/hardware.h> |
20 | #include <asm/sizes.h> | 20 | #include <asm/sizes.h> |
21 | #include <asm/system_info.h> | ||
21 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
22 | #include <asm/mach/irq.h> | 23 | #include <asm/mach/irq.h> |
23 | #include <mach/pxa3xx-regs.h> | 24 | #include <mach/pxa3xx-regs.h> |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 11f1e735966e..de9d45e673fd 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include <asm/mach-types.h> | 40 | #include <asm/mach-types.h> |
41 | #include <mach/hardware.h> | 41 | #include <mach/hardware.h> |
42 | #include <asm/irq.h> | 42 | #include <asm/irq.h> |
43 | #include <asm/system.h> | ||
44 | 43 | ||
45 | #include <asm/mach/arch.h> | 44 | #include <asm/mach/arch.h> |
46 | #include <asm/mach/map.h> | 45 | #include <asm/mach/map.h> |
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 5bc13121eac5..84f2d7015cfe 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -406,20 +406,17 @@ static struct resource pxa_rtc_resources[] = { | |||
406 | [1] = { | 406 | [1] = { |
407 | .start = IRQ_RTC1Hz, | 407 | .start = IRQ_RTC1Hz, |
408 | .end = IRQ_RTC1Hz, | 408 | .end = IRQ_RTC1Hz, |
409 | .name = "rtc 1Hz", | ||
409 | .flags = IORESOURCE_IRQ, | 410 | .flags = IORESOURCE_IRQ, |
410 | }, | 411 | }, |
411 | [2] = { | 412 | [2] = { |
412 | .start = IRQ_RTCAlrm, | 413 | .start = IRQ_RTCAlrm, |
413 | .end = IRQ_RTCAlrm, | 414 | .end = IRQ_RTCAlrm, |
415 | .name = "rtc alarm", | ||
414 | .flags = IORESOURCE_IRQ, | 416 | .flags = IORESOURCE_IRQ, |
415 | }, | 417 | }, |
416 | }; | 418 | }; |
417 | 419 | ||
418 | struct platform_device sa1100_device_rtc = { | ||
419 | .name = "sa1100-rtc", | ||
420 | .id = -1, | ||
421 | }; | ||
422 | |||
423 | struct platform_device pxa_device_rtc = { | 420 | struct platform_device pxa_device_rtc = { |
424 | .name = "pxa-rtc", | 421 | .name = "pxa-rtc", |
425 | .id = -1, | 422 | .id = -1, |
@@ -427,6 +424,27 @@ struct platform_device pxa_device_rtc = { | |||
427 | .resource = pxa_rtc_resources, | 424 | .resource = pxa_rtc_resources, |
428 | }; | 425 | }; |
429 | 426 | ||
427 | static struct resource sa1100_rtc_resources[] = { | ||
428 | { | ||
429 | .start = IRQ_RTC1Hz, | ||
430 | .end = IRQ_RTC1Hz, | ||
431 | .name = "rtc 1Hz", | ||
432 | .flags = IORESOURCE_IRQ, | ||
433 | }, { | ||
434 | .start = IRQ_RTCAlrm, | ||
435 | .end = IRQ_RTCAlrm, | ||
436 | .name = "rtc alarm", | ||
437 | .flags = IORESOURCE_IRQ, | ||
438 | }, | ||
439 | }; | ||
440 | |||
441 | struct platform_device sa1100_device_rtc = { | ||
442 | .name = "sa1100-rtc", | ||
443 | .id = -1, | ||
444 | .num_resources = ARRAY_SIZE(sa1100_rtc_resources), | ||
445 | .resource = sa1100_rtc_resources, | ||
446 | }; | ||
447 | |||
430 | static struct resource pxa_ac97_resources[] = { | 448 | static struct resource pxa_ac97_resources[] = { |
431 | [0] = { | 449 | [0] = { |
432 | .start = 0x40500000, | 450 | .start = 0x40500000, |
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 5432ecb15def..42254175fcf4 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | 23 | ||
24 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
25 | #include <asm/system.h> | ||
26 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
27 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
28 | 27 | ||
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 208eef1c0485..3fa929d4a4f5 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -28,7 +28,8 @@ | |||
28 | #include <linux/mtd/physmap.h> | 28 | #include <linux/mtd/physmap.h> |
29 | #include <linux/pda_power.h> | 29 | #include <linux/pda_power.h> |
30 | #include <linux/pwm_backlight.h> | 30 | #include <linux/pwm_backlight.h> |
31 | #include <linux/regulator/bq24022.h> | 31 | #include <linux/regulator/driver.h> |
32 | #include <linux/regulator/gpio-regulator.h> | ||
32 | #include <linux/regulator/machine.h> | 33 | #include <linux/regulator/machine.h> |
33 | #include <linux/regulator/max1586.h> | 34 | #include <linux/regulator/max1586.h> |
34 | #include <linux/spi/ads7846.h> | 35 | #include <linux/spi/ads7846.h> |
@@ -97,9 +98,9 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
97 | 98 | ||
98 | /* BTUART */ | 99 | /* BTUART */ |
99 | GPIO42_BTUART_RXD, | 100 | GPIO42_BTUART_RXD, |
100 | GPIO43_BTUART_TXD, | 101 | GPIO43_BTUART_TXD_LPM_LOW, |
101 | GPIO44_BTUART_CTS, | 102 | GPIO44_BTUART_CTS, |
102 | GPIO45_BTUART_RTS, | 103 | GPIO45_BTUART_RTS_LPM_LOW, |
103 | 104 | ||
104 | /* PWM 1 (Backlight) */ | 105 | /* PWM 1 (Backlight) */ |
105 | GPIO17_PWM1_OUT, | 106 | GPIO17_PWM1_OUT, |
@@ -245,6 +246,21 @@ static u16 asic3_gpio_config[] = { | |||
245 | ASIC3_GPIOD15_nPIOW, | 246 | ASIC3_GPIOD15_nPIOW, |
246 | }; | 247 | }; |
247 | 248 | ||
249 | static struct asic3_led asic3_leds[ASIC3_NUM_LEDS] = { | ||
250 | [0] = { | ||
251 | .name = "hx4700:amber", | ||
252 | .default_trigger = "ds2760-battery.0-charging-blink-full-solid", | ||
253 | }, | ||
254 | [1] = { | ||
255 | .name = "hx4700:green", | ||
256 | .default_trigger = "unused", | ||
257 | }, | ||
258 | [2] = { | ||
259 | .name = "hx4700:blue", | ||
260 | .default_trigger = "hx4700-radio", | ||
261 | }, | ||
262 | }; | ||
263 | |||
248 | static struct resource asic3_resources[] = { | 264 | static struct resource asic3_resources[] = { |
249 | /* GPIO part */ | 265 | /* GPIO part */ |
250 | [0] = { | 266 | [0] = { |
@@ -275,6 +291,7 @@ static struct asic3_platform_data asic3_platform_data = { | |||
275 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), | 291 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), |
276 | .irq_base = IRQ_BOARD_START, | 292 | .irq_base = IRQ_BOARD_START, |
277 | .gpio_base = HX4700_ASIC3_GPIO_BASE, | 293 | .gpio_base = HX4700_ASIC3_GPIO_BASE, |
294 | .leds = asic3_leds, | ||
278 | }; | 295 | }; |
279 | 296 | ||
280 | static struct platform_device asic3 = { | 297 | static struct platform_device asic3 = { |
@@ -682,14 +699,34 @@ static struct regulator_init_data bq24022_init_data = { | |||
682 | .consumer_supplies = bq24022_consumers, | 699 | .consumer_supplies = bq24022_consumers, |
683 | }; | 700 | }; |
684 | 701 | ||
685 | static struct bq24022_mach_info bq24022_info = { | 702 | static struct gpio bq24022_gpios[] = { |
686 | .gpio_nce = GPIO72_HX4700_BQ24022_nCHARGE_EN, | 703 | { GPIO96_HX4700_BQ24022_ISET2, GPIOF_OUT_INIT_LOW, "bq24022_iset2" }, |
687 | .gpio_iset2 = GPIO96_HX4700_BQ24022_ISET2, | 704 | }; |
688 | .init_data = &bq24022_init_data, | 705 | |
706 | static struct gpio_regulator_state bq24022_states[] = { | ||
707 | { .value = 100000, .gpios = (0 << 0) }, | ||
708 | { .value = 500000, .gpios = (1 << 0) }, | ||
709 | }; | ||
710 | |||
711 | static struct gpio_regulator_config bq24022_info = { | ||
712 | .supply_name = "bq24022", | ||
713 | |||
714 | .enable_gpio = GPIO72_HX4700_BQ24022_nCHARGE_EN, | ||
715 | .enable_high = 0, | ||
716 | .enabled_at_boot = 0, | ||
717 | |||
718 | .gpios = bq24022_gpios, | ||
719 | .nr_gpios = ARRAY_SIZE(bq24022_gpios), | ||
720 | |||
721 | .states = bq24022_states, | ||
722 | .nr_states = ARRAY_SIZE(bq24022_states), | ||
723 | |||
724 | .type = REGULATOR_CURRENT, | ||
725 | .init_data = &bq24022_init_data, | ||
689 | }; | 726 | }; |
690 | 727 | ||
691 | static struct platform_device bq24022 = { | 728 | static struct platform_device bq24022 = { |
692 | .name = "bq24022", | 729 | .name = "gpio-regulator", |
693 | .id = -1, | 730 | .id = -1, |
694 | .dev = { | 731 | .dev = { |
695 | .platform_data = &bq24022_info, | 732 | .platform_data = &bq24022_info, |
@@ -705,10 +742,9 @@ static void hx4700_set_vpp(struct platform_device *pdev, int vpp) | |||
705 | gpio_set_value(GPIO91_HX4700_FLASH_VPEN, vpp); | 742 | gpio_set_value(GPIO91_HX4700_FLASH_VPEN, vpp); |
706 | } | 743 | } |
707 | 744 | ||
708 | static struct resource strataflash_resource = { | 745 | static struct resource strataflash_resource[] = { |
709 | .start = PXA_CS0_PHYS, | 746 | [0] = DEFINE_RES_MEM(PXA_CS0_PHYS, SZ_64M), |
710 | .end = PXA_CS0_PHYS + SZ_128M - 1, | 747 | [1] = DEFINE_RES_MEM(PXA_CS0_PHYS + SZ_64M, SZ_64M), |
711 | .flags = IORESOURCE_MEM, | ||
712 | }; | 748 | }; |
713 | 749 | ||
714 | static struct physmap_flash_data strataflash_data = { | 750 | static struct physmap_flash_data strataflash_data = { |
@@ -719,8 +755,8 @@ static struct physmap_flash_data strataflash_data = { | |||
719 | static struct platform_device strataflash = { | 755 | static struct platform_device strataflash = { |
720 | .name = "physmap-flash", | 756 | .name = "physmap-flash", |
721 | .id = -1, | 757 | .id = -1, |
722 | .resource = &strataflash_resource, | 758 | .resource = strataflash_resource, |
723 | .num_resources = 1, | 759 | .num_resources = ARRAY_SIZE(strataflash_resource), |
724 | .dev = { | 760 | .dev = { |
725 | .platform_data = &strataflash_data, | 761 | .platform_data = &strataflash_data, |
726 | }, | 762 | }, |
@@ -788,17 +824,6 @@ static struct platform_device audio = { | |||
788 | 824 | ||
789 | 825 | ||
790 | /* | 826 | /* |
791 | * PCMCIA | ||
792 | */ | ||
793 | |||
794 | static struct platform_device pcmcia = { | ||
795 | .name = "hx4700-pcmcia", | ||
796 | .dev = { | ||
797 | .parent = &asic3.dev, | ||
798 | }, | ||
799 | }; | ||
800 | |||
801 | /* | ||
802 | * Platform devices | 827 | * Platform devices |
803 | */ | 828 | */ |
804 | 829 | ||
@@ -814,7 +839,6 @@ static struct platform_device *devices[] __initdata = { | |||
814 | &power_supply, | 839 | &power_supply, |
815 | &strataflash, | 840 | &strataflash, |
816 | &audio, | 841 | &audio, |
817 | &pcmcia, | ||
818 | }; | 842 | }; |
819 | 843 | ||
820 | static struct gpio global_gpios[] = { | 844 | static struct gpio global_gpios[] = { |
@@ -830,7 +854,6 @@ static struct gpio global_gpios[] = { | |||
830 | { GPIO32_HX4700_RS232_ON, GPIOF_OUT_INIT_HIGH, "RS232_ON" }, | 854 | { GPIO32_HX4700_RS232_ON, GPIOF_OUT_INIT_HIGH, "RS232_ON" }, |
831 | { GPIO71_HX4700_ASIC3_nRESET, GPIOF_OUT_INIT_HIGH, "ASIC3_nRESET" }, | 855 | { GPIO71_HX4700_ASIC3_nRESET, GPIOF_OUT_INIT_HIGH, "ASIC3_nRESET" }, |
832 | { GPIO82_HX4700_EUART_RESET, GPIOF_OUT_INIT_HIGH, "EUART_RESET" }, | 856 | { GPIO82_HX4700_EUART_RESET, GPIOF_OUT_INIT_HIGH, "EUART_RESET" }, |
833 | { GPIO105_HX4700_nIR_ON, GPIOF_OUT_INIT_HIGH, "nIR_EN" }, | ||
834 | }; | 857 | }; |
835 | 858 | ||
836 | static void __init hx4700_init(void) | 859 | static void __init hx4700_init(void) |
diff --git a/arch/arm/mach-pxa/include/mach/balloon3.h b/arch/arm/mach-pxa/include/mach/balloon3.h index f02fa1e6ba86..954641e6c8b1 100644 --- a/arch/arm/mach-pxa/include/mach/balloon3.h +++ b/arch/arm/mach-pxa/include/mach/balloon3.h | |||
@@ -174,7 +174,6 @@ enum balloon3_features { | |||
174 | 174 | ||
175 | #define BALLOON3_AUX_NIRQ PXA_GPIO_TO_IRQ(BALLOON3_GPIO_AUX_NIRQ) | 175 | #define BALLOON3_AUX_NIRQ PXA_GPIO_TO_IRQ(BALLOON3_GPIO_AUX_NIRQ) |
176 | #define BALLOON3_CODEC_IRQ PXA_GPIO_TO_IRQ(BALLOON3_GPIO_CODEC_IRQ) | 176 | #define BALLOON3_CODEC_IRQ PXA_GPIO_TO_IRQ(BALLOON3_GPIO_CODEC_IRQ) |
177 | #define BALLOON3_S0_CD_IRQ PXA_GPIO_TO_IRQ(BALLOON3_GPIO_S0_CD) | ||
178 | 177 | ||
179 | #define BALLOON3_NR_IRQS (IRQ_BOARD_START + 16) | 178 | #define BALLOON3_NR_IRQS (IRQ_BOARD_START + 16) |
180 | 179 | ||
diff --git a/arch/arm/mach-pxa/include/mach/entry-macro.S b/arch/arm/mach-pxa/include/mach/entry-macro.S deleted file mode 100644 index 260c0c17692a..000000000000 --- a/arch/arm/mach-pxa/include/mach/entry-macro.S +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/include/mach/entry-macro.S | ||
3 | * | ||
4 | * Low-level IRQ helper macros for PXA-based platforms | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | .macro disable_fiq | ||
12 | .endm | ||
13 | |||
14 | .macro arch_ret_to_user, tmp1, tmp2 | ||
15 | .endm | ||
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h index ec0f0b0b6744..a65867209aa0 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | |||
@@ -158,7 +158,9 @@ | |||
158 | #define GPIO44_BTUART_CTS MFP_CFG_IN(GPIO44, AF1) | 158 | #define GPIO44_BTUART_CTS MFP_CFG_IN(GPIO44, AF1) |
159 | #define GPIO42_BTUART_RXD MFP_CFG_IN(GPIO42, AF1) | 159 | #define GPIO42_BTUART_RXD MFP_CFG_IN(GPIO42, AF1) |
160 | #define GPIO45_BTUART_RTS MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH) | 160 | #define GPIO45_BTUART_RTS MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH) |
161 | #define GPIO45_BTUART_RTS_LPM_LOW MFP_CFG_OUT(GPIO45, AF2, DRIVE_LOW) | ||
161 | #define GPIO43_BTUART_TXD MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH) | 162 | #define GPIO43_BTUART_TXD MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH) |
163 | #define GPIO43_BTUART_TXD_LPM_LOW MFP_CFG_OUT(GPIO43, AF2, DRIVE_LOW) | ||
162 | 164 | ||
163 | /* STUART */ | 165 | /* STUART */ |
164 | #define GPIO46_STUART_RXD MFP_CFG_IN(GPIO46, AF2) | 166 | #define GPIO46_STUART_RXD MFP_CFG_IN(GPIO46, AF2) |
diff --git a/arch/arm/mach-pxa/include/mach/system.h b/arch/arm/mach-pxa/include/mach/system.h deleted file mode 100644 index c5afacd3cc0b..000000000000 --- a/arch/arm/mach-pxa/include/mach/system.h +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/include/mach/system.h | ||
3 | * | ||
4 | * Author: Nicolas Pitre | ||
5 | * Created: Jun 15, 2001 | ||
6 | * Copyright: MontaVista Software Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | static inline void arch_idle(void) | ||
13 | { | ||
14 | cpu_do_idle(); | ||
15 | } | ||
diff --git a/arch/arm/mach-pxa/leds-idp.c b/arch/arm/mach-pxa/leds-idp.c index 8b9c17142d5a..06b060025d11 100644 --- a/arch/arm/mach-pxa/leds-idp.c +++ b/arch/arm/mach-pxa/leds-idp.c | |||
@@ -16,7 +16,6 @@ | |||
16 | 16 | ||
17 | #include <mach/hardware.h> | 17 | #include <mach/hardware.h> |
18 | #include <asm/leds.h> | 18 | #include <asm/leds.h> |
19 | #include <asm/system.h> | ||
20 | 19 | ||
21 | #include <mach/pxa25x.h> | 20 | #include <mach/pxa25x.h> |
22 | #include <mach/idp.h> | 21 | #include <mach/idp.h> |
diff --git a/arch/arm/mach-pxa/leds-lubbock.c b/arch/arm/mach-pxa/leds-lubbock.c index e26d5efe1969..0bd85c884a7c 100644 --- a/arch/arm/mach-pxa/leds-lubbock.c +++ b/arch/arm/mach-pxa/leds-lubbock.c | |||
@@ -15,7 +15,6 @@ | |||
15 | 15 | ||
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | #include <asm/leds.h> | 17 | #include <asm/leds.h> |
18 | #include <asm/system.h> | ||
19 | #include <mach/pxa25x.h> | 18 | #include <mach/pxa25x.h> |
20 | #include <mach/lubbock.h> | 19 | #include <mach/lubbock.h> |
21 | 20 | ||
diff --git a/arch/arm/mach-pxa/leds-mainstone.c b/arch/arm/mach-pxa/leds-mainstone.c index db4af5eee8b2..4058ab340fe6 100644 --- a/arch/arm/mach-pxa/leds-mainstone.c +++ b/arch/arm/mach-pxa/leds-mainstone.c | |||
@@ -14,7 +14,6 @@ | |||
14 | 14 | ||
15 | #include <mach/hardware.h> | 15 | #include <mach/hardware.h> |
16 | #include <asm/leds.h> | 16 | #include <asm/leds.h> |
17 | #include <asm/system.h> | ||
18 | 17 | ||
19 | #include <mach/pxa27x.h> | 18 | #include <mach/pxa27x.h> |
20 | #include <mach/mainstone.h> | 19 | #include <mach/mainstone.h> |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 6ebd276aebeb..6bb3f47b1f14 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -223,6 +223,7 @@ static struct resource sa1111_resources[] = { | |||
223 | 223 | ||
224 | static struct sa1111_platform_data sa1111_info = { | 224 | static struct sa1111_platform_data sa1111_info = { |
225 | .irq_base = LUBBOCK_SA1111_IRQ_BASE, | 225 | .irq_base = LUBBOCK_SA1111_IRQ_BASE, |
226 | .disable_devs = SA1111_DEVID_SAC, | ||
226 | }; | 227 | }; |
227 | 228 | ||
228 | static struct platform_device sa1111_device = { | 229 | static struct platform_device sa1111_device = { |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 3d6baf91396c..6f4785b347c2 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -25,7 +25,8 @@ | |||
25 | #include <linux/mtd/physmap.h> | 25 | #include <linux/mtd/physmap.h> |
26 | #include <linux/pda_power.h> | 26 | #include <linux/pda_power.h> |
27 | #include <linux/pwm_backlight.h> | 27 | #include <linux/pwm_backlight.h> |
28 | #include <linux/regulator/bq24022.h> | 28 | #include <linux/regulator/driver.h> |
29 | #include <linux/regulator/gpio-regulator.h> | ||
29 | #include <linux/regulator/machine.h> | 30 | #include <linux/regulator/machine.h> |
30 | #include <linux/usb/gpio_vbus.h> | 31 | #include <linux/usb/gpio_vbus.h> |
31 | #include <linux/i2c/pxa-i2c.h> | 32 | #include <linux/i2c/pxa-i2c.h> |
@@ -33,6 +34,7 @@ | |||
33 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
34 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
37 | #include <asm/system_info.h> | ||
36 | 38 | ||
37 | #include <mach/pxa27x.h> | 39 | #include <mach/pxa27x.h> |
38 | #include <mach/magician.h> | 40 | #include <mach/magician.h> |
@@ -596,14 +598,34 @@ static struct regulator_init_data bq24022_init_data = { | |||
596 | .consumer_supplies = bq24022_consumers, | 598 | .consumer_supplies = bq24022_consumers, |
597 | }; | 599 | }; |
598 | 600 | ||
599 | static struct bq24022_mach_info bq24022_info = { | 601 | static struct gpio bq24022_gpios[] = { |
600 | .gpio_nce = GPIO30_MAGICIAN_BQ24022_nCHARGE_EN, | 602 | { EGPIO_MAGICIAN_BQ24022_ISET2, GPIOF_OUT_INIT_LOW, "bq24022_iset2" }, |
601 | .gpio_iset2 = EGPIO_MAGICIAN_BQ24022_ISET2, | 603 | }; |
602 | .init_data = &bq24022_init_data, | 604 | |
605 | static struct gpio_regulator_state bq24022_states[] = { | ||
606 | { .value = 100000, .gpios = (0 << 0) }, | ||
607 | { .value = 500000, .gpios = (1 << 0) }, | ||
608 | }; | ||
609 | |||
610 | static struct gpio_regulator_config bq24022_info = { | ||
611 | .supply_name = "bq24022", | ||
612 | |||
613 | .enable_gpio = GPIO30_MAGICIAN_BQ24022_nCHARGE_EN, | ||
614 | .enable_high = 0, | ||
615 | .enabled_at_boot = 0, | ||
616 | |||
617 | .gpios = bq24022_gpios, | ||
618 | .nr_gpios = ARRAY_SIZE(bq24022_gpios), | ||
619 | |||
620 | .states = bq24022_states, | ||
621 | .nr_states = ARRAY_SIZE(bq24022_states), | ||
622 | |||
623 | .type = REGULATOR_CURRENT, | ||
624 | .init_data = &bq24022_init_data, | ||
603 | }; | 625 | }; |
604 | 626 | ||
605 | static struct platform_device bq24022 = { | 627 | static struct platform_device bq24022 = { |
606 | .name = "bq24022", | 628 | .name = "gpio-regulator", |
607 | .id = -1, | 629 | .id = -1, |
608 | .dev = { | 630 | .dev = { |
609 | .platform_data = &bq24022_info, | 631 | .platform_data = &bq24022_info, |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 744baee12c0c..89d98c832189 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
35 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
36 | #include <asm/setup.h> | 36 | #include <asm/setup.h> |
37 | #include <asm/system.h> | ||
38 | 37 | ||
39 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 3918a672238e..1570d457fea3 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -89,6 +89,7 @@ static struct clk_lookup pxa3xx_clkregs[] = { | |||
89 | INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL), | 89 | INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL), |
90 | INIT_CLKREG(&clk_pxa3xx_smemc, "pxa2xx-pcmcia", NULL), | 90 | INIT_CLKREG(&clk_pxa3xx_smemc, "pxa2xx-pcmcia", NULL), |
91 | INIT_CLKREG(&clk_pxa3xx_gpio, "pxa-gpio", NULL), | 91 | INIT_CLKREG(&clk_pxa3xx_gpio, "pxa-gpio", NULL), |
92 | INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), | ||
92 | }; | 93 | }; |
93 | 94 | ||
94 | #ifdef CONFIG_PM | 95 | #ifdef CONFIG_PM |
diff --git a/arch/arm/mach-pxa/pxa95x.c b/arch/arm/mach-pxa/pxa95x.c index 5ce434b95e87..47601f80e6e7 100644 --- a/arch/arm/mach-pxa/pxa95x.c +++ b/arch/arm/mach-pxa/pxa95x.c | |||
@@ -231,6 +231,7 @@ static struct clk_lookup pxa95x_clkregs[] = { | |||
231 | INIT_CLKREG(&clk_pxa95x_pwm0, "pxa27x-pwm.0", NULL), | 231 | INIT_CLKREG(&clk_pxa95x_pwm0, "pxa27x-pwm.0", NULL), |
232 | INIT_CLKREG(&clk_pxa95x_pwm1, "pxa27x-pwm.1", NULL), | 232 | INIT_CLKREG(&clk_pxa95x_pwm1, "pxa27x-pwm.1", NULL), |
233 | INIT_CLKREG(&clk_pxa95x_gpio, "pxa-gpio", NULL), | 233 | INIT_CLKREG(&clk_pxa95x_gpio, "pxa-gpio", NULL), |
234 | INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), | ||
234 | }; | 235 | }; |
235 | 236 | ||
236 | void __init pxa95x_init_irq(void) | 237 | void __init pxa95x_init_irq(void) |
diff --git a/arch/arm/mach-pxa/reset.c b/arch/arm/mach-pxa/reset.c index c8497b00cdfe..b4528899ef08 100644 --- a/arch/arm/mach-pxa/reset.c +++ b/arch/arm/mach-pxa/reset.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/gpio.h> | 9 | #include <linux/gpio.h> |
10 | #include <linux/io.h> | 10 | #include <linux/io.h> |
11 | #include <asm/proc-fns.h> | 11 | #include <asm/proc-fns.h> |
12 | #include <asm/system_misc.h> | ||
12 | 13 | ||
13 | #include <mach/regs-ost.h> | 14 | #include <mach/regs-ost.h> |
14 | #include <mach/reset.h> | 15 | #include <mach/reset.h> |
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 023d6ca789de..7a3d342a7732 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -57,6 +57,7 @@ | |||
57 | #include <asm/mach-types.h> | 57 | #include <asm/mach-types.h> |
58 | #include <asm/irq.h> | 58 | #include <asm/irq.h> |
59 | #include <asm/sizes.h> | 59 | #include <asm/sizes.h> |
60 | #include <asm/system_info.h> | ||
60 | 61 | ||
61 | #include <asm/mach/arch.h> | 62 | #include <asm/mach/arch.h> |
62 | #include <asm/mach/map.h> | 63 | #include <asm/mach/map.h> |
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index a4dd1c347050..af3d4f7646d7 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
34 | #include <asm/suspend.h> | 34 | #include <asm/suspend.h> |
35 | #include <asm/system_info.h> | ||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | 38 | ||