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 |
Tim Lee | d52b0f6 | 2023-05-29 10:12:08 +0800 | [diff] [blame] | 6 | require conf/machine/include/igps-keys.inc |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 7 | |
| 8 | KERNEL_IMAGETYPE ?= "Image" |
| 9 | KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000" |
| 10 | |
| 11 | UBOOT_MACHINE ?= "ArbelEVB_defconfig" |
Tim Lee | 28b59de | 2023-06-28 13:55:50 +0800 | [diff] [blame] | 12 | UBOOT_ENTRYPOINT ?= "0x6200000" |
| 13 | UBOOT_LOADADDRESS ?= "0x6200000" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 14 | |
| 15 | FLASH_SIZE ?= "32768" |
| 16 | FLASH_UBOOT_OFFSET ?= "0" |
Tim Lee | 0dc21b3 | 2023-03-22 09:46:43 +0800 | [diff] [blame] | 17 | FLASH_UBOOT_ENV_OFFSET = "1024" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 18 | FLASH_KERNEL_OFFSET ?= "2048" |
| 19 | FLASH_ROFS_OFFSET ?= "8192" |
| 20 | FLASH_RWFS_OFFSET ?= "31744" |
| 21 | |
| 22 | # UBI volume sizes in KB unless otherwise noted. |
| 23 | FLASH_UBI_RWFS_SIZE ?= "6144" |
| 24 | FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB" |
| 25 | |
| 26 | SERIAL_CONSOLES ?= "115200;ttyS0" |
| 27 | |
Tim Lee | 8258df6 | 2023-06-07 15:22:16 +0800 | [diff] [blame] | 28 | BB_ALIGN ?= "524288" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 29 | ATF_ALIGN ?= "4096" |
| 30 | OPTEE_ALIGN ?= "4096" |
| 31 | UBOOT_ALIGN ?= "4096" |
| 32 | ALIGN_END ?= "4096" |
Tim Lee | 7f23e3a | 2022-11-30 13:53:50 +0800 | [diff] [blame] | 33 | PAD_ALIGN ?= "32" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 34 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 35 | SOC_FAMILY = "npcm8xx" |
| 36 | include conf/machine/include/soc-family.inc |
| 37 | MACHINEOVERRIDES .= ":npcm8xx" |
| 38 | |
| 39 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
| 40 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 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" |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 56 | |
Tim Lee | d52b0f6 | 2023-05-29 10:12:08 +0800 | [diff] [blame] | 57 | SECURED_IMAGE ?= "True" |
| 58 | |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 59 | TIP_IMAGE ?= "True" |