summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Fache <h-fache@ti.com>2012-06-21 11:21:59 +0200
committerXavier Boudet <x-boudet@ti.com>2012-07-10 17:26:54 +0200
commit5868b36d38e3ea276de43d054193ce26ecdf33f5 (patch)
tree8bc6b8a17bf1223e3a1c8949907e050c43a000c2
parent5225a4a6fedc8b894e09bb1f296b7671378f4b35 (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 b61d0ed718a0..30144b8521c9 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[] = {