diff options
author | Robert Marklund <robert.marklund@stericsson.com> | 2011-09-30 10:37:20 +0200 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-05 15:11:19 +0200 |
commit | e39c76c77ebd90e2d503f09e34be89e4cd1ab322 (patch) | |
tree | d1f4154cb2bec9b942effeea0be8c63823352664 /arch/arm | |
parent | 354c4c33eb821f6044222938b546e396f992217e (diff) |
mach-ux500: reg: Add snowball en_3v3 regulator
Change-Id: I4684914897f888a5c61823e003788d3b91c4c226
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.c | 21 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.h | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index a474394f061..b6d3e3252bd 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c @@ -13,6 +13,7 @@ #include <linux/regulator/ab8500.h> #include "board-mop500-regulators.h" +#ifdef CONFIG_REGULATOR_FIXED_VOLTAGE /* * GPIO regulator controlled by the ab8500 GPIO16 */ @@ -35,6 +36,26 @@ struct regulator_init_data gpio_wlan_vbat_regulator = { }; /* + * GPIO regulator controlled by the ab8500 GPIO26 + */ +static struct regulator_consumer_supply gpio_en_3v3_consumers[] = { + /* for LAN chip */ + REGULATOR_SUPPLY("vdd33a", "smsc911x.0"), +}; + +struct regulator_init_data gpio_en_3v3_regulator = { + .constraints = { + .name = "EN-3V3", + .min_uV = 3300000, + .max_uV = 3300000, + .valid_ops_mask = REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = ARRAY_SIZE(gpio_en_3v3_consumers), + .consumer_supplies = gpio_en_3v3_consumers, +}; +#endif + +/* * TPS61052 regulator */ static struct regulator_consumer_supply tps61052_vaudio_consumers[] = { diff --git a/arch/arm/mach-ux500/board-mop500-regulators.h b/arch/arm/mach-ux500/board-mop500-regulators.h index d8c5694a35d..70848051d14 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.h +++ b/arch/arm/mach-ux500/board-mop500-regulators.h @@ -19,5 +19,6 @@ ab8500_regulator_reg_init[AB8500_NUM_REGULATOR_REGISTERS]; extern struct regulator_init_data ab8500_regulators[AB8500_NUM_REGULATORS]; extern struct regulator_init_data tps61052_regulator; extern struct regulator_init_data gpio_wlan_vbat_regulator; +extern struct regulator_init_data gpio_en_3v3_regulator; #endif |