aboutsummaryrefslogtreecommitdiffstats
path: root/board/sunxi
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2023-07-30 01:11:01 +0100
committerAndre Przywara <andre.przywara@arm.com>2023-11-12 16:47:16 +0000
commitd17d051c540a97b8d0b38236dd7fef2294db4e48 (patch)
tree4ec47cf9877428d979848f2d1684a2382117fcd2 /board/sunxi
parent1f6c98c2d3e553f1b84ac75459842da5dfa4090b (diff)
downloadu-boot-d17d051c540a97b8d0b38236dd7fef2294db4e48.tar.gz
power: pmic: sunxi: add AXP313 SPL driver
On boards using the AXP313 PMIC, the DRAM rail is often not setup correctly at reset time, so we have to program the PMIC very early in the SPL, before running the DRAM initialisation. Add a simple AXP313 PMIC driver that knows about DCDC2(CPU) and DCDC3(DRAM), so that we can bump up the voltage before the DRAM init. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r--board/sunxi/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 80589f96402..8c12c8deade 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -569,7 +569,8 @@ void sunxi_board_init(void)
#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER || \
defined CONFIG_AXP221_POWER || defined CONFIG_AXP305_POWER || \
- defined CONFIG_AXP809_POWER || defined CONFIG_AXP818_POWER
+ defined CONFIG_AXP809_POWER || defined CONFIG_AXP818_POWER || \
+ defined CONFIG_AXP313_POWER
power_failed = axp_init();
if (IS_ENABLED(CONFIG_AXP_DISABLE_BOOT_ON_POWERON) && !power_failed) {