summaryrefslogtreecommitdiff
path: root/board/sunxi
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2024-05-10 00:43:18 +0100
committerAndre Przywara <andre.przywara@arm.com>2024-07-15 18:11:13 +0100
commit51bee9b5a349b5f39ed39f650e07d16a1b22004f (patch)
treec2e38bdb763a75d73e16449c18f49157bc0b7912 /board/sunxi
parent5e8af847215969d8675252411bbb386ca8fee91d (diff)
downloadu-boot-51bee9b5a349b5f39ed39f650e07d16a1b22004f.tar.gz
u-boot-51bee9b5a349b5f39ed39f650e07d16a1b22004f.tar.bz2
u-boot-51bee9b5a349b5f39ed39f650e07d16a1b22004f.zip
power: pmic: sunxi: add AXP717 SPL support
On boards using the AXP717 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. Using the new generic AXP SPL driver, add the Kconfig options and platform bits needed to support an AXP717 PMIC chip in I2C mode. This allows to set up the correct voltage for the DRAM chips and the CPU cores. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Tested-by: Ryan Walklin <ryan@testtoast.com>
Diffstat (limited to 'board/sunxi')
-rw-r--r--board/sunxi/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index ed86f1df5d..9928069c0e 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -562,7 +562,7 @@ 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_AXP313_POWER
+ defined CONFIG_AXP313_POWER || defined CONFIG_AXP717_POWER
power_failed = axp_init();
if (IS_ENABLED(CONFIG_AXP_DISABLE_BOOT_ON_POWERON) && !power_failed) {