sunxi: Kconfig: Fix default order for V3s DRAM clock
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 5 Aug 2025 17:48:17 +0000 (19:48 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Aug 2025 23:50:57 +0000 (00:50 +0100)
The V3s (using co-packaged DRAM) runs at 360 MHz, which is specified in
the common platform Kconfig file. However the value for MACH_SUN8I will
be picked up instead due to ordering.

Re-order the defaults to have MACH_SUN8I_V3S before MACH_SUN8I and let
it select the correct default. Also update the LicheePi Zero Dock
defconfig to remove the value, which is now correctly selected.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Kconfig
configs/LicheePi_Zero_defconfig

index 5f128e7..b04ec67 100644 (file)
@@ -719,9 +719,9 @@ config DRAM_CLK
        int "sunxi dram clock speed"
        default 792 if MACH_SUN9I
        default 648 if MACH_SUN8I_R40
-       default 312 if MACH_SUN6I || MACH_SUN8I
        default 360 if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || \
                       MACH_SUN8I_V3S
+       default 312 if MACH_SUN6I || MACH_SUN8I
        default 672 if MACH_SUN50I
        default 744 if MACH_SUN50I_H6
        default 720 if MACH_SUN50I_H616 || MACH_SUN50I_A133
index baea047..7460548 100644 (file)
@@ -3,6 +3,5 @@ CONFIG_ARCH_SUNXI=y
 CONFIG_DEFAULT_DEVICE_TREE="allwinner/sun8i-v3s-licheepi-zero"
 CONFIG_SPL=y
 CONFIG_MACH_SUN8I_V3S=y
-CONFIG_DRAM_CLK=360
 # CONFIG_HAS_ARMV7_SECURE_BASE is not set
 CONFIG_NO_NET=y