diff options
author | Dan Murphy <dmurphy@ti.com> | 2013-08-26 08:54:49 -0500 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 23:42:39 +0200 |
commit | 1bd435bc70a03f150900be4ac70a7bc8bfa4b438 (patch) | |
tree | 57fe4afd26195f9afbb0cd1cf6e13c550e68dbf3 /drivers/power | |
parent | ec89e0a68a72c6fe930637f29bb8dd3fd4835dce (diff) | |
download | u-boot-imx-1bd435bc70a03f150900be4ac70a7bc8bfa4b438.zip u-boot-imx-1bd435bc70a03f150900be4ac70a7bc8bfa4b438.tar.gz u-boot-imx-1bd435bc70a03f150900be4ac70a7bc8bfa4b438.tar.bz2 |
ARM: OMAP5: Power: Add new function to turn on SMPS10
Add new functionality to turn on SMPS10 regulator.
This supplies the VBUS to devices connected to the
USB host ports
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/palmas.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/power/palmas.c b/drivers/power/palmas.c index c7b0cbe..cfbc9dc 100644 --- a/drivers/power/palmas.c +++ b/drivers/power/palmas.c @@ -127,6 +127,21 @@ int twl603x_audio_power(u8 on) } #endif +#ifdef CONFIG_PALMAS_USB_SS_PWR +/** + * @brief palmas_enable_ss_ldo - Configure EVM board specific configurations + * for the USB Super speed SMPS10 regulator. + * + * @return 0 + */ +int palmas_enable_ss_ldo(void) +{ + /* Enable smps10 regulator */ + return palmas_i2c_write_u8(TWL603X_CHIP_P1, SMPS10_CTRL, + SMPS10_MODE_ACTIVE_D); +} +#endif + /* * Enable/disable back-up battery (or super cap) charging on TWL6035/37. * Please use defined BB_xxx values. |