blob: e8d5587e40d990871054c650dc21938656e2b19e [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"
16FLASH_KERNEL_OFFSET ?= "2048"
17FLASH_ROFS_OFFSET ?= "8192"
18FLASH_RWFS_OFFSET ?= "31744"
19
20# UBI volume sizes in KB unless otherwise noted.
21FLASH_UBI_RWFS_SIZE ?= "6144"
22FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB"
23
24SERIAL_CONSOLES ?= "115200;ttyS0"
25
Tim Lee9d9d9e32022-10-28 16:57:26 +080026BB_ALIGN ?= "4096"
27ATF_ALIGN ?= "4096"
28OPTEE_ALIGN ?= "4096"
29UBOOT_ALIGN ?= "4096"
30ALIGN_END ?= "4096"
Tim Lee7f23e3a2022-11-30 13:53:50 +080031PAD_ALIGN ?= "32"
Tim Lee9d9d9e32022-10-28 16:57:26 +080032
Tim Leedd14a912022-07-29 16:42:15 +080033SOC_FAMILY = "npcm8xx"
34include conf/machine/include/soc-family.inc
35MACHINEOVERRIDES .= ":npcm8xx"
36
37require conf/machine/include/arm/armv8a/tune-cortexa35.inc
38
39PREFERRED_VERSION_trusted-firmware-a = "2.6.0"
40
41UBOOT_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"