blob: 1d3ebae5b6851d93f319eddb62e06f1b2ef5924b [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 Leeabca1442023-01-17 10:05:51 +080041PREFERRED_VERSION_optee-os = "3.18.0"
Brian Ma8a7ef242023-05-08 16:41:34 +080042PREFERRED_VERSION_optee-os-tadevkit = "3.18.0"
43PREFERRED_VERSION_optee-test = "3.18.0"
Tim Leeabca1442023-01-17 10:05:51 +080044
Tim Leedd14a912022-07-29 16:42:15 +080045UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8"
46
47COMPATIBLE_MACHINE:npcm8xx = "npcm8xx"
48TFA_PLATFORM = "npcm845x"
49
50# Nuvoton prefers optee for BL32.
51TFA_SPD = "opteed"
52
53# Nuvoton prefers u-boot as BL33.
54TFA_UBOOT = "1"
55
56# Nuvoton prefers TFA default build is BL31.
57TFA_BUILD_TARGET = "bl31"
58
59OPTEEMACHINE ?= "nuvoton"
Tim Leefedbc0b2023-05-23 10:19:18 +080060
Tim Leed52b0f62023-05-29 10:12:08 +080061SECURED_IMAGE ?= "True"
62
Tim Leefedbc0b2023-05-23 10:19:18 +080063TIP_IMAGE ?= "True"