blob: a40e8fb65c3b6d36969fbabeecb74bcc0c99448d [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"
31
Tim Leedd14a912022-07-29 16:42:15 +080032SOC_FAMILY = "npcm8xx"
33include conf/machine/include/soc-family.inc
34MACHINEOVERRIDES .= ":npcm8xx"
35
36require conf/machine/include/arm/armv8a/tune-cortexa35.inc
37
38PREFERRED_VERSION_trusted-firmware-a = "2.6.0"
39
40UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8"
41
42COMPATIBLE_MACHINE:npcm8xx = "npcm8xx"
43TFA_PLATFORM = "npcm845x"
44
45# Nuvoton prefers optee for BL32.
46TFA_SPD = "opteed"
47
48# Nuvoton prefers u-boot as BL33.
49TFA_UBOOT = "1"
50
51# Nuvoton prefers TFA default build is BL31.
52TFA_BUILD_TARGET = "bl31"
53
54OPTEEMACHINE ?= "nuvoton"