[U-Boot] [PATCH 2/2] board: ti: AM43XX: Add ddr voltage rail configuration
Keerthy
j-keerthy at ti.com
Fri Jun 2 09:30:31 UTC 2017
Add ddr voltage rail (dcdc3) configuration. Set the dcdc3
DDR supply to 1.35V.
Signed-off-by: Keerthy <j-keerthy at ti.com>
---
board/ti/am43xx/board.c | 7 +++++++
include/power/tps65218.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index c15d8fa..2c02909 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -441,6 +441,13 @@ void scale_vcores_generic(u32 m)
printf("%s failure\n", __func__);
return;
}
+
+ /* Set DCDC3 (DDR) voltage */
+ if (tps65218_voltage_update(TPS65218_DCDC3,
+ TPS65218_DCDC3_VOLT_SEL_1350MV)) {
+ printf("%s failure\n", __func__);
+ return;
+ }
}
void scale_vcores_idk(u32 m)
diff --git a/include/power/tps65218.h b/include/power/tps65218.h
index e3538e2..43b9c9a 100644
--- a/include/power/tps65218.h
+++ b/include/power/tps65218.h
@@ -63,6 +63,7 @@ enum {
#define TPS65218_DCDC_VOLT_SEL_1200MV 0x23
#define TPS65218_DCDC_VOLT_SEL_1260MV 0x29
#define TPS65218_DCDC_VOLT_SEL_1330MV 0x30
+#define TPS65218_DCDC3_VOLT_SEL_1350MV 0x12
#define TPS65218_CC_STAT (BIT(0) | BIT(1))
#define TPS65218_STATE (BIT(2) | BIT(3))
--
1.9.1
More information about the U-Boot
mailing list