mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
board: nuvoton: arbel: change uboot load address
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>
This commit is contained in:
parent
923edd666f
commit
68f107a42b
3 changed files with 19 additions and 5 deletions
|
@ -11,8 +11,8 @@ config SYS_CONFIG_NAME
|
||||||
|
|
||||||
config SYS_MEM_TOP_HIDE
|
config SYS_MEM_TOP_HIDE
|
||||||
hex "Reserved TOP memory"
|
hex "Reserved TOP memory"
|
||||||
default 0xB000000
|
default 0x0
|
||||||
help
|
help
|
||||||
Reserve memory for ECC/GFX/VCD/ECE.
|
Reserve memory for ECC/GFX/OPTEE/TIP/CP.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -2,7 +2,8 @@ CONFIG_ARM=y
|
||||||
CONFIG_ARCH_NPCM=y
|
CONFIG_ARCH_NPCM=y
|
||||||
CONFIG_SYS_MALLOC_LEN=0x240000
|
CONFIG_SYS_MALLOC_LEN=0x240000
|
||||||
CONFIG_SYS_MALLOC_F_LEN=0x1000
|
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_SIZE=0x40000
|
||||||
CONFIG_ENV_OFFSET=0x3C0000
|
CONFIG_ENV_OFFSET=0x3C0000
|
||||||
CONFIG_ENV_SECT_SIZE=0x1000
|
CONFIG_ENV_SECT_SIZE=0x1000
|
||||||
|
@ -22,6 +23,8 @@ CONFIG_BOOTCOMMAND="run common_bootargs; run romboot"
|
||||||
CONFIG_HUSH_PARSER=y
|
CONFIG_HUSH_PARSER=y
|
||||||
CONFIG_SYS_MAXARGS=32
|
CONFIG_SYS_MAXARGS=32
|
||||||
CONFIG_SYS_BOOTM_LEN=0x1400000
|
CONFIG_SYS_BOOTM_LEN=0x1400000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x06208000
|
||||||
|
CONFIG_SYS_INIT_SP_ADDR=0x06208000
|
||||||
CONFIG_CMD_FUSE=y
|
CONFIG_CMD_FUSE=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_I2C=y
|
CONFIG_CMD_I2C=y
|
||||||
|
@ -86,3 +89,13 @@ CONFIG_USB_STORAGE=y
|
||||||
CONFIG_LIB_HW_RAND=y
|
CONFIG_LIB_HW_RAND=y
|
||||||
CONFIG_SHA_HW_ACCEL=y
|
CONFIG_SHA_HW_ACCEL=y
|
||||||
# CONFIG_EFI_LOADER is not set
|
# 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
|
||||||
|
|
|
@ -7,12 +7,13 @@
|
||||||
#define __CONFIG_ARBEL_H
|
#define __CONFIG_ARBEL_H
|
||||||
|
|
||||||
#define CFG_SYS_SDRAM_BASE 0x0
|
#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_ADDR CFG_SYS_SDRAM_BASE
|
||||||
#define CFG_SYS_INIT_RAM_SIZE 0x8000
|
#define CFG_SYS_INIT_RAM_SIZE 0x8000
|
||||||
|
|
||||||
/* Default environemnt variables */
|
/* 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" \
|
"stdin=serial\0" \
|
||||||
"stdout=serial\0" \
|
"stdout=serial\0" \
|
||||||
"stderr=serial\0" \
|
"stderr=serial\0" \
|
||||||
|
|
Loading…
Reference in a new issue