blob: 086b5d19f871cb5ae9687053397616282f498bc1 [file] [log] [blame]
Tim Leedd14a912022-07-29 16:42:15 +08001#@TYPE: Machine
2#@NAME: Nuvoton NPCM8XX
3#@DESCRIPTION: Common machine configuration for Nuvoton NPCM8XX Chip
4
5require conf/machine/include/nuvoton.inc
Tim Leed52b0f62023-05-29 10:12:08 +08006require conf/machine/include/igps-keys.inc
Tim Leedd14a912022-07-29 16:42:15 +08007
8KERNEL_IMAGETYPE ?= "Image"
9KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000"
10
11UBOOT_MACHINE ?= "ArbelEVB_defconfig"
Tim Lee28b59de2023-06-28 13:55:50 +080012UBOOT_ENTRYPOINT ?= "0x6200000"
13UBOOT_LOADADDRESS ?= "0x6200000"
Tim Leedd14a912022-07-29 16:42:15 +080014
15FLASH_SIZE ?= "32768"
16FLASH_UBOOT_OFFSET ?= "0"
Tim Lee0dc21b32023-03-22 09:46:43 +080017FLASH_UBOOT_ENV_OFFSET = "1024"
Tim Leedd14a912022-07-29 16:42:15 +080018FLASH_KERNEL_OFFSET ?= "2048"
19FLASH_ROFS_OFFSET ?= "8192"
20FLASH_RWFS_OFFSET ?= "31744"
21
22# UBI volume sizes in KB unless otherwise noted.
23FLASH_UBI_RWFS_SIZE ?= "6144"
24FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB"
25
26SERIAL_CONSOLES ?= "115200;ttyS0"
27
Tim Lee8258df62023-06-07 15:22:16 +080028BB_ALIGN ?= "524288"
Tim Lee9d9d9e32022-10-28 16:57:26 +080029ATF_ALIGN ?= "4096"
30OPTEE_ALIGN ?= "4096"
31UBOOT_ALIGN ?= "4096"
32ALIGN_END ?= "4096"
Tim Lee7f23e3a2022-11-30 13:53:50 +080033PAD_ALIGN ?= "32"
Tim Lee9d9d9e32022-10-28 16:57:26 +080034
Tim Leedd14a912022-07-29 16:42:15 +080035SOC_FAMILY = "npcm8xx"
36include conf/machine/include/soc-family.inc
37MACHINEOVERRIDES .= ":npcm8xx"
38
39require conf/machine/include/arm/armv8a/tune-cortexa35.inc
40
Tim Leedd14a912022-07-29 16:42:15 +080041UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8"
42
43COMPATIBLE_MACHINE:npcm8xx = "npcm8xx"
44TFA_PLATFORM = "npcm845x"
45
46# Nuvoton prefers optee for BL32.
47TFA_SPD = "opteed"
48
49# Nuvoton prefers u-boot as BL33.
50TFA_UBOOT = "1"
51
52# Nuvoton prefers TFA default build is BL31.
53TFA_BUILD_TARGET = "bl31"
54
55OPTEEMACHINE ?= "nuvoton"
Tim Leefedbc0b2023-05-23 10:19:18 +080056
Tim Leed52b0f62023-05-29 10:12:08 +080057SECURED_IMAGE ?= "True"
58
Tim Leefedbc0b2023-05-23 10:19:18 +080059TIP_IMAGE ?= "True"