Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: Nuvoton NPCM8XX |
| 3 | #@DESCRIPTION: Common machine configuration for Nuvoton NPCM8XX Chip |
| 4 | |
| 5 | require conf/machine/include/nuvoton.inc |
| 6 | |
| 7 | KERNEL_IMAGETYPE ?= "Image" |
| 8 | KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000" |
| 9 | |
| 10 | UBOOT_MACHINE ?= "ArbelEVB_defconfig" |
| 11 | UBOOT_ENTRYPOINT ?= "0" |
| 12 | UBOOT_LOADADDRESS ?= "0" |
| 13 | |
| 14 | FLASH_SIZE ?= "32768" |
| 15 | FLASH_UBOOT_OFFSET ?= "0" |
Tim Lee | 0dc21b3 | 2023-03-22 09:46:43 +0800 | [diff] [blame] | 16 | FLASH_UBOOT_ENV_OFFSET = "1024" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 17 | FLASH_KERNEL_OFFSET ?= "2048" |
| 18 | FLASH_ROFS_OFFSET ?= "8192" |
| 19 | FLASH_RWFS_OFFSET ?= "31744" |
| 20 | |
| 21 | # UBI volume sizes in KB unless otherwise noted. |
| 22 | FLASH_UBI_RWFS_SIZE ?= "6144" |
| 23 | FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB" |
| 24 | |
| 25 | SERIAL_CONSOLES ?= "115200;ttyS0" |
| 26 | |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 27 | BB_ALIGN ?= "4096" |
| 28 | ATF_ALIGN ?= "4096" |
| 29 | OPTEE_ALIGN ?= "4096" |
| 30 | UBOOT_ALIGN ?= "4096" |
| 31 | ALIGN_END ?= "4096" |
Tim Lee | 7f23e3a | 2022-11-30 13:53:50 +0800 | [diff] [blame] | 32 | PAD_ALIGN ?= "32" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 33 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 34 | SOC_FAMILY = "npcm8xx" |
| 35 | include conf/machine/include/soc-family.inc |
| 36 | MACHINEOVERRIDES .= ":npcm8xx" |
| 37 | |
| 38 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
| 39 | |
| 40 | PREFERRED_VERSION_trusted-firmware-a = "2.6.0" |
| 41 | |
Tim Lee | abca144 | 2023-01-17 10:05:51 +0800 | [diff] [blame] | 42 | PREFERRED_VERSION_optee-os = "3.18.0" |
Brian Ma | 8a7ef24 | 2023-05-08 16:41:34 +0800 | [diff] [blame] | 43 | PREFERRED_VERSION_optee-os-tadevkit = "3.18.0" |
| 44 | PREFERRED_VERSION_optee-test = "3.18.0" |
Tim Lee | abca144 | 2023-01-17 10:05:51 +0800 | [diff] [blame] | 45 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 46 | UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8" |
| 47 | |
| 48 | COMPATIBLE_MACHINE:npcm8xx = "npcm8xx" |
| 49 | TFA_PLATFORM = "npcm845x" |
| 50 | |
| 51 | # Nuvoton prefers optee for BL32. |
| 52 | TFA_SPD = "opteed" |
| 53 | |
| 54 | # Nuvoton prefers u-boot as BL33. |
| 55 | TFA_UBOOT = "1" |
| 56 | |
| 57 | # Nuvoton prefers TFA default build is BL31. |
| 58 | TFA_BUILD_TARGET = "bl31" |
| 59 | |
| 60 | OPTEEMACHINE ?= "nuvoton" |