]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: pmic: sunxi: add AXP313 SPL driver
authorAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jul 2023 00:11:01 +0000 (01:11 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 12 Nov 2023 16:47:16 +0000 (16:47 +0000)
commitd17d051c540a97b8d0b38236dd7fef2294db4e48
tree4ec47cf9877428d979848f2d1684a2382117fcd2
parent1f6c98c2d3e553f1b84ac75459842da5dfa4090b
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>
arch/arm/mach-sunxi/pmic_bus.c
board/sunxi/board.c
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/axp313.c [new file with mode: 0644]