diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2020-05-05 02:41:56 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2020-05-05 05:22:25 +0000 |
| commit | f814840465358a6b5429ad20165742ac6e6e6a29 (patch) | |
| tree | 7d422cc4b43da9ff25101378375ebc2f2356fd32 /conf/machine/include | |
| parent | 79e77ea1cf5b5370162b13f1f78c354d96b7b513 (diff) | |
| download | meta-ti-f814840465358a6b5429ad20165742ac6e6e6a29.tar.gz | |
conf, recipes-bsp: support building for K3 R5F cores via multiconfig
K3 Multicore SoC architecture defines different functional domains, each
containing specific processing cores and peripherals. Early boot is normally
handled by running bootloader and loading SYSFW on MCU Cortex-R5F core:
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README
This change adds support for building bootloader and SYSFW ITB image for
K3 Cortex-R5F cores via multiconfig.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'conf/machine/include')
| -rw-r--r-- | conf/machine/include/k3.inc | 13 | ||||
| -rw-r--r-- | conf/machine/include/k3r5.inc | 23 |
2 files changed, 31 insertions, 5 deletions
diff --git a/conf/machine/include/k3.inc b/conf/machine/include/k3.inc index 5e67f5f3..0c16d968 100644 --- a/conf/machine/include/k3.inc +++ b/conf/machine/include/k3.inc | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | # TI K3 Aarch64 profile for Cortex-A53/A72 cores | ||
| 2 | |||
| 1 | require conf/machine/include/ti-soc.inc | 3 | require conf/machine/include/ti-soc.inc |
| 2 | SOC_FAMILY_append = ":k3" | 4 | SOC_FAMILY_append = ":k3" |
| 3 | 5 | ||
| 4 | require conf/machine/include/arm/arch-arm64.inc | 6 | require conf/machine/include/arm/arch-arm64.inc |
| 5 | 7 | ||
| 8 | BBMULTICONFIG += "k3r5" | ||
| 9 | |||
| 6 | # Increase this everytime you change something in the kernel | 10 | # Increase this everytime you change something in the kernel |
| 7 | MACHINE_KERNEL_PR = "r0" | 11 | MACHINE_KERNEL_PR = "r0" |
| 8 | 12 | ||
| @@ -34,9 +38,8 @@ MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa etherne | |||
| 34 | 38 | ||
| 35 | IMAGE_FSTYPES += "tar.xz wic.xz" | 39 | IMAGE_FSTYPES += "tar.xz wic.xz" |
| 36 | 40 | ||
| 37 | # Please note that booting K3 platform also requires | 41 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb" |
| 38 | # tiboot3.bin and sysfw.itb, which are provided by meta-arago | ||
| 39 | # u-boot-k3-r5 and ti-sci-fw recipes | ||
| 40 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}" | ||
| 41 | WKS_FILE ?= "sdimage-3part.wks" | 42 | WKS_FILE ?= "sdimage-3part.wks" |
| 42 | do_image_wic[depends] += "u-boot:do_deploy" | 43 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
| 44 | do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy" | ||
| 45 | do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy" | ||
diff --git a/conf/machine/include/k3r5.inc b/conf/machine/include/k3r5.inc new file mode 100644 index 00000000..52fcf38b --- /dev/null +++ b/conf/machine/include/k3r5.inc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # TI K3 Armv7 profile for Cortex-R5F cores | ||
| 2 | |||
| 3 | require conf/machine/include/ti-soc.inc | ||
| 4 | SOC_FAMILY_append = ":k3r5" | ||
| 5 | |||
| 6 | # The closest of existing tunes for Cortex-R5F | ||
| 7 | DEFAULTTUNE = "armv7athf" | ||
| 8 | require conf/machine/include/tune-cortexa8.inc | ||
| 9 | |||
| 10 | # R5 runs early bootloader and loads SYSFW | ||
| 11 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README | ||
| 12 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README | ||
| 13 | PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" | ||
| 14 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
| 15 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
| 16 | |||
| 17 | SPL_BINARY = "" | ||
| 18 | UBOOT_SUFFIX = "bin" | ||
| 19 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
| 20 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
| 21 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
| 22 | |||
| 23 | PACKAGECONFIG_pn-u-boot-ti-staging = "" | ||
