]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: nuvoton: arbel: change uboot load address
authorJim Liu <jim.t90615@gmail.com>
Tue, 4 Jul 2023 08:00:11 +0000 (16:00 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 19:21:07 +0000 (15:21 -0400)
use new memory layout and change uboot load address.
open tpm, tee and more config feature

No need to reserve top memory because the reserved space
is moved to the bottom area of memory.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
board/nuvoton/arbel_evb/Kconfig
configs/arbel_evb_defconfig
include/configs/arbel.h

index efe85974a296c1a2af76657bca3769ebeae487b1..33c589f1fb3f7d4d2203a135da602de555122342 100644 (file)
@@ -11,8 +11,8 @@ config SYS_CONFIG_NAME
 
 config SYS_MEM_TOP_HIDE
        hex "Reserved TOP memory"
-       default 0xB000000
+       default 0x0
        help
-         Reserve memory for ECC/GFX/VCD/ECE.
+         Reserve memory for ECC/GFX/OPTEE/TIP/CP.
 
 endif
index 29c4c187b585f2a3b414b4e354113a517d7c623d..c27a7cdd3a24e8e03ff9c190464b6d26ed280ec7 100644 (file)
@@ -2,7 +2,8 @@ CONFIG_ARM=y
 CONFIG_ARCH_NPCM=y
 CONFIG_SYS_MALLOC_LEN=0x240000
 CONFIG_SYS_MALLOC_F_LEN=0x1000
-CONFIG_NR_DRAM_BANKS=1
+CONFIG_TEXT_BASE=0x06208000
+CONFIG_NR_DRAM_BANKS=2
 CONFIG_ENV_SIZE=0x40000
 CONFIG_ENV_OFFSET=0x3C0000
 CONFIG_ENV_SECT_SIZE=0x1000
@@ -22,6 +23,8 @@ CONFIG_BOOTCOMMAND="run common_bootargs; run romboot"
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_MAXARGS=32
 CONFIG_SYS_BOOTM_LEN=0x1400000
+CONFIG_SYS_LOAD_ADDR=0x06208000
+CONFIG_SYS_INIT_SP_ADDR=0x06208000
 CONFIG_CMD_FUSE=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
@@ -86,3 +89,13 @@ CONFIG_USB_STORAGE=y
 CONFIG_LIB_HW_RAND=y
 CONFIG_SHA_HW_ACCEL=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_TEE=y
+CONFIG_OPTEE=y
+CONFIG_TPM=y
+CONFIG_TPM_V2=y
+CONFIG_TPM2_FTPM_TEE=y
+CONFIG_CMD_TPM=y
+CONFIG_SUPPORT_EMMC_RPMB=y
+CONFIG_CMD_GPT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_PART=y
index 8e27fb52a1c3e9fe0c0986ef169981880d4751dd..891257bc93a89de4ffe9196f3313a299e054a06f 100644 (file)
@@ -7,12 +7,13 @@
 #define __CONFIG_ARBEL_H
 
 #define CFG_SYS_SDRAM_BASE             0x0
-#define CFG_SYS_BOOTMAPSZ              (20 << 20)
+#define CFG_SYS_BOOTMAPSZ              (30 << 20)
+#define CFG_SYS_BOOTM_LEN              (20 << 20)
 #define CFG_SYS_INIT_RAM_ADDR  CFG_SYS_SDRAM_BASE
 #define CFG_SYS_INIT_RAM_SIZE  0x8000
 
 /* Default environemnt variables */
-#define CFG_EXTRA_ENV_SETTINGS   "uimage_flash_addr=80200000\0"   \
+#define CFG_EXTRA_ENV_SETTINGS   "uimage_flash_addr=80400000\0"   \
                "stdin=serial\0"   \
                "stdout=serial\0"   \
                "stderr=serial\0"    \