From: H. Nikolaus Schaller Date: Wed, 27 Jan 2016 19:11:23 +0000 (+0100) Subject: Pyra: turn on LDO2 for VMMC for the SDIO4 (right SD card) slot X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f8a01949568f6f107cd78c3a929deffa27e6c67;p=pandora-u-boot.git Pyra: turn on LDO2 for VMMC for the SDIO4 (right SD card) slot Signed-off-by: H. Nikolaus Schaller --- diff --git a/drivers/power/palmas.c b/drivers/power/palmas.c index ff52f03209f..773e2811f62 100644 --- a/drivers/power/palmas.c +++ b/drivers/power/palmas.c @@ -66,6 +66,20 @@ int palmas_mmc1_poweron_ldo(void) } return 0; #else +#if defined(CONFIG_TARGET_PYRA_LC15) || defined(CONFIG_TARGET_LC15) + /* use LDO2 for SDIO4 slot */ + val = LDO_VOLT_3V0; + if (palmas_i2c_write_u8(TWL603X_CHIP_P1, LDO2_VOLTAGE, val)) { + printf("tps65903x: could not set LDO2 voltage.\n"); +// return 1; + } + /* TURN ON LDO2 */ + val = RSC_MODE_SLEEP | RSC_MODE_ACTIVE; + if (palmas_i2c_write_u8(TWL603X_CHIP_P1, LDO2_CTRL, val)) { + printf("tps65903x: could not turn on LDO2.\n"); +// return 1; + } +#endif /* * We assume that this is a OMAP543X + TWL603X board: * Set TWL6035/37 LDO9 to 3.0 V