From ac123692b2f6db46bcae6ec0ea14d309051b9b9c Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Mon, 3 Oct 2016 22:40:51 +0100 Subject: sunxi: power: set DRAM voltage to 1.5V On the Pine64 boards (at least on some of them) the PMIC does not reset the DRAM voltage (DCDC5) to the required 1.5V. Program the respective AXP register to improve DRAM stability. --- plat/sun50iw1p1/sunxi_power.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/sun50iw1p1/sunxi_power.c b/plat/sun50iw1p1/sunxi_power.c index 71d7775..11badcd 100644 --- a/plat/sun50iw1p1/sunxi_power.c +++ b/plat/sun50iw1p1/sunxi_power.c @@ -251,6 +251,8 @@ static int pmic_setup(void) } } + sunxi_pmic_write(0x24, 0xb3); /* DCDC5 = DDR RAM voltage = 1.5V */ + return 0; } -- cgit v1.2.3