]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk35xx: Enable fdtoverlay and kernel compression
authorJonas Karlman <jonas@kwiboo.se>
Mon, 17 Apr 2023 19:07:17 +0000 (19:07 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:01 +0000 (15:16 +0800)
Add fdtoverlay_addr_r, kernel_comp_addr_r and imply use of
OF_LIBFDT_OVERLAY on RK3568 and RK3588 to support fdtoverlay
and kernel compression.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/Kconfig
include/configs/rk3568_common.h
include/configs/rk3588_common.h

index 50edef0d13d3c0e0cb187070c29ffa0bb378819f..ce632f757ff824b2102638f565d14bf62c413f8d 100644 (file)
@@ -290,6 +290,7 @@ config ROCKCHIP_RK3568
        select DM_RESET
        imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
        imply ROCKCHIP_COMMON_BOARD
+       imply OF_LIBFDT_OVERLAY
        imply ROCKCHIP_OTP
        imply MISC_INIT_R
        help
@@ -312,6 +313,7 @@ config ROCKCHIP_RK3588
        select BOARD_LATE_INIT
        imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
        imply ROCKCHIP_COMMON_BOARD
+       imply OF_LIBFDT_OVERLAY
        imply ROCKCHIP_OTP
        imply MISC_INIT_R
        help
index a5e1dde508883cb55f07ab72d04716e0d59639ea..d6b5e7d890221ebaab9b4830858948dcbb671502 100644 (file)
 
 #define ENV_MEM_LAYOUT_SETTINGS                \
        "scriptaddr=0x00c00000\0"       \
+       "script_offset_f=0xffe000\0"    \
+       "script_size_f=0x2000\0"        \
        "pxefile_addr_r=0x00e00000\0"   \
        "fdt_addr_r=0x0a100000\0"       \
+       "fdtoverlay_addr_r=0x02000000\0"        \
        "kernel_addr_r=0x02080000\0"    \
-       "ramdisk_addr_r=0x0a200000\0"
+       "ramdisk_addr_r=0x0a200000\0"   \
+       "kernel_comp_addr_r=0x08000000\0"       \
+       "kernel_comp_size=0x2000000\0"
 
 #include <config_distro_bootcmd.h>
 #define CFG_EXTRA_ENV_SETTINGS         \
index abd20139aaf3ce106f6b8f13eb7923e0747aacec..b9f42717b75152d1c5bdf16e8e36d251de27b8ae 100644 (file)
 
 #define ENV_MEM_LAYOUT_SETTINGS                \
        "scriptaddr=0x00c00000\0"       \
+       "script_offset_f=0xffe000\0"    \
+       "script_size_f=0x2000\0"        \
        "pxefile_addr_r=0x00e00000\0"   \
        "fdt_addr_r=0x0a100000\0"       \
+       "fdtoverlay_addr_r=0x02000000\0"        \
        "kernel_addr_r=0x02080000\0"    \
-       "ramdisk_addr_r=0x0a200000\0"
+       "ramdisk_addr_r=0x0a200000\0"   \
+       "kernel_comp_addr_r=0x08000000\0"       \
+       "kernel_comp_size=0x2000000\0"
 
 #include <config_distro_bootcmd.h>
 #define CFG_EXTRA_ENV_SETTINGS \