diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-06-23 08:08:39 -0700 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-06-23 08:08:39 -0700 |
| commit | 8fdc80c21f34a2171495e0714dbda57e7a29da47 (patch) | |
| tree | 879270c827a29fdbd49d27a6f9f8c2aa954ff97a /drivers/regulator/omap-pmic-regulator.c | |
| parent | be1b78afbe1a2beb0f10b4ca285b82e6309f898f (diff) | |
| download | olio-linux-3.10-8fdc80c21f34a2171495e0714dbda57e7a29da47.tar.xz olio-linux-3.10-8fdc80c21f34a2171495e0714dbda57e7a29da47.zip | |
Sashas device tree and low power mods PLUS reintroducing to the board file those things that aren't yet in the DT.
Change-Id: I99853ac272380ae07a533d8f0c9dffff9478c684
Diffstat (limited to 'drivers/regulator/omap-pmic-regulator.c')
| -rw-r--r-- | drivers/regulator/omap-pmic-regulator.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/regulator/omap-pmic-regulator.c b/drivers/regulator/omap-pmic-regulator.c index 2eab7c158e2..ca71c9fd85b 100644 --- a/drivers/regulator/omap-pmic-regulator.c +++ b/drivers/regulator/omap-pmic-regulator.c @@ -518,6 +518,36 @@ static const struct omap_pmic_info omap_tps65912_dcdc4 = { .voltage_selector_zero = true, }; +static const struct omap_pmic_info omap_tps65910_vdd1 = { + .slave_addr = 0x12, + .voltage_reg_addr = 0x22, + .cmd_reg_addr = 0x23, + .i2c_timeout_us = 200, + .slew_rate_uV = 7500, + .step_size_uV = 12500, + .min_uV = 562500, + .max_uV = 1350000, + .voltage_selector_offset = 0, + .voltage_selector_mask = 0x7F, + .voltage_selector_setbits = 0x0, + .voltage_selector_zero = true, +}; + +static const struct omap_pmic_info omap_tps65910_vdd2 = { + .slave_addr = 0x12, + .voltage_reg_addr = 0x24, + .cmd_reg_addr = 0x25, + .i2c_timeout_us = 200, + .slew_rate_uV = 7500, + .step_size_uV = 12500, + .min_uV = 562500, + .max_uV = 1200000, + .voltage_selector_offset = 0, + .voltage_selector_mask = 0x7F, + .voltage_selector_setbits = 0x0, + .voltage_selector_zero = true, +}; + static const struct of_device_id omap_pmic_of_match_tbl[] = { {.compatible = "ti,omap-twl4030-vdd1", .data = &omap_twl4030_vdd1,}, {.compatible = "ti,omap-twl4030-vdd2", .data = &omap_twl4030_vdd2,}, @@ -533,6 +563,8 @@ static const struct of_device_id omap_pmic_of_match_tbl[] = { {.compatible = "ti,omap-twl6035-smps8", .data = &omap_twl6035_smps8,}, {.compatible = "ti,omap-tps65912-dcdc1", .data = &omap_tps65912_dcdc1,}, {.compatible = "ti,omap-tps65912-dcdc4", .data = &omap_tps65912_dcdc4,}, + {.compatible = "ti,omap-tps65910-vdd1", .data = &omap_tps65910_vdd1,}, + {.compatible = "ti,omap-tps65910-vdd2", .data = &omap_tps65910_vdd2,}, {}, }; MODULE_DEVICE_TABLE(of, omap_pmic_of_match_tbl); |