mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
regulator: palmas: Add support for LDO1 regulator to provide 1.8V
Modify palmas_mmc1_poweron_ldo() API to set the voltage based on the voltage parameter passed as argument instead of always setting it to 3.0V. This allows MMC1 to set the LDO1 regulator voltage to 3.3V or 1.8V. 1.8V is required to add support for UHS mode. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
3936514b82
commit
9554a14df2
1 changed files with 2 additions and 3 deletions
|
@ -50,10 +50,9 @@ int palmas_mmc1_poweron_ldo(uint voltage)
|
||||||
int ret;
|
int ret;
|
||||||
/*
|
/*
|
||||||
* Currently valid for the dra7xx_evm board:
|
* Currently valid for the dra7xx_evm board:
|
||||||
* Set TPS659038 LDO1 to 3.0 V
|
* Set TPS659038 LDO1 to 3.0 V or 1.8V
|
||||||
*/
|
*/
|
||||||
val = LDO_VOLT_3V0;
|
ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, voltage);
|
||||||
ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, val);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("tps65903x: could not set LDO1 voltage.\n");
|
printf("tps65903x: could not set LDO1 voltage.\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue