blob: 3be54856a4bdd313727e79571b10b1ff402904c5 [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
6
7KERNEL_IMAGETYPE ?= "Image"
8KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000"
9
10UBOOT_MACHINE ?= "ArbelEVB_defconfig"
11UBOOT_ENTRYPOINT ?= "0"
12UBOOT_LOADADDRESS ?= "0"
13
14FLASH_SIZE ?= "32768"
15FLASH_UBOOT_OFFSET ?= "0"
Tim Lee0dc21b32023-03-22 09:46:43 +080016FLASH_UBOOT_ENV_OFFSET = "1024"
Tim Leedd14a912022-07-29 16:42:15 +080017FLASH_KERNEL_OFFSET ?= "2048"
18FLASH_ROFS_OFFSET ?= "8192"
19FLASH_RWFS_OFFSET ?= "31744"
20
21# UBI volume sizes in KB unless otherwise noted.
22FLASH_UBI_RWFS_SIZE ?= "6144"
23FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB"
24
25SERIAL_CONSOLES ?= "115200;ttyS0"
26
Tim Lee9d9d9e32022-10-28 16:57:26 +080027BB_ALIGN ?= "4096"
28ATF_ALIGN ?= "4096"
29OPTEE_ALIGN ?= "4096"
30UBOOT_ALIGN ?= "4096"
31ALIGN_END ?= "4096"
Tim Lee7f23e3a2022-11-30 13:53:50 +080032PAD_ALIGN ?= "32"
Tim Lee9d9d9e32022-10-28 16:57:26 +080033
Tim Leedd14a912022-07-29 16:42:15 +080034SOC_FAMILY = "npcm8xx"
35include conf/machine/include/soc-family.inc
36MACHINEOVERRIDES .= ":npcm8xx"
37
38require conf/machine/include/arm/armv8a/tune-cortexa35.inc
39
40PREFERRED_VERSION_trusted-firmware-a = "2.6.0"
41
Tim Leeabca1442023-01-17 10:05:51 +080042PREFERRED_VERSION_optee-os = "3.18.0"
Brian Ma8a7ef242023-05-08 16:41:34 +080043PREFERRED_VERSION_optee-os-tadevkit = "3.18.0"
44PREFERRED_VERSION_optee-test = "3.18.0"
Tim Leeabca1442023-01-17 10:05:51 +080045
Tim Leedd14a912022-07-29 16:42:15 +080046UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8"
47
48COMPATIBLE_MACHINE:npcm8xx = "npcm8xx"
49TFA_PLATFORM = "npcm845x"
50
51# Nuvoton prefers optee for BL32.
52TFA_SPD = "opteed"
53
54# Nuvoton prefers u-boot as BL33.
55TFA_UBOOT = "1"
56
57# Nuvoton prefers TFA default build is BL31.
58TFA_BUILD_TARGET = "bl31"
59
60OPTEEMACHINE ?= "nuvoton"