]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rockchip: Use rk3568_common.h by default for RK356x boards
authorJonas Karlman <jonas@kwiboo.se>
Sun, 6 Apr 2025 00:24:27 +0000 (00:24 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 23 Apr 2025 14:12:02 +0000 (22:12 +0800)
Ensure rk3568_common.h can be used by boards directly by defining a
blank ROCKCHIP_DEVICE_SETTINGS unless it already is defined.

Add a default SYS_CONFIG_NAME to include rk3568_common.h unless a board
target overrides it in its board Kconfig.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3568/Kconfig
include/configs/rk3568_common.h

index c589fd586993b1f6e264fc094bf155c3e82ce46d..8a18b411c8620c047aef7a586a48a9e5be5b5589 100644 (file)
@@ -84,4 +84,7 @@ source "board/qnap/ts433/Kconfig"
 source "board/radxa/zero3-rk3566/Kconfig"
 source "board/xunlong/orangepi-3b-rk3566/Kconfig"
 
+config SYS_CONFIG_NAME
+       default "rk3568_common"
+
 endif
index a68ca381db575d09690bab9df49a79d93662549c..b2a35db0b949d735d2ba3636c8f223b134dd4c7c 100644 (file)
 #define CFG_SYS_SDRAM_BASE             0
 #define SDRAM_MAX_SIZE                 0xf0000000
 
+#ifndef ROCKCHIP_DEVICE_SETTINGS
+#define ROCKCHIP_DEVICE_SETTINGS
+#endif
+
 #define ENV_MEM_LAYOUT_SETTINGS                \
        "scriptaddr=0x00c00000\0"       \
        "script_offset_f=0xffe000\0"    \