Skip to content

Commit

Permalink
n9: add all remaining regulators to board file
Browse files Browse the repository at this point in the history
All regulators from 2.6 kernel board config, that haven't yet made it
into 3.5 were added.

Signed-off-by: Filip Matijević <[email protected]>
  • Loading branch information
filippz committed Feb 8, 2014
1 parent 8d44050 commit 172414d
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion arch/arm/mach-omap2/board-rm680.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ static struct regulator_consumer_supply rm696_vio_consumers[] = {
REGULATOR_SUPPLY("Vdd_IO", "3-001d"), /* LIS302 */
REGULATOR_SUPPLY("DVdd", "3-000f"), /* AK8975 */
REGULATOR_SUPPLY("Vdd_IO", "3-002b"), /* PN544 */
REGULATOR_SUPPLY("vmmc_aux", "mmci-omap-hs.1"),
REGULATOR_SUPPLY("Vbat", "3-01fa"), /* BCM4751_GPS */
REGULATOR_SUPPLY("Vddio", "3-01fa"), /* BCM4751_GPS */
};

static struct regulator_init_data rm696_vio_data = {
Expand Down Expand Up @@ -601,8 +604,47 @@ static struct regulator_init_data rm696_vaux1_data = {
.consumer_supplies = rm696_vaux1_consumers,
};

static struct regulator_consumer_supply rm696_vaux2_consumers[] = {
REGULATOR_SUPPLY("VDD_CSIPHY1", "omap3isp"), /* OMAP ISP */
REGULATOR_SUPPLY("VDD_CSIPHY2", "omap3isp"), /* OMAP ISP */
};

static struct regulator_init_data rm696_vaux2_data = {
.constraints = {
.name = "rm696_vaux2",
.min_uV = 1800000,
.max_uV = 1800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_MODE_STANDBY,
.valid_ops_mask = REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = ARRAY_SIZE(rm696_vaux2_consumers),
.consumer_supplies = rm696_vaux2_consumers,
};

static struct regulator_consumer_supply rm696_vaux3_consumers[] = {
REGULATOR_SUPPLY("VANA", "2-0037"), /* Main Camera Sensor */
REGULATOR_SUPPLY("VANA", "2-000e"), /* Main Camera Lens */
REGULATOR_SUPPLY("VANA", "2-0010"), /* Front Camera */
};

static struct regulator_init_data rm696_vaux3_data = {
.constraints = {
.name = "rm696_vaux3",
.min_uV = 2800000,
.max_uV = 2800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_MODE_STANDBY,
.valid_ops_mask = REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = ARRAY_SIZE(rm696_vaux3_consumers),
.consumer_supplies = rm696_vaux3_consumers,
};

static struct regulator_consumer_supply rm696_vaux4_consumers[] = {
REGULATOR_SUPPLY("AVDD", "2-0019"), /* TLV320DAC33 */
REGULATOR_SUPPLY("AVDD", "2-0019"), /* TLV320DAC33 */
};

static struct regulator_init_data rm696_vaux4_data = {
Expand Down Expand Up @@ -696,6 +738,8 @@ static struct twl4030_platform_data rm680_twl_data = {
.vmmc2 = &rm696_vmmc2_data,
.vsim = &rm696_vsim_data,
.vaux1 = &rm696_vaux1_data,
.vaux2 = &rm696_vaux2_data,
.vaux3 = &rm696_vaux3_data,
.vaux4 = &rm696_vaux4_data,
};

Expand Down

0 comments on commit 172414d

Please sign in to comment.