diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/balloon3.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/cm-x300.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/em-x270.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 47 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mioa701.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/pcm990_baseboard.h | 68 | ||||
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mioa701.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/palm27x.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pcm990-baseboard.c | 83 | ||||
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/stargate2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-pxa/vpac270.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/z2.c | 4 |
15 files changed, 104 insertions, 146 deletions
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index c35456f02acb..56e8cebeb7d5 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -732,9 +732,7 @@ static inline void balloon3_nand_init(void) {} | |||
732 | #if defined(CONFIG_REGULATOR_MAX1586) || \ | 732 | #if defined(CONFIG_REGULATOR_MAX1586) || \ |
733 | defined(CONFIG_REGULATOR_MAX1586_MODULE) | 733 | defined(CONFIG_REGULATOR_MAX1586_MODULE) |
734 | static struct regulator_consumer_supply balloon3_max1587a_consumers[] = { | 734 | static struct regulator_consumer_supply balloon3_max1587a_consumers[] = { |
735 | { | 735 | REGULATOR_SUPPLY("vcc_core", NULL), |
736 | .supply = "vcc_core", | ||
737 | } | ||
738 | }; | 736 | }; |
739 | 737 | ||
740 | static struct regulator_init_data balloon3_max1587a_v3_info = { | 738 | static struct regulator_init_data balloon3_max1587a_v3_info = { |
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 313274016277..3e4e9fe2d462 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -713,9 +713,7 @@ struct da9030_battery_info cm_x300_battery_info = { | |||
713 | }; | 713 | }; |
714 | 714 | ||
715 | static struct regulator_consumer_supply buck2_consumers[] = { | 715 | static struct regulator_consumer_supply buck2_consumers[] = { |
716 | { | 716 | REGULATOR_SUPPLY("vcc_core", NULL), |
717 | .supply = "vcc_core", | ||
718 | }, | ||
719 | }; | 717 | }; |
720 | 718 | ||
721 | static struct regulator_init_data buck2_data = { | 719 | static struct regulator_init_data buck2_data = { |
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 16ec557b8e43..a3a4a38d4972 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -1085,10 +1085,7 @@ static void __init em_x270_userspace_consumers_init(void) | |||
1085 | /* DA9030 related initializations */ | 1085 | /* DA9030 related initializations */ |
1086 | #define REGULATOR_CONSUMER(_name, _dev_name, _supply) \ | 1086 | #define REGULATOR_CONSUMER(_name, _dev_name, _supply) \ |
1087 | static struct regulator_consumer_supply _name##_consumers[] = { \ | 1087 | static struct regulator_consumer_supply _name##_consumers[] = { \ |
1088 | { \ | 1088 | REGULATOR_SUPPLY(_supply, _dev_name), \ |
1089 | .dev_name = _dev_name, \ | ||
1090 | .supply = _supply, \ | ||
1091 | }, \ | ||
1092 | } | 1089 | } |
1093 | 1090 | ||
1094 | REGULATOR_CONSUMER(ldo3, "reg-userspace-consumer.0", "vcc gps"); | 1091 | REGULATOR_CONSUMER(ldo3, "reg-userspace-consumer.0", "vcc gps"); |
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index b83b95a29503..d09da6a746b8 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/gpio.h> | 22 | #include <linux/gpio.h> |
23 | #include <linux/gpio_keys.h> | 23 | #include <linux/gpio_keys.h> |
24 | #include <linux/input.h> | 24 | #include <linux/input.h> |
25 | #include <linux/input/navpoint.h> | ||
25 | #include <linux/lcd.h> | 26 | #include <linux/lcd.h> |
26 | #include <linux/mfd/htc-egpio.h> | 27 | #include <linux/mfd/htc-egpio.h> |
27 | #include <linux/mfd/asic3.h> | 28 | #include <linux/mfd/asic3.h> |
@@ -102,6 +103,10 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
102 | GPIO44_BTUART_CTS, | 103 | GPIO44_BTUART_CTS, |
103 | GPIO45_BTUART_RTS_LPM_LOW, | 104 | GPIO45_BTUART_RTS_LPM_LOW, |
104 | 105 | ||
106 | /* STUART (IRDA) */ | ||
107 | GPIO46_STUART_RXD, | ||
108 | GPIO47_STUART_TXD, | ||
109 | |||
105 | /* PWM 1 (Backlight) */ | 110 | /* PWM 1 (Backlight) */ |
106 | GPIO17_PWM1_OUT, | 111 | GPIO17_PWM1_OUT, |
107 | 112 | ||
@@ -113,7 +118,7 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
113 | GPIO113_I2S_SYSCLK, | 118 | GPIO113_I2S_SYSCLK, |
114 | 119 | ||
115 | /* SSP 1 (NavPoint) */ | 120 | /* SSP 1 (NavPoint) */ |
116 | GPIO23_SSP1_SCLK, | 121 | GPIO23_SSP1_SCLK_IN, |
117 | GPIO24_SSP1_SFRM, | 122 | GPIO24_SSP1_SFRM, |
118 | GPIO25_SSP1_TXD, | 123 | GPIO25_SSP1_TXD, |
119 | GPIO26_SSP1_RXD, | 124 | GPIO26_SSP1_RXD, |
@@ -125,10 +130,13 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
125 | GPIO88_GPIO, | 130 | GPIO88_GPIO, |
126 | 131 | ||
127 | /* HX4700 specific input GPIOs */ | 132 | /* HX4700 specific input GPIOs */ |
128 | GPIO12_GPIO, /* ASIC3_IRQ */ | 133 | GPIO12_GPIO | WAKEUP_ON_EDGE_RISE, /* ASIC3_IRQ */ |
129 | GPIO13_GPIO, /* W3220_IRQ */ | 134 | GPIO13_GPIO, /* W3220_IRQ */ |
130 | GPIO14_GPIO, /* nWLAN_IRQ */ | 135 | GPIO14_GPIO, /* nWLAN_IRQ */ |
131 | 136 | ||
137 | /* HX4700 specific output GPIOs */ | ||
138 | GPIO102_GPIO | MFP_LPM_DRIVE_LOW, /* SYNAPTICS_POWER_ON */ | ||
139 | |||
132 | GPIO10_GPIO, /* GSM_IRQ */ | 140 | GPIO10_GPIO, /* GSM_IRQ */ |
133 | GPIO13_GPIO, /* CPLD_IRQ */ | 141 | GPIO13_GPIO, /* CPLD_IRQ */ |
134 | GPIO107_GPIO, /* DS1WM_IRQ */ | 142 | GPIO107_GPIO, /* DS1WM_IRQ */ |
@@ -183,6 +191,23 @@ static struct platform_device gpio_keys = { | |||
183 | }; | 191 | }; |
184 | 192 | ||
185 | /* | 193 | /* |
194 | * Synaptics NavPoint connected to SSP1 | ||
195 | */ | ||
196 | |||
197 | static struct navpoint_platform_data navpoint_platform_data = { | ||
198 | .port = 1, | ||
199 | .gpio = GPIO102_HX4700_SYNAPTICS_POWER_ON, | ||
200 | }; | ||
201 | |||
202 | static struct platform_device navpoint = { | ||
203 | .name = "navpoint", | ||
204 | .id = -1, | ||
205 | .dev = { | ||
206 | .platform_data = &navpoint_platform_data, | ||
207 | }, | ||
208 | }; | ||
209 | |||
210 | /* | ||
186 | * ASIC3 | 211 | * ASIC3 |
187 | */ | 212 | */ |
188 | 213 | ||
@@ -227,7 +252,6 @@ static u16 asic3_gpio_config[] = { | |||
227 | ASIC3_GPIOC0_LED0, /* red */ | 252 | ASIC3_GPIOC0_LED0, /* red */ |
228 | ASIC3_GPIOC1_LED1, /* green */ | 253 | ASIC3_GPIOC1_LED1, /* green */ |
229 | ASIC3_GPIOC2_LED2, /* blue */ | 254 | ASIC3_GPIOC2_LED2, /* blue */ |
230 | ASIC3_GPIOC4_CF_nCD, | ||
231 | ASIC3_GPIOC5_nCIOW, | 255 | ASIC3_GPIOC5_nCIOW, |
232 | ASIC3_GPIOC6_nCIOR, | 256 | ASIC3_GPIOC6_nCIOR, |
233 | ASIC3_GPIOC7_nPCE_1, | 257 | ASIC3_GPIOC7_nPCE_1, |
@@ -241,6 +265,7 @@ static u16 asic3_gpio_config[] = { | |||
241 | ASIC3_GPIOC15_nPIOR, | 265 | ASIC3_GPIOC15_nPIOR, |
242 | 266 | ||
243 | /* GPIOD: input GPIOs, CF */ | 267 | /* GPIOD: input GPIOs, CF */ |
268 | ASIC3_GPIOD4_CF_nCD, | ||
244 | ASIC3_GPIOD11_nCIOIS16, | 269 | ASIC3_GPIOD11_nCIOIS16, |
245 | ASIC3_GPIOD12_nCWAIT, | 270 | ASIC3_GPIOD12_nCWAIT, |
246 | ASIC3_GPIOD15_nPIOW, | 271 | ASIC3_GPIOD15_nPIOW, |
@@ -291,6 +316,7 @@ static struct asic3_platform_data asic3_platform_data = { | |||
291 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), | 316 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), |
292 | .irq_base = IRQ_BOARD_START, | 317 | .irq_base = IRQ_BOARD_START, |
293 | .gpio_base = HX4700_ASIC3_GPIO_BASE, | 318 | .gpio_base = HX4700_ASIC3_GPIO_BASE, |
319 | .clock_rate = 4000000, | ||
294 | .leds = asic3_leds, | 320 | .leds = asic3_leds, |
295 | }; | 321 | }; |
296 | 322 | ||
@@ -680,12 +706,8 @@ static struct platform_device power_supply = { | |||
680 | */ | 706 | */ |
681 | 707 | ||
682 | static struct regulator_consumer_supply bq24022_consumers[] = { | 708 | static struct regulator_consumer_supply bq24022_consumers[] = { |
683 | { | 709 | REGULATOR_SUPPLY("vbus_draw", NULL), |
684 | .supply = "vbus_draw", | 710 | REGULATOR_SUPPLY("ac_draw", NULL), |
685 | }, | ||
686 | { | ||
687 | .supply = "ac_draw", | ||
688 | }, | ||
689 | }; | 711 | }; |
690 | 712 | ||
691 | static struct regulator_init_data bq24022_init_data = { | 713 | static struct regulator_init_data bq24022_init_data = { |
@@ -764,9 +786,8 @@ static struct platform_device strataflash = { | |||
764 | * Maxim MAX1587A on PI2C | 786 | * Maxim MAX1587A on PI2C |
765 | */ | 787 | */ |
766 | 788 | ||
767 | static struct regulator_consumer_supply max1587a_consumer = { | 789 | static struct regulator_consumer_supply max1587a_consumer = |
768 | .supply = "vcc_core", | 790 | REGULATOR_SUPPLY("vcc_core", NULL); |
769 | }; | ||
770 | 791 | ||
771 | static struct regulator_init_data max1587a_v3_info = { | 792 | static struct regulator_init_data max1587a_v3_info = { |
772 | .constraints = { | 793 | .constraints = { |
@@ -828,6 +849,7 @@ static struct platform_device audio = { | |||
828 | static struct platform_device *devices[] __initdata = { | 849 | static struct platform_device *devices[] __initdata = { |
829 | &asic3, | 850 | &asic3, |
830 | &gpio_keys, | 851 | &gpio_keys, |
852 | &navpoint, | ||
831 | &backlight, | 853 | &backlight, |
832 | &w3220, | 854 | &w3220, |
833 | &hx4700_lcd, | 855 | &hx4700_lcd, |
@@ -859,6 +881,7 @@ static void __init hx4700_init(void) | |||
859 | int ret; | 881 | int ret; |
860 | 882 | ||
861 | pxa2xx_mfp_config(ARRAY_AND_SIZE(hx4700_pin_config)); | 883 | pxa2xx_mfp_config(ARRAY_AND_SIZE(hx4700_pin_config)); |
884 | gpio_set_wake(GPIO12_HX4700_ASIC3_IRQ, 1); | ||
862 | ret = gpio_request_array(ARRAY_AND_SIZE(global_gpios)); | 885 | ret = gpio_request_array(ARRAY_AND_SIZE(global_gpios)); |
863 | if (ret) | 886 | if (ret) |
864 | pr_err ("hx4700: Failed to request GPIOs.\n"); | 887 | pr_err ("hx4700: Failed to request GPIOs.\n"); |
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h index a65867209aa0..a611ad3153c7 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | |||
@@ -208,6 +208,7 @@ | |||
208 | #define GPIO113_I2S_SYSCLK MFP_CFG_OUT(GPIO113, AF1, DRIVE_LOW) | 208 | #define GPIO113_I2S_SYSCLK MFP_CFG_OUT(GPIO113, AF1, DRIVE_LOW) |
209 | 209 | ||
210 | /* SSP 1 */ | 210 | /* SSP 1 */ |
211 | #define GPIO23_SSP1_SCLK_IN MFP_CFG_IN(GPIO23, AF2) | ||
211 | #define GPIO23_SSP1_SCLK MFP_CFG_OUT(GPIO23, AF2, DRIVE_LOW) | 212 | #define GPIO23_SSP1_SCLK MFP_CFG_OUT(GPIO23, AF2, DRIVE_LOW) |
212 | #define GPIO29_SSP1_SCLK MFP_CFG_IN(GPIO29, AF3) | 213 | #define GPIO29_SSP1_SCLK MFP_CFG_IN(GPIO29, AF3) |
213 | #define GPIO27_SSP1_SYSCLK MFP_CFG_OUT(GPIO27, AF1, DRIVE_LOW) | 214 | #define GPIO27_SSP1_SYSCLK MFP_CFG_OUT(GPIO27, AF1, DRIVE_LOW) |
diff --git a/arch/arm/mach-pxa/include/mach/mioa701.h b/arch/arm/mach-pxa/include/mach/mioa701.h index 02868447b0b1..e57f5c724e8a 100644 --- a/arch/arm/mach-pxa/include/mach/mioa701.h +++ b/arch/arm/mach-pxa/include/mach/mioa701.h | |||
@@ -61,6 +61,9 @@ | |||
61 | #define GPIO93_KEY_VOLUME_UP 93 | 61 | #define GPIO93_KEY_VOLUME_UP 93 |
62 | #define GPIO94_KEY_VOLUME_DOWN 94 | 62 | #define GPIO94_KEY_VOLUME_DOWN 94 |
63 | 63 | ||
64 | /* Camera */ | ||
65 | #define GPIO56_MT9M111_nOE 56 | ||
66 | |||
64 | extern struct input_dev *mioa701_evdev; | 67 | extern struct input_dev *mioa701_evdev; |
65 | extern void mioa701_gpio_lpm_set(unsigned long mfp_pin); | 68 | extern void mioa701_gpio_lpm_set(unsigned long mfp_pin); |
66 | 69 | ||
diff --git a/arch/arm/mach-pxa/include/mach/pcm990_baseboard.h b/arch/arm/mach-pxa/include/mach/pcm990_baseboard.h index d72791695b26..0260aaa2fc17 100644 --- a/arch/arm/mach-pxa/include/mach/pcm990_baseboard.h +++ b/arch/arm/mach-pxa/include/mach/pcm990_baseboard.h | |||
@@ -31,7 +31,6 @@ | |||
31 | #define PCM990_CTRL_INT_IRQ PXA_GPIO_TO_IRQ(PCM990_CTRL_INT_IRQ_GPIO) | 31 | #define PCM990_CTRL_INT_IRQ PXA_GPIO_TO_IRQ(PCM990_CTRL_INT_IRQ_GPIO) |
32 | #define PCM990_CTRL_INT_IRQ_EDGE IRQ_TYPE_EDGE_RISING | 32 | #define PCM990_CTRL_INT_IRQ_EDGE IRQ_TYPE_EDGE_RISING |
33 | #define PCM990_CTRL_PHYS PXA_CS1_PHYS /* 16-Bit */ | 33 | #define PCM990_CTRL_PHYS PXA_CS1_PHYS /* 16-Bit */ |
34 | #define PCM990_CTRL_BASE 0xea000000 | ||
35 | #define PCM990_CTRL_SIZE (1*1024*1024) | 34 | #define PCM990_CTRL_SIZE (1*1024*1024) |
36 | 35 | ||
37 | #define PCM990_CTRL_PWR_IRQ_GPIO 14 | 36 | #define PCM990_CTRL_PWR_IRQ_GPIO 14 |
@@ -69,13 +68,13 @@ | |||
69 | #define PCM990_CTRL_MMC2DE 0x0004 /* R MMC2 Card detect */ | 68 | #define PCM990_CTRL_MMC2DE 0x0004 /* R MMC2 Card detect */ |
70 | #define PCM990_CTRL_MMC2WP 0x0008 /* R MMC2 Card write protect */ | 69 | #define PCM990_CTRL_MMC2WP 0x0008 /* R MMC2 Card write protect */ |
71 | 70 | ||
72 | #define PCM990_CTRL_REG6 0x000C /* Interrupt Clear REGISTER */ | 71 | #define PCM990_CTRL_INTSETCLR 0x000C /* Interrupt Clear REGISTER */ |
73 | #define PCM990_CTRL_INTC0 0x0001 /* Clear Reg BT Detect */ | 72 | #define PCM990_CTRL_INTC0 0x0001 /* Clear Reg BT Detect */ |
74 | #define PCM990_CTRL_INTC1 0x0002 /* Clear Reg FR RI */ | 73 | #define PCM990_CTRL_INTC1 0x0002 /* Clear Reg FR RI */ |
75 | #define PCM990_CTRL_INTC2 0x0004 /* Clear Reg MMC1 Detect */ | 74 | #define PCM990_CTRL_INTC2 0x0004 /* Clear Reg MMC1 Detect */ |
76 | #define PCM990_CTRL_INTC3 0x0008 /* Clear Reg PM_5V off */ | 75 | #define PCM990_CTRL_INTC3 0x0008 /* Clear Reg PM_5V off */ |
77 | 76 | ||
78 | #define PCM990_CTRL_REG7 0x000E /* Interrupt Enable REGISTER */ | 77 | #define PCM990_CTRL_INTMSKENA 0x000E /* Interrupt Enable REGISTER */ |
79 | #define PCM990_CTRL_ENAINT0 0x0001 /* Enable Int BT Detect */ | 78 | #define PCM990_CTRL_ENAINT0 0x0001 /* Enable Int BT Detect */ |
80 | #define PCM990_CTRL_ENAINT1 0x0002 /* Enable Int FR RI */ | 79 | #define PCM990_CTRL_ENAINT1 0x0002 /* Enable Int FR RI */ |
81 | #define PCM990_CTRL_ENAINT2 0x0004 /* Enable Int MMC1 Detect */ | 80 | #define PCM990_CTRL_ENAINT2 0x0004 /* Enable Int MMC1 Detect */ |
@@ -102,32 +101,6 @@ | |||
102 | #define PCM990_CTRL_ACPRES 0x0004 /* DC Present */ | 101 | #define PCM990_CTRL_ACPRES 0x0004 /* DC Present */ |
103 | #define PCM990_CTRL_ACALARM 0x0008 /* Error Akku */ | 102 | #define PCM990_CTRL_ACALARM 0x0008 /* Error Akku */ |
104 | 103 | ||
105 | #define PCM990_CTRL_P2V(x) ((x) - PCM990_CTRL_PHYS + PCM990_CTRL_BASE) | ||
106 | #define PCM990_CTRL_V2P(x) ((x) - PCM990_CTRL_BASE + PCM990_CTRL_PHYS) | ||
107 | |||
108 | #ifndef __ASSEMBLY__ | ||
109 | # define __PCM990_CTRL_REG(x) \ | ||
110 | (*((volatile unsigned char *)PCM990_CTRL_P2V(x))) | ||
111 | #else | ||
112 | # define __PCM990_CTRL_REG(x) PCM990_CTRL_P2V(x) | ||
113 | #endif | ||
114 | |||
115 | #define PCM990_INTMSKENA __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG7) | ||
116 | #define PCM990_INTSETCLR __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG6) | ||
117 | #define PCM990_CTRL0 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG0) | ||
118 | #define PCM990_CTRL1 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG1) | ||
119 | #define PCM990_CTRL2 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG2) | ||
120 | #define PCM990_CTRL3 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG3) | ||
121 | #define PCM990_CTRL4 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG4) | ||
122 | #define PCM990_CTRL5 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG5) | ||
123 | #define PCM990_CTRL6 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG6) | ||
124 | #define PCM990_CTRL7 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG7) | ||
125 | #define PCM990_CTRL8 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG8) | ||
126 | #define PCM990_CTRL9 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG9) | ||
127 | #define PCM990_CTRL10 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG10) | ||
128 | #define PCM990_CTRL11 __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG11) | ||
129 | |||
130 | |||
131 | /* | 104 | /* |
132 | * IDE | 105 | * IDE |
133 | */ | 106 | */ |
@@ -166,24 +139,6 @@ | |||
166 | #define PCM990_IDE_PLD_P2V(x) ((x) - PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_BASE) | 139 | #define PCM990_IDE_PLD_P2V(x) ((x) - PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_BASE) |
167 | #define PCM990_IDE_PLD_V2P(x) ((x) - PCM990_IDE_PLD_BASE + PCM990_IDE_PLD_PHYS) | 140 | #define PCM990_IDE_PLD_V2P(x) ((x) - PCM990_IDE_PLD_BASE + PCM990_IDE_PLD_PHYS) |
168 | 141 | ||
169 | #ifndef __ASSEMBLY__ | ||
170 | # define __PCM990_IDE_PLD_REG(x) \ | ||
171 | (*((volatile unsigned char *)PCM990_IDE_PLD_P2V(x))) | ||
172 | #else | ||
173 | # define __PCM990_IDE_PLD_REG(x) PCM990_IDE_PLD_P2V(x) | ||
174 | #endif | ||
175 | |||
176 | #define PCM990_IDE0 \ | ||
177 | __PCM990_IDE_PLD_REG(PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_REG0) | ||
178 | #define PCM990_IDE1 \ | ||
179 | __PCM990_IDE_PLD_REG(PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_REG1) | ||
180 | #define PCM990_IDE2 \ | ||
181 | __PCM990_IDE_PLD_REG(PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_REG2) | ||
182 | #define PCM990_IDE3 \ | ||
183 | __PCM990_IDE_PLD_REG(PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_REG3) | ||
184 | #define PCM990_IDE4 \ | ||
185 | __PCM990_IDE_PLD_REG(PCM990_IDE_PLD_PHYS + PCM990_IDE_PLD_REG4) | ||
186 | |||
187 | /* | 142 | /* |
188 | * Compact Flash | 143 | * Compact Flash |
189 | */ | 144 | */ |
@@ -196,10 +151,6 @@ | |||
196 | #define PCM990_CF_CD_EDGE IRQ_TYPE_EDGE_RISING | 151 | #define PCM990_CF_CD_EDGE IRQ_TYPE_EDGE_RISING |
197 | 152 | ||
198 | #define PCM990_CF_PLD_PHYS 0x30000000 /* 16 bit wide */ | 153 | #define PCM990_CF_PLD_PHYS 0x30000000 /* 16 bit wide */ |
199 | #define PCM990_CF_PLD_BASE 0xef000000 | ||
200 | #define PCM990_CF_PLD_SIZE (1*1024*1024) | ||
201 | #define PCM990_CF_PLD_P2V(x) ((x) - PCM990_CF_PLD_PHYS + PCM990_CF_PLD_BASE) | ||
202 | #define PCM990_CF_PLD_V2P(x) ((x) - PCM990_CF_PLD_BASE + PCM990_CF_PLD_PHYS) | ||
203 | 154 | ||
204 | /* visible CPLD (U6) registers */ | 155 | /* visible CPLD (U6) registers */ |
205 | #define PCM990_CF_PLD_REG0 0x1000 /* OFFSET CF REGISTER 0 */ | 156 | #define PCM990_CF_PLD_REG0 0x1000 /* OFFSET CF REGISTER 0 */ |
@@ -239,21 +190,6 @@ | |||
239 | #define PCM990_CF_REG6_CD1 0x0001 /* R CF Card_Detect1 */ | 190 | #define PCM990_CF_REG6_CD1 0x0001 /* R CF Card_Detect1 */ |
240 | #define PCM990_CF_REG6_CD2 0x0002 /* R CF Card_Detect2 */ | 191 | #define PCM990_CF_REG6_CD2 0x0002 /* R CF Card_Detect2 */ |
241 | 192 | ||
242 | #ifndef __ASSEMBLY__ | ||
243 | # define __PCM990_CF_PLD_REG(x) \ | ||
244 | (*((volatile unsigned char *)PCM990_CF_PLD_P2V(x))) | ||
245 | #else | ||
246 | # define __PCM990_CF_PLD_REG(x) PCM990_CF_PLD_P2V(x) | ||
247 | #endif | ||
248 | |||
249 | #define PCM990_CF0 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG0) | ||
250 | #define PCM990_CF1 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG1) | ||
251 | #define PCM990_CF2 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG2) | ||
252 | #define PCM990_CF3 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG3) | ||
253 | #define PCM990_CF4 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG4) | ||
254 | #define PCM990_CF5 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG5) | ||
255 | #define PCM990_CF6 __PCM990_CF_PLD_REG(PCM990_CF_PLD_PHYS + PCM990_CF_PLD_REG6) | ||
256 | |||
257 | /* | 193 | /* |
258 | * Wolfson AC97 Touch | 194 | * Wolfson AC97 Touch |
259 | */ | 195 | */ |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 8de0651d7efb..2db697cd2b4e 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -579,12 +579,8 @@ static struct platform_device power_supply = { | |||
579 | */ | 579 | */ |
580 | 580 | ||
581 | static struct regulator_consumer_supply bq24022_consumers[] = { | 581 | static struct regulator_consumer_supply bq24022_consumers[] = { |
582 | { | 582 | REGULATOR_SUPPLY("vbus_draw", NULL), |
583 | .supply = "vbus_draw", | 583 | REGULATOR_SUPPLY("ac_draw", NULL), |
584 | }, | ||
585 | { | ||
586 | .supply = "ac_draw", | ||
587 | }, | ||
588 | }; | 584 | }; |
589 | 585 | ||
590 | static struct regulator_init_data bq24022_init_data = { | 586 | static struct regulator_init_data bq24022_init_data = { |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 061d57009cee..bf99022b021f 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -103,6 +103,7 @@ static unsigned long mioa701_pin_config[] = { | |||
103 | GPIO82_CIF_DD_5, | 103 | GPIO82_CIF_DD_5, |
104 | GPIO84_CIF_FV, | 104 | GPIO84_CIF_FV, |
105 | GPIO85_CIF_LV, | 105 | GPIO85_CIF_LV, |
106 | MIO_CFG_OUT(GPIO56_MT9M111_nOE, AF0, DRIVE_LOW), | ||
106 | 107 | ||
107 | /* Bluetooth */ | 108 | /* Bluetooth */ |
108 | MIO_CFG_IN(GPIO14_BT_nACTIVITY, AF0), | 109 | MIO_CFG_IN(GPIO14_BT_nACTIVITY, AF0), |
@@ -581,9 +582,7 @@ static struct wm97xx_pdata mioa701_wm97xx_pdata = { | |||
581 | * Voltage regulation | 582 | * Voltage regulation |
582 | */ | 583 | */ |
583 | static struct regulator_consumer_supply max1586_consumers[] = { | 584 | static struct regulator_consumer_supply max1586_consumers[] = { |
584 | { | 585 | REGULATOR_SUPPLY("vcc_core", NULL), |
585 | .supply = "vcc_core", | ||
586 | } | ||
587 | }; | 586 | }; |
588 | 587 | ||
589 | static struct regulator_init_data max1586_v3_info = { | 588 | static struct regulator_init_data max1586_v3_info = { |
@@ -705,6 +704,7 @@ static struct gpio global_gpios[] = { | |||
705 | { GPIO9_CHARGE_EN, GPIOF_OUT_INIT_HIGH, "Charger enable" }, | 704 | { GPIO9_CHARGE_EN, GPIOF_OUT_INIT_HIGH, "Charger enable" }, |
706 | { GPIO18_POWEROFF, GPIOF_OUT_INIT_LOW, "Power Off" }, | 705 | { GPIO18_POWEROFF, GPIOF_OUT_INIT_LOW, "Power Off" }, |
707 | { GPIO87_LCD_POWER, GPIOF_OUT_INIT_LOW, "LCD Power" }, | 706 | { GPIO87_LCD_POWER, GPIOF_OUT_INIT_LOW, "LCD Power" }, |
707 | { GPIO56_MT9M111_nOE, GPIOF_OUT_INIT_LOW, "Camera nOE" }, | ||
708 | }; | 708 | }; |
709 | 709 | ||
710 | static void __init mioa701_machine_init(void) | 710 | static void __init mioa701_machine_init(void) |
diff --git a/arch/arm/mach-pxa/palm27x.c b/arch/arm/mach-pxa/palm27x.c index fbc10d7b95d1..dad71cfa34c8 100644 --- a/arch/arm/mach-pxa/palm27x.c +++ b/arch/arm/mach-pxa/palm27x.c | |||
@@ -429,9 +429,7 @@ void __init palm27x_power_init(int ac, int usb) | |||
429 | #if defined(CONFIG_REGULATOR_MAX1586) || \ | 429 | #if defined(CONFIG_REGULATOR_MAX1586) || \ |
430 | defined(CONFIG_REGULATOR_MAX1586_MODULE) | 430 | defined(CONFIG_REGULATOR_MAX1586_MODULE) |
431 | static struct regulator_consumer_supply palm27x_max1587a_consumers[] = { | 431 | static struct regulator_consumer_supply palm27x_max1587a_consumers[] = { |
432 | { | 432 | REGULATOR_SUPPLY("vcc_core", NULL), |
433 | .supply = "vcc_core", | ||
434 | } | ||
435 | }; | 433 | }; |
436 | 434 | ||
437 | static struct regulator_init_data palm27x_max1587a_v3_info = { | 435 | static struct regulator_init_data palm27x_max1587a_v3_info = { |
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index abab4e2b122c..cb723e84bc27 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -65,6 +65,18 @@ static unsigned long pcm990_pin_config[] __initdata = { | |||
65 | GPIO31_AC97_SYNC, | 65 | GPIO31_AC97_SYNC, |
66 | }; | 66 | }; |
67 | 67 | ||
68 | static void __iomem *pcm990_cpld_base; | ||
69 | |||
70 | static u8 pcm990_cpld_readb(unsigned int reg) | ||
71 | { | ||
72 | return readb(pcm990_cpld_base + reg); | ||
73 | } | ||
74 | |||
75 | static void pcm990_cpld_writeb(u8 value, unsigned int reg) | ||
76 | { | ||
77 | writeb(value, pcm990_cpld_base + reg); | ||
78 | } | ||
79 | |||
68 | /* | 80 | /* |
69 | * pcm990_lcd_power - control power supply to the LCD | 81 | * pcm990_lcd_power - control power supply to the LCD |
70 | * @on: 0 = switch off, 1 = switch on | 82 | * @on: 0 = switch off, 1 = switch on |
@@ -78,13 +90,13 @@ static void pcm990_lcd_power(int on, struct fb_var_screeninfo *var) | |||
78 | /* enable LCD-Latches | 90 | /* enable LCD-Latches |
79 | * power on LCD | 91 | * power on LCD |
80 | */ | 92 | */ |
81 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG3) = | 93 | pcm990_cpld_writeb(PCM990_CTRL_LCDPWR + PCM990_CTRL_LCDON, |
82 | PCM990_CTRL_LCDPWR + PCM990_CTRL_LCDON; | 94 | PCM990_CTRL_REG3); |
83 | } else { | 95 | } else { |
84 | /* disable LCD-Latches | 96 | /* disable LCD-Latches |
85 | * power off LCD | 97 | * power off LCD |
86 | */ | 98 | */ |
87 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG3) = 0x00; | 99 | pcm990_cpld_writeb(0, PCM990_CTRL_REG3); |
88 | } | 100 | } |
89 | } | 101 | } |
90 | #endif | 102 | #endif |
@@ -243,15 +255,26 @@ static unsigned long pcm990_irq_enabled; | |||
243 | static void pcm990_mask_ack_irq(struct irq_data *d) | 255 | static void pcm990_mask_ack_irq(struct irq_data *d) |
244 | { | 256 | { |
245 | int pcm990_irq = (d->irq - PCM027_IRQ(0)); | 257 | int pcm990_irq = (d->irq - PCM027_IRQ(0)); |
246 | PCM990_INTMSKENA = (pcm990_irq_enabled &= ~(1 << pcm990_irq)); | 258 | |
259 | pcm990_irq_enabled &= ~(1 << pcm990_irq); | ||
260 | |||
261 | pcm990_cpld_writeb(pcm990_irq_enabled, PCM990_CTRL_INTMSKENA); | ||
247 | } | 262 | } |
248 | 263 | ||
249 | static void pcm990_unmask_irq(struct irq_data *d) | 264 | static void pcm990_unmask_irq(struct irq_data *d) |
250 | { | 265 | { |
251 | int pcm990_irq = (d->irq - PCM027_IRQ(0)); | 266 | int pcm990_irq = (d->irq - PCM027_IRQ(0)); |
267 | u8 val; | ||
268 | |||
252 | /* the irq can be acknowledged only if deasserted, so it's done here */ | 269 | /* the irq can be acknowledged only if deasserted, so it's done here */ |
253 | PCM990_INTSETCLR |= 1 << pcm990_irq; | 270 | |
254 | PCM990_INTMSKENA = (pcm990_irq_enabled |= (1 << pcm990_irq)); | 271 | pcm990_irq_enabled |= (1 << pcm990_irq); |
272 | |||
273 | val = pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); | ||
274 | val |= 1 << pcm990_irq; | ||
275 | pcm990_cpld_writeb(val, PCM990_CTRL_INTSETCLR); | ||
276 | |||
277 | pcm990_cpld_writeb(pcm990_irq_enabled, PCM990_CTRL_INTMSKENA); | ||
255 | } | 278 | } |
256 | 279 | ||
257 | static struct irq_chip pcm990_irq_chip = { | 280 | static struct irq_chip pcm990_irq_chip = { |
@@ -261,7 +284,10 @@ static struct irq_chip pcm990_irq_chip = { | |||
261 | 284 | ||
262 | static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc) | 285 | static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc) |
263 | { | 286 | { |
264 | unsigned long pending = (~PCM990_INTSETCLR) & pcm990_irq_enabled; | 287 | unsigned long pending; |
288 | |||
289 | pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); | ||
290 | pending &= pcm990_irq_enabled; | ||
265 | 291 | ||
266 | do { | 292 | do { |
267 | /* clear our parent IRQ */ | 293 | /* clear our parent IRQ */ |
@@ -270,7 +296,8 @@ static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
270 | irq = PCM027_IRQ(0) + __ffs(pending); | 296 | irq = PCM027_IRQ(0) + __ffs(pending); |
271 | generic_handle_irq(irq); | 297 | generic_handle_irq(irq); |
272 | } | 298 | } |
273 | pending = (~PCM990_INTSETCLR) & pcm990_irq_enabled; | 299 | pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); |
300 | pending &= pcm990_irq_enabled; | ||
274 | } while (pending); | 301 | } while (pending); |
275 | } | 302 | } |
276 | 303 | ||
@@ -285,8 +312,9 @@ static void __init pcm990_init_irq(void) | |||
285 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 312 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
286 | } | 313 | } |
287 | 314 | ||
288 | PCM990_INTMSKENA = 0x00; /* disable all Interrupts */ | 315 | /* disable all Interrupts */ |
289 | PCM990_INTSETCLR = 0xFF; | 316 | pcm990_cpld_writeb(0x0, PCM990_CTRL_INTMSKENA); |
317 | pcm990_cpld_writeb(0xff, PCM990_CTRL_INTSETCLR); | ||
290 | 318 | ||
291 | irq_set_chained_handler(PCM990_CTRL_INT_IRQ, pcm990_irq_handler); | 319 | irq_set_chained_handler(PCM990_CTRL_INT_IRQ, pcm990_irq_handler); |
292 | irq_set_irq_type(PCM990_CTRL_INT_IRQ, PCM990_CTRL_INT_IRQ_EDGE); | 320 | irq_set_irq_type(PCM990_CTRL_INT_IRQ, PCM990_CTRL_INT_IRQ_EDGE); |
@@ -309,13 +337,16 @@ static int pcm990_mci_init(struct device *dev, irq_handler_t mci_detect_int, | |||
309 | static void pcm990_mci_setpower(struct device *dev, unsigned int vdd) | 337 | static void pcm990_mci_setpower(struct device *dev, unsigned int vdd) |
310 | { | 338 | { |
311 | struct pxamci_platform_data *p_d = dev->platform_data; | 339 | struct pxamci_platform_data *p_d = dev->platform_data; |
340 | u8 val; | ||
341 | |||
342 | val = pcm990_cpld_readb(PCM990_CTRL_REG5); | ||
312 | 343 | ||
313 | if ((1 << vdd) & p_d->ocr_mask) | 344 | if ((1 << vdd) & p_d->ocr_mask) |
314 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG5) = | 345 | val |= PCM990_CTRL_MMC2PWR; |
315 | PCM990_CTRL_MMC2PWR; | ||
316 | else | 346 | else |
317 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG5) = | 347 | val &= ~PCM990_CTRL_MMC2PWR; |
318 | ~PCM990_CTRL_MMC2PWR; | 348 | |
349 | pcm990_cpld_writeb(PCM990_CTRL_MMC2PWR, PCM990_CTRL_REG5); | ||
319 | } | 350 | } |
320 | 351 | ||
321 | static void pcm990_mci_exit(struct device *dev, void *data) | 352 | static void pcm990_mci_exit(struct device *dev, void *data) |
@@ -481,23 +512,6 @@ static struct platform_device pcm990_camera[] = { | |||
481 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ | 512 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ |
482 | 513 | ||
483 | /* | 514 | /* |
484 | * enable generic access to the base board control CPLDs U6 and U7 | ||
485 | */ | ||
486 | static struct map_desc pcm990_io_desc[] __initdata = { | ||
487 | { | ||
488 | .virtual = PCM990_CTRL_BASE, | ||
489 | .pfn = __phys_to_pfn(PCM990_CTRL_PHYS), | ||
490 | .length = PCM990_CTRL_SIZE, | ||
491 | .type = MT_DEVICE /* CPLD */ | ||
492 | }, { | ||
493 | .virtual = PCM990_CF_PLD_BASE, | ||
494 | .pfn = __phys_to_pfn(PCM990_CF_PLD_PHYS), | ||
495 | .length = PCM990_CF_PLD_SIZE, | ||
496 | .type = MT_DEVICE /* CPLD */ | ||
497 | } | ||
498 | }; | ||
499 | |||
500 | /* | ||
501 | * system init for baseboard usage. Will be called by pcm027 init. | 515 | * system init for baseboard usage. Will be called by pcm027 init. |
502 | * | 516 | * |
503 | * Add platform devices present on this baseboard and init | 517 | * Add platform devices present on this baseboard and init |
@@ -507,8 +521,11 @@ void __init pcm990_baseboard_init(void) | |||
507 | { | 521 | { |
508 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pcm990_pin_config)); | 522 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pcm990_pin_config)); |
509 | 523 | ||
510 | /* register CPLD access */ | 524 | pcm990_cpld_base = ioremap(PCM990_CTRL_PHYS, PCM990_CTRL_SIZE); |
511 | iotable_init(ARRAY_AND_SIZE(pcm990_io_desc)); | 525 | if (!pcm990_cpld_base) { |
526 | pr_err("pcm990: failed to ioremap cpld\n"); | ||
527 | return; | ||
528 | } | ||
512 | 529 | ||
513 | /* register CPLD's IRQ controller */ | 530 | /* register CPLD's IRQ controller */ |
514 | pcm990_init_irq(); | 531 | pcm990_init_irq(); |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index df2ab0fb2ace..363d91b44ecb 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -877,9 +877,7 @@ static struct i2c_board_info spitz_i2c_devs[] = { | |||
877 | }; | 877 | }; |
878 | 878 | ||
879 | static struct regulator_consumer_supply isl6271a_consumers[] = { | 879 | static struct regulator_consumer_supply isl6271a_consumers[] = { |
880 | { | 880 | REGULATOR_SUPPLY("vcc_core", NULL), |
881 | .supply = "vcc_core", | ||
882 | } | ||
883 | }; | 881 | }; |
884 | 882 | ||
885 | static struct regulator_init_data isl6271a_info[] = { | 883 | static struct regulator_init_data isl6271a_info[] = { |
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c index 4cd645e29b64..30b1b0b3c7f7 100644 --- a/arch/arm/mach-pxa/stargate2.c +++ b/arch/arm/mach-pxa/stargate2.c | |||
@@ -151,10 +151,7 @@ static struct platform_device sht15 = { | |||
151 | }; | 151 | }; |
152 | 152 | ||
153 | static struct regulator_consumer_supply stargate2_sensor_3_con[] = { | 153 | static struct regulator_consumer_supply stargate2_sensor_3_con[] = { |
154 | { | 154 | REGULATOR_SUPPLY("vcc", "sht15"), |
155 | .dev_name = "sht15", | ||
156 | .supply = "vcc", | ||
157 | }, | ||
158 | }; | 155 | }; |
159 | 156 | ||
160 | enum stargate2_ldos{ | 157 | enum stargate2_ldos{ |
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c index c57ab636ea9c..e1740acd15f1 100644 --- a/arch/arm/mach-pxa/vpac270.c +++ b/arch/arm/mach-pxa/vpac270.c | |||
@@ -640,9 +640,7 @@ static inline void vpac270_ide_init(void) {} | |||
640 | #if defined(CONFIG_REGULATOR_MAX1586) || \ | 640 | #if defined(CONFIG_REGULATOR_MAX1586) || \ |
641 | defined(CONFIG_REGULATOR_MAX1586_MODULE) | 641 | defined(CONFIG_REGULATOR_MAX1586_MODULE) |
642 | static struct regulator_consumer_supply vpac270_max1587a_consumers[] = { | 642 | static struct regulator_consumer_supply vpac270_max1587a_consumers[] = { |
643 | { | 643 | REGULATOR_SUPPLY("vcc_core", NULL), |
644 | .supply = "vcc_core", | ||
645 | } | ||
646 | }; | 644 | }; |
647 | 645 | ||
648 | static struct regulator_init_data vpac270_max1587a_v3_info = { | 646 | static struct regulator_init_data vpac270_max1587a_v3_info = { |
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index fa8619970841..b9320cb8a11f 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c | |||
@@ -615,9 +615,7 @@ static inline void z2_spi_init(void) {} | |||
615 | #if defined(CONFIG_REGULATOR_TPS65023) || \ | 615 | #if defined(CONFIG_REGULATOR_TPS65023) || \ |
616 | defined(CONFIG_REGULATOR_TPS65023_MODULE) | 616 | defined(CONFIG_REGULATOR_TPS65023_MODULE) |
617 | static struct regulator_consumer_supply z2_tps65021_consumers[] = { | 617 | static struct regulator_consumer_supply z2_tps65021_consumers[] = { |
618 | { | 618 | REGULATOR_SUPPLY("vcc_core", NULL), |
619 | .supply = "vcc_core", | ||
620 | } | ||
621 | }; | 619 | }; |
622 | 620 | ||
623 | static struct regulator_init_data z2_tps65021_info[] = { | 621 | static struct regulator_init_data z2_tps65021_info[] = { |