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" |
| 16 | FLASH_KERNEL_OFFSET ?= "2048" |
| 17 | FLASH_ROFS_OFFSET ?= "8192" |
| 18 | FLASH_RWFS_OFFSET ?= "31744" |
| 19 | |
| 20 | # UBI volume sizes in KB unless otherwise noted. |
| 21 | FLASH_UBI_RWFS_SIZE ?= "6144" |
| 22 | FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB" |
| 23 | |
| 24 | SERIAL_CONSOLES ?= "115200;ttyS0" |
| 25 | |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 26 | BB_ALIGN ?= "4096" |
| 27 | ATF_ALIGN ?= "4096" |
| 28 | OPTEE_ALIGN ?= "4096" |
| 29 | UBOOT_ALIGN ?= "4096" |
| 30 | ALIGN_END ?= "4096" |
Tim Lee | 7f23e3a | 2022-11-30 13:53:50 +0800 | [diff] [blame^] | 31 | PAD_ALIGN ?= "32" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 32 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 33 | SOC_FAMILY = "npcm8xx" |
| 34 | include conf/machine/include/soc-family.inc |
| 35 | MACHINEOVERRIDES .= ":npcm8xx" |
| 36 | |
| 37 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
| 38 | |
| 39 | PREFERRED_VERSION_trusted-firmware-a = "2.6.0" |
| 40 | |
| 41 | UBOOT_MKIMAGE:append:npcm8xx = " -E -B 8" |
| 42 | |
| 43 | COMPATIBLE_MACHINE:npcm8xx = "npcm8xx" |
| 44 | TFA_PLATFORM = "npcm845x" |
| 45 | |
| 46 | # Nuvoton prefers optee for BL32. |
| 47 | TFA_SPD = "opteed" |
| 48 | |
| 49 | # Nuvoton prefers u-boot as BL33. |
| 50 | TFA_UBOOT = "1" |
| 51 | |
| 52 | # Nuvoton prefers TFA default build is BL31. |
| 53 | TFA_BUILD_TARGET = "bl31" |
| 54 | |
| 55 | OPTEEMACHINE ?= "nuvoton" |