1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

ARM: OMAP4+: Add support for getting pbias info from board

Palmas driver assumes it is always TPS659xx regulator on all DRA7xx based
boards to enable mmc regulator. This is not true always like in case of
DRA71x-evm. So get this information based on the board.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Delete omap4_vmmc_pbias_config from omap_hsmmc.c]
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Lokesh Vutla
2016-11-23 13:25:28 +05:30
committed by Tom Rini
parent f56e635099
commit b4b060066f
6 changed files with 82 additions and 48 deletions

View File

@@ -24,6 +24,16 @@
#define LDO1_CTRL 0x50
#define LDO1_VOLTAGE 0x51
/* LDO1 control/voltage for LP873x */
#define LP873X_LDO1_ADDR 0x60
#define LP873X_LDO1_CTRL 0x9
#define LP873X_LDO1_VOLTAGE 0xa
#define LP873X_LDO_VOLT_3V0 0x19
#define LP873X_LDO_VOLT_1V8 0xa
#define LP873X_LDO_CTRL_EN (0x1 << 0)
#define LP873X_LDO_CTRL_EN_PINCTRL (0x1 << 1)
#define LP873X_LDO_CTRL_RDIS_EN (0x1 << 2)
/* LDO2 control/voltage */
#define LDO2_CTRL 0x52
#define LDO2_VOLTAGE 0x53
@@ -119,7 +129,8 @@ static inline int palmas_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
}
void palmas_init_settings(void);
int palmas_mmc1_poweron_ldo(void);
int palmas_mmc1_poweron_ldo(uint voltage);
int lp873x_mmc1_poweron_ldo(uint voltage);
int twl603x_mmc1_set_ldo9(u8 vsel);
int twl603x_audio_power(u8 on);
int twl603x_enable_bb_charge(u8 bb_fields);