[PATCH 2/2] sunxi: A64: enable AXP drivers
Andre Przywara
andre.przywara at arm.com
Wed May 7 02:53:25 CEST 2025
So far the 64-bit SoCs were relying on Trusted-Firmware to do the PMIC
setup, which was quite static: enabling most rails, regardless of
whether they are needed or not.
We have a fully DM compliant AXP regulator driver for a while, so that
U-Boot proper can do its own PMIC setup, based on the actual need
(typically for USB, Ethernet, HDMI).
Enable that driver by default for all A64 boards, along with the RSB
driver.
The goal is to allow dropping the ill-fated regulator setup code from
TF-A, so that this can become smaller, and we only enable rails that are
really needed.
Signed-off-by: Andre Przywara <andre.przywara at arm.com>
---
arch/arm/Kconfig | 1 +
arch/arm/mach-sunxi/Kconfig | 3 +++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fedfdb21457..6b59ff5be32 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1190,6 +1190,7 @@ config ARCH_SUNXI
select DM_SPI_FLASH if SPI && MTD
select DM_KEYBOARD
select DM_SERIAL
+ select DM_PMIC
select MMU_PGPROT if ARM64
select OF_BOARD_SETUP
select OF_CONTROL
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index fce817c9d40..c3718126cec 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -435,6 +435,9 @@ config MACH_SUN50I
select FIT
select SPL_LOAD_FIT if SPL
select SUNXI_A64_TIMER_ERRATUM
+ imply SYS_I2C_SUN8I_RSB
+ imply REGULATOR_AXP
+ imply PMIC_AXP
config MACH_SUN50I_H5
bool "sun50i (Allwinner H5)"
--
2.46.3
More information about the U-Boot
mailing list