Message ID | 20250507005325.15612-3-andre.przywara@arm.com |
---|---|
State | New |
Delegated to: | Andre Przywara |
Headers | show |
Series | sunxi: A64: enable AXP driver support | expand |
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)"
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@arm.com> --- arch/arm/Kconfig | 1 + arch/arm/mach-sunxi/Kconfig | 3 +++ 2 files changed, 4 insertions(+)