diff options
author | Keerthy <j-keerthy@ti.com> | 2018-05-02 15:06:31 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-06 13:35:40 -0400 |
commit | ebf48500df91440773cb9684a5898d7ee61593d9 (patch) | |
tree | 81c8254b9a539222c755f1303ca5cccf41477616 /board/ti | |
parent | 1f154a63183d9dec1a2c8f3b2db0ed970df35093 (diff) | |
download | u-boot-ebf48500df91440773cb9684a5898d7ee61593d9.tar.gz |
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: fc69d472621b5 (“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>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/am43xx/board.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 0431cd4606..44f9774eb9 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -385,7 +385,7 @@ const struct dpll_params *get_dpll_per_params(void) void scale_vcores_generic(u32 m) { - int mpu_vdd; + int mpu_vdd, ddr_volt; if (i2c_probe(TPS65218_CHIP_PM)) return; @@ -424,9 +424,13 @@ void scale_vcores_generic(u32 m) return; } + if (board_is_eposevm()) + ddr_volt = TPS65218_DCDC3_VOLT_SEL_1200MV; + else + ddr_volt = TPS65218_DCDC3_VOLT_SEL_1350MV; + /* Set DCDC3 (DDR) voltage */ - if (tps65218_voltage_update(TPS65218_DCDC3, - TPS65218_DCDC3_VOLT_SEL_1350MV)) { + if (tps65218_voltage_update(TPS65218_DCDC3, ddr_volt)) { printf("%s failure\n", __func__); return; } |