diff options
Diffstat (limited to 'arch/arm')
-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 | 37 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/magician.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mioa701.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-pxa/palm27x.c | 4 | ||||
-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 |
12 files changed, 39 insertions, 45 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 6bd692d271c1..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> |
@@ -117,7 +118,7 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
117 | GPIO113_I2S_SYSCLK, | 118 | GPIO113_I2S_SYSCLK, |
118 | 119 | ||
119 | /* SSP 1 (NavPoint) */ | 120 | /* SSP 1 (NavPoint) */ |
120 | GPIO23_SSP1_SCLK, | 121 | GPIO23_SSP1_SCLK_IN, |
121 | GPIO24_SSP1_SFRM, | 122 | GPIO24_SSP1_SFRM, |
122 | GPIO25_SSP1_TXD, | 123 | GPIO25_SSP1_TXD, |
123 | GPIO26_SSP1_RXD, | 124 | GPIO26_SSP1_RXD, |
@@ -133,6 +134,9 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
133 | GPIO13_GPIO, /* W3220_IRQ */ | 134 | GPIO13_GPIO, /* W3220_IRQ */ |
134 | GPIO14_GPIO, /* nWLAN_IRQ */ | 135 | GPIO14_GPIO, /* nWLAN_IRQ */ |
135 | 136 | ||
137 | /* HX4700 specific output GPIOs */ | ||
138 | GPIO102_GPIO | MFP_LPM_DRIVE_LOW, /* SYNAPTICS_POWER_ON */ | ||
139 | |||
136 | GPIO10_GPIO, /* GSM_IRQ */ | 140 | GPIO10_GPIO, /* GSM_IRQ */ |
137 | GPIO13_GPIO, /* CPLD_IRQ */ | 141 | GPIO13_GPIO, /* CPLD_IRQ */ |
138 | GPIO107_GPIO, /* DS1WM_IRQ */ | 142 | GPIO107_GPIO, /* DS1WM_IRQ */ |
@@ -187,6 +191,23 @@ static struct platform_device gpio_keys = { | |||
187 | }; | 191 | }; |
188 | 192 | ||
189 | /* | 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 | /* | ||
190 | * ASIC3 | 211 | * ASIC3 |
191 | */ | 212 | */ |
192 | 213 | ||
@@ -685,12 +706,8 @@ static struct platform_device power_supply = { | |||
685 | */ | 706 | */ |
686 | 707 | ||
687 | static struct regulator_consumer_supply bq24022_consumers[] = { | 708 | static struct regulator_consumer_supply bq24022_consumers[] = { |
688 | { | 709 | REGULATOR_SUPPLY("vbus_draw", NULL), |
689 | .supply = "vbus_draw", | 710 | REGULATOR_SUPPLY("ac_draw", NULL), |
690 | }, | ||
691 | { | ||
692 | .supply = "ac_draw", | ||
693 | }, | ||
694 | }; | 711 | }; |
695 | 712 | ||
696 | static struct regulator_init_data bq24022_init_data = { | 713 | static struct regulator_init_data bq24022_init_data = { |
@@ -769,9 +786,8 @@ static struct platform_device strataflash = { | |||
769 | * Maxim MAX1587A on PI2C | 786 | * Maxim MAX1587A on PI2C |
770 | */ | 787 | */ |
771 | 788 | ||
772 | static struct regulator_consumer_supply max1587a_consumer = { | 789 | static struct regulator_consumer_supply max1587a_consumer = |
773 | .supply = "vcc_core", | 790 | REGULATOR_SUPPLY("vcc_core", NULL); |
774 | }; | ||
775 | 791 | ||
776 | static struct regulator_init_data max1587a_v3_info = { | 792 | static struct regulator_init_data max1587a_v3_info = { |
777 | .constraints = { | 793 | .constraints = { |
@@ -833,6 +849,7 @@ static struct platform_device audio = { | |||
833 | static struct platform_device *devices[] __initdata = { | 849 | static struct platform_device *devices[] __initdata = { |
834 | &asic3, | 850 | &asic3, |
835 | &gpio_keys, | 851 | &gpio_keys, |
852 | &navpoint, | ||
836 | &backlight, | 853 | &backlight, |
837 | &w3220, | 854 | &w3220, |
838 | &hx4700_lcd, | 855 | &hx4700_lcd, |
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/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 929c62b47b76..bf99022b021f 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -582,9 +582,7 @@ static struct wm97xx_pdata mioa701_wm97xx_pdata = { | |||
582 | * Voltage regulation | 582 | * Voltage regulation |
583 | */ | 583 | */ |
584 | static struct regulator_consumer_supply max1586_consumers[] = { | 584 | static struct regulator_consumer_supply max1586_consumers[] = { |
585 | { | 585 | REGULATOR_SUPPLY("vcc_core", NULL), |
586 | .supply = "vcc_core", | ||
587 | } | ||
588 | }; | 586 | }; |
589 | 587 | ||
590 | static struct regulator_init_data max1586_v3_info = { | 588 | static struct regulator_init_data max1586_v3_info = { |
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/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[] = { |