summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Fache <h-fache@ti.com>2012-06-21 11:21:59 +0200
committerGuillaume Aubertin <g-aubertin@ti.com>2012-06-26 12:21:26 +0200
commit829b40b09d47ac50567e79c63a124937ce846d46 (patch)
tree383cf0345e36971246101116e72818466ea2e253
parentf5c45116890c5c9a811094dd8a7af87c6e16b77b (diff)
Blaze: add cam2pwr regulator
Signed-off-by: Hervé Fache <h-fache@ti.com>
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 3016ce1641b0..2caf8e98295d 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -506,6 +506,27 @@ static struct platform_device omap_vwlan_device = {
},
};
+static struct regulator_consumer_supply sdp4430_cam2_supply[] = {
+ {
+ .supply = "cam2pwr",
+ },
+};
+
+static struct regulator_init_data sdp4430_vaux3 = {
+ .constraints = {
+ .min_uV = 1000000,
+ .max_uV = 3000000,
+ .apply_uV = true,
+ .valid_modes_mask = REGULATOR_MODE_NORMAL
+ | REGULATOR_MODE_STANDBY,
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
+ | REGULATOR_CHANGE_MODE
+ | REGULATOR_CHANGE_STATUS,
+ },
+ .num_consumer_supplies = 1,
+ .consumer_supplies = sdp4430_cam2_supply,
+};
+
static int omap4_twl6030_hsmmc_late_init(struct device *dev)
{
int irq = 0;
@@ -606,6 +627,7 @@ static struct twl4030_platform_data sdp4430_twldata = {
/* Regulators */
.vusim = &sdp4430_vusim,
.vaux1 = &sdp4430_vaux1,
+ .vaux3 = &sdp4430_vaux3,
};
static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = {