diff options
| author | Vladimir Tsunaev <vladimirt@motorola.com> | 2014-04-07 17:41:29 -0400 |
|---|---|---|
| committer | Vladimir Tsunaev <vladimirt@motorola.com> | 2014-04-09 12:41:24 -0400 |
| commit | e1734d1418bfec7b7ea195286933edd2d059e288 (patch) | |
| tree | 177e9eec2e523db1d0d12266fed0452e62b7dcd5 | |
| parent | 33ff1e4d1a7d4ed915b4df6756986fb871b8a20a (diff) | |
| download | olio-linux-3.10-e1734d1418bfec7b7ea195286933edd2d059e288.tar.xz olio-linux-3.10-e1734d1418bfec7b7ea195286933edd2d059e288.zip | |
IKXCLOCK-679 Add tps65912 as omap_pmic compatible regulator
Change-Id: Icf444e6c4b807264d887da796815050dcec90f76
Signed-off-by: Vladimir Tsunaev <vladimirt@motorola.com>
| -rw-r--r-- | drivers/regulator/omap-pmic-regulator.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/regulator/omap-pmic-regulator.c b/drivers/regulator/omap-pmic-regulator.c index 40c725f0aa9..7712aa14dc2 100644 --- a/drivers/regulator/omap-pmic-regulator.c +++ b/drivers/regulator/omap-pmic-regulator.c @@ -488,6 +488,35 @@ static const struct omap_pmic_info omap_twl6035_smps8 = { .voltage_selector_setbits = 0x0, .voltage_selector_zero = true, }; +static const struct omap_pmic_info omap_tps65912_dcdc1 = { + .slave_addr = 0x13, + .voltage_reg_addr = 0x04, + .cmd_reg_addr = 0x04, + .i2c_timeout_us = 200, + .slew_rate_uV = 6250, + .step_size_uV = 12500, + .min_uV = 500000, + .max_uV = 1287500, + .voltage_selector_offset = 0, + .voltage_selector_mask = 0x3F, + .voltage_selector_setbits = 0x0, + .voltage_selector_zero = true, +}; + +static const struct omap_pmic_info omap_tps65912_dcdc4 = { + .slave_addr = 0x13, + .voltage_reg_addr = 0x0d, + .cmd_reg_addr = 0x0d, + .i2c_timeout_us = 200, + .slew_rate_uV = 6250, + .step_size_uV = 12500, + .min_uV = 500000, + .max_uV = 1287500, + .voltage_selector_offset = 0, + .voltage_selector_mask = 0x3F, + .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,}, @@ -502,6 +531,8 @@ static const struct of_device_id omap_pmic_of_match_tbl[] = { {.compatible = "ti,omap-twl6035-smps1", .data = &omap_twl6035_smps1,}, {.compatible = "ti,omap-twl6035-smps4", .data = &omap_twl6035_smps4,}, {.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,}, {}, }; MODULE_DEVICE_TABLE(of, omap_pmic_of_match_tbl); |