summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Zhizhikin <andrey.z@gmail.com>2021-02-04 10:38:42 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2021-03-17 10:53:42 -0300
commitaf1befc57af48bfd556a487487663cd3628433f5 (patch)
tree59b6cd88f911380cf57828ef201c5d439f0af9e3
parentad48c133fa19aad480a27b7d3000f5e6401c8db0 (diff)
downloadmeta-freescale-af1befc57af48bfd556a487487663cd3628433f5.tar.gz
conf: machine: mx8m[m,n,p]: use boot container class
Use the new boot container build on mainline BSP for mx8mm, mx8mn and mx8mp machines. Boot container serves as a replacement for imx-boot package present in NXP BSP, and is created by U-Boot build system. Define ATF machine name and required load address. Define dependency on firmware package, as it provides DDR firmware binaries needed to construct boot container. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
-rw-r--r--conf/machine/imx8mn-ddr4-evk.conf10
-rw-r--r--conf/machine/imx8mp-evk.conf11
-rw-r--r--conf/machine/include/imx8mm-evk.inc9
-rw-r--r--conf/machine/include/imx8mn-evk.inc9
4 files changed, 28 insertions, 11 deletions
diff --git a/conf/machine/imx8mn-ddr4-evk.conf b/conf/machine/imx8mn-ddr4-evk.conf
index c35f7e74..442afdbd 100644
--- a/conf/machine/imx8mn-ddr4-evk.conf
+++ b/conf/machine/imx8mn-ddr4-evk.conf
@@ -11,10 +11,12 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \
11 freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \ 11 freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \
12" 12"
13UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk" 13UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk"
14
15DDR_FIRMWARE_VERSION = "201810"
14DDR_FIRMWARE_NAME = " \ 16DDR_FIRMWARE_NAME = " \
15 ddr4_imem_1d_201810.bin \ 17 ddr4_imem_1d_${DDR_FIRMWARE_VERSION}.bin \
16 ddr4_dmem_1d_201810.bin \ 18 ddr4_dmem_1d_${DDR_FIRMWARE_VERSION}.bin \
17 ddr4_imem_2d_201810.bin \ 19 ddr4_imem_2d_${DDR_FIRMWARE_VERSION}.bin \
18 ddr4_dmem_2d_201810.bin \ 20 ddr4_dmem_2d_${DDR_FIRMWARE_VERSION}.bin \
19" 21"
20IMXBOOT_TARGETS_BASENAME = "flash_ddr4_evk" 22IMXBOOT_TARGETS_BASENAME = "flash_ddr4_evk"
diff --git a/conf/machine/imx8mp-evk.conf b/conf/machine/imx8mp-evk.conf
index 7e55b93a..f790ffb4 100644
--- a/conf/machine/imx8mp-evk.conf
+++ b/conf/machine/imx8mp-evk.conf
@@ -4,7 +4,7 @@
4#@DESCRIPTION: Machine configuration for NXP i.MX 8M Plus Evaluation Kit 4#@DESCRIPTION: Machine configuration for NXP i.MX 8M Plus Evaluation Kit
5#@MAINTAINER: Jun Zhu <junzhu@nxp.com> 5#@MAINTAINER: Jun Zhu <junzhu@nxp.com>
6 6
7MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:" 7MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mp:"
8 8
9require conf/machine/include/imx-base.inc 9require conf/machine/include/imx-base.inc
10require conf/machine/include/tune-cortexa53.inc 10require conf/machine/include/tune-cortexa53.inc
@@ -59,8 +59,12 @@ DDR_FIRMWARE_NAME = " \
59# Set u-boot DTB 59# Set u-boot DTB
60UBOOT_DTB_NAME = "imx8mp-evk.dtb" 60UBOOT_DTB_NAME = "imx8mp-evk.dtb"
61 61
62# Set ATF platform name 62# Set ATF platform name and load address
63ATF_PLATFORM = "imx8mp" 63ATF_PLATFORM = "imx8mp"
64ATF_LOAD_ADDR = "0x970000"
65
66# Extra firmware package name, that is required to build boot container for fslc bsp
67IMX_EXTRA_FIRMWARE = "firmware-imx-8m"
64 68
65# Set imx-mkimage boot target 69# Set imx-mkimage boot target
66IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}" 70IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}"
@@ -71,10 +75,11 @@ SERIAL_CONSOLES = "115200;ttymxc1"
71 75
72LOADADDR = "" 76LOADADDR = ""
73UBOOT_SUFFIX = "bin" 77UBOOT_SUFFIX = "bin"
74UBOOT_MAKE_TARGET = "" 78UBOOT_MAKE_TARGET = "all"
75IMX_BOOT_SEEK = "32" 79IMX_BOOT_SEEK = "32"
76 80
77OPTEE_BIN_EXT = "8mp" 81OPTEE_BIN_EXT = "8mp"
82TEE_LOAD_ADDR = "0x56000000"
78 83
79# Add additional firmware 84# Add additional firmware
80MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 85MACHINE_FIRMWARE_append = " linux-firmware-ath10k"
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc
index 20bc9b77..6f21ce8e 100644
--- a/conf/machine/include/imx8mm-evk.inc
+++ b/conf/machine/include/imx8mm-evk.inc
@@ -1,4 +1,4 @@
1MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" 1MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mm:"
2 2
3require conf/machine/include/imx-base.inc 3require conf/machine/include/imx-base.inc
4require conf/machine/include/tune-cortexa53.inc 4require conf/machine/include/tune-cortexa53.inc
@@ -27,6 +27,10 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig"
27SPL_BINARY = "spl/u-boot-spl.bin" 27SPL_BINARY = "spl/u-boot-spl.bin"
28 28
29ATF_PLATFORM = "imx8mm" 29ATF_PLATFORM = "imx8mm"
30ATF_LOAD_ADDR = "0x920000"
31
32# Extra firmware package name, that is required to build boot container for fslc bsp
33IMX_EXTRA_FIRMWARE = "firmware-imx-8m"
30 34
31IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" 35IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}"
32 36
@@ -36,10 +40,11 @@ SERIAL_CONSOLES = "115200;ttymxc1"
36 40
37LOADADDR = "" 41LOADADDR = ""
38UBOOT_SUFFIX = "bin" 42UBOOT_SUFFIX = "bin"
39UBOOT_MAKE_TARGET = "" 43UBOOT_MAKE_TARGET = "all"
40IMX_BOOT_SEEK = "33" 44IMX_BOOT_SEEK = "33"
41 45
42OPTEE_BIN_EXT = "8mm" 46OPTEE_BIN_EXT = "8mm"
47TEE_LOAD_ADDR = "0xbe000000"
43 48
44# Add additional firmware 49# Add additional firmware
45MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 50MACHINE_FIRMWARE_append = " linux-firmware-ath10k"
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc
index 8e68f2fe..265b594c 100644
--- a/conf/machine/include/imx8mn-evk.inc
+++ b/conf/machine/include/imx8mn-evk.inc
@@ -1,4 +1,4 @@
1MACHINEOVERRIDES =. "mx8:mx8m:mx8mn:" 1MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mn:"
2 2
3require conf/machine/include/imx-base.inc 3require conf/machine/include/imx-base.inc
4require conf/machine/include/tune-cortexa53.inc 4require conf/machine/include/tune-cortexa53.inc
@@ -28,6 +28,10 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig"
28SPL_BINARY = "spl/u-boot-spl.bin" 28SPL_BINARY = "spl/u-boot-spl.bin"
29 29
30ATF_PLATFORM = "imx8mn" 30ATF_PLATFORM = "imx8mn"
31ATF_LOAD_ADDR = "0x960000"
32
33# Extra firmware package name, that is required to build boot container for fslc bsp
34IMX_EXTRA_FIRMWARE = "firmware-imx-8m"
31 35
32IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" 36IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}"
33 37
@@ -38,7 +42,7 @@ SERIAL_CONSOLES = "115200;ttymxc1"
38BOOT_SPACE = "65536" 42BOOT_SPACE = "65536"
39LOADADDR = "" 43LOADADDR = ""
40UBOOT_SUFFIX = "bin" 44UBOOT_SUFFIX = "bin"
41UBOOT_MAKE_TARGET = "" 45UBOOT_MAKE_TARGET = "all"
42 46
43# Image boot offset as defined in section 6.1.6.1 "Primary image offset and IVT offset" of 47# Image boot offset as defined in section 6.1.6.1 "Primary image offset and IVT offset" of
44# i.MX 8M Nano Applications Processor Reference Manual, Rev. 0, 12/2019 48# i.MX 8M Nano Applications Processor Reference Manual, Rev. 0, 12/2019
@@ -46,6 +50,7 @@ UBOOT_MAKE_TARGET = ""
46IMX_BOOT_SEEK = "32" 50IMX_BOOT_SEEK = "32"
47 51
48OPTEE_BIN_EXT = "8mn" 52OPTEE_BIN_EXT = "8mn"
53TEE_LOAD_ADDR = "0x56000000"
49 54
50# Add additional firmware 55# Add additional firmware
51MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 56MACHINE_FIRMWARE_append = " linux-firmware-ath10k"