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" |
Tim Lee | 3a63ed4 | 2024-01-30 13:55:49 +0800 | [diff] [blame] | 9 | |
| 10 | KERNEL_IMAGETYPE:df-obmc-static-norootfs = "Image" |
| 11 | KERNEL_IMAGETYPES:df-obmc-static-norootfs = "${KERNEL_IMAGETYPE}" |
| 12 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 13 | KERNEL_EXTRA_ARGS ?= "UIMAGE_LOADADDR=0x00008000" |
| 14 | |
| 15 | UBOOT_MACHINE ?= "ArbelEVB_defconfig" |
Tim Lee | 28b59de | 2023-06-28 13:55:50 +0800 | [diff] [blame] | 16 | UBOOT_ENTRYPOINT ?= "0x6200000" |
| 17 | UBOOT_LOADADDRESS ?= "0x6200000" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 18 | |
| 19 | FLASH_SIZE ?= "32768" |
| 20 | FLASH_UBOOT_OFFSET ?= "0" |
Tim Lee | 0dc21b3 | 2023-03-22 09:46:43 +0800 | [diff] [blame] | 21 | FLASH_UBOOT_ENV_OFFSET = "1024" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 22 | FLASH_KERNEL_OFFSET ?= "2048" |
| 23 | FLASH_ROFS_OFFSET ?= "8192" |
| 24 | FLASH_RWFS_OFFSET ?= "31744" |
| 25 | |
| 26 | # UBI volume sizes in KB unless otherwise noted. |
| 27 | FLASH_UBI_RWFS_SIZE ?= "6144" |
| 28 | FLASH_UBI_RWFS_TXT_SIZE ?= "6MiB" |
| 29 | |
| 30 | SERIAL_CONSOLES ?= "115200;ttyS0" |
| 31 | |
Tim Lee | 8258df6 | 2023-06-07 15:22:16 +0800 | [diff] [blame] | 32 | BB_ALIGN ?= "524288" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 33 | ATF_ALIGN ?= "4096" |
| 34 | OPTEE_ALIGN ?= "4096" |
| 35 | UBOOT_ALIGN ?= "4096" |
| 36 | ALIGN_END ?= "4096" |
Tim Lee | 7f23e3a | 2022-11-30 13:53:50 +0800 | [diff] [blame] | 37 | PAD_ALIGN ?= "32" |
Tim Lee | 96c3203 | 2023-11-08 17:20:35 +0800 | [diff] [blame] | 38 | SA_ALIGN ?= "524288" |
Tim Lee | 9d9d9e3 | 2022-10-28 16:57:26 +0800 | [diff] [blame] | 39 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 40 | SOC_FAMILY = "npcm8xx" |
| 41 | include conf/machine/include/soc-family.inc |
| 42 | MACHINEOVERRIDES .= ":npcm8xx" |
| 43 | |
| 44 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
| 45 | |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 46 | COMPATIBLE_MACHINE:npcm8xx = "npcm8xx" |
| 47 | TFA_PLATFORM = "npcm845x" |
| 48 | |
| 49 | # Nuvoton prefers optee for BL32. |
| 50 | TFA_SPD = "opteed" |
| 51 | |
| 52 | # Nuvoton prefers u-boot as BL33. |
| 53 | TFA_UBOOT = "1" |
| 54 | |
| 55 | # Nuvoton prefers TFA default build is BL31. |
| 56 | TFA_BUILD_TARGET = "bl31" |
| 57 | |
| 58 | OPTEEMACHINE ?= "nuvoton" |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 59 | |
Tim Lee | d52b0f6 | 2023-05-29 10:12:08 +0800 | [diff] [blame] | 60 | SECURED_IMAGE ?= "True" |
| 61 | |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 62 | TIP_IMAGE ?= "True" |
Tim Lee | 96c3203 | 2023-11-08 17:20:35 +0800 | [diff] [blame] | 63 | |
| 64 | SA_TIP_IMAGE ?= "False" |