board: ti: am43: Fix DCDC3 voltage for epos-evm
A common voltage of 1.35V was being programmed for all am43 board
versions. EPOS-EVM Needs 1.20V for LPDDR2.
Fixes: fc69d47262
(“board: ti: AM43XX: Add ddr voltage rail configuration”)
Reported-by: James Doublesin <doublesin@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
1f154a6318
commit
ebf48500df
@ -385,7 +385,7 @@ const struct dpll_params *get_dpll_per_params(void)
|
|||||||
|
|
||||||
void scale_vcores_generic(u32 m)
|
void scale_vcores_generic(u32 m)
|
||||||
{
|
{
|
||||||
int mpu_vdd;
|
int mpu_vdd, ddr_volt;
|
||||||
|
|
||||||
if (i2c_probe(TPS65218_CHIP_PM))
|
if (i2c_probe(TPS65218_CHIP_PM))
|
||||||
return;
|
return;
|
||||||
@ -424,9 +424,13 @@ void scale_vcores_generic(u32 m)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (board_is_eposevm())
|
||||||
|
ddr_volt = TPS65218_DCDC3_VOLT_SEL_1200MV;
|
||||||
|
else
|
||||||
|
ddr_volt = TPS65218_DCDC3_VOLT_SEL_1350MV;
|
||||||
|
|
||||||
/* Set DCDC3 (DDR) voltage */
|
/* Set DCDC3 (DDR) voltage */
|
||||||
if (tps65218_voltage_update(TPS65218_DCDC3,
|
if (tps65218_voltage_update(TPS65218_DCDC3, ddr_volt)) {
|
||||||
TPS65218_DCDC3_VOLT_SEL_1350MV)) {
|
|
||||||
printf("%s failure\n", __func__);
|
printf("%s failure\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,7 @@ enum {
|
|||||||
#define TPS65218_DCDC_VOLT_SEL_1260MV 0x29
|
#define TPS65218_DCDC_VOLT_SEL_1260MV 0x29
|
||||||
#define TPS65218_DCDC_VOLT_SEL_1330MV 0x30
|
#define TPS65218_DCDC_VOLT_SEL_1330MV 0x30
|
||||||
#define TPS65218_DCDC3_VOLT_SEL_1350MV 0x12
|
#define TPS65218_DCDC3_VOLT_SEL_1350MV 0x12
|
||||||
|
#define TPS65218_DCDC3_VOLT_SEL_1200MV 0xC
|
||||||
|
|
||||||
#define TPS65218_CC_STAT (BIT(0) | BIT(1))
|
#define TPS65218_CC_STAT (BIT(0) | BIT(1))
|
||||||
#define TPS65218_STATE (BIT(2) | BIT(3))
|
#define TPS65218_STATE (BIT(2) | BIT(3))
|
||||||
|
Loading…
Reference in New Issue
Block a user