summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2025-06-12 09:44:40 -0300
committerGitHub <noreply@github.com>2025-06-12 09:44:40 -0300
commit1ceebd8f13de30e1c6d5f04e16d378782e7b66ad (patch)
tree3f9b04b776aa171d950bbbd4c7142df41f57488e
parent1f8fd76c2548a830d3eea2b449425c2da0680eb6 (diff)
parent27fd0694c5f3e80eb50413fde909765e360e587c (diff)
downloadmeta-freescale-1ceebd8f13de30e1c6d5f04e16d378782e7b66ad.tar.gz
Merge pull request #2302 from nxp-upstream/imx93
Imx93 rework plus Glitch Detection example
-rw-r--r--conf/machine/imx93-14x14-lpddr4x-evk.conf5
-rw-r--r--conf/machine/include/imx93-evk.inc16
-rw-r--r--recipes-bsp/imx-atf/imx-atf/0001-imx93-trdc-Fix-header-guard.patch35
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.10.bb3
4 files changed, 51 insertions, 8 deletions
diff --git a/conf/machine/imx93-14x14-lpddr4x-evk.conf b/conf/machine/imx93-14x14-lpddr4x-evk.conf
index 57387a705..dff843a79 100644
--- a/conf/machine/imx93-14x14-lpddr4x-evk.conf
+++ b/conf/machine/imx93-14x14-lpddr4x-evk.conf
@@ -21,7 +21,6 @@ KERNEL_DEVICETREE:append:use-nxp-bsp = " \
21" 21"
22 22
23UBOOT_CONFIG_BASENAME = "imx93_14x14_evk" 23UBOOT_CONFIG_BASENAME = "imx93_14x14_evk"
24IMXBOOT_TARGETS_BASENAME = "flash_singleboot"
25 24
26DDR_FIRMWARE_NAME = " \ 25DDR_FIRMWARE_NAME = " \
27 lpddr4_dmem_1d_v202201.bin \ 26 lpddr4_dmem_1d_v202201.bin \
@@ -30,10 +29,6 @@ DDR_FIRMWARE_NAME = " \
30 lpddr4_imem_2d_v202201.bin \ 29 lpddr4_imem_2d_v202201.bin \
31" 30"
32 31
33UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig"
34
35IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}"
36
37WKS_FILE_DEPENDS:append:imx-nxp-bsp = " imx-m33-demos" 32WKS_FILE_DEPENDS:append:imx-nxp-bsp = " imx-m33-demos"
38IMAGE_BOOT_FILES:append:imx-nxp-bsp = " \ 33IMAGE_BOOT_FILES:append:imx-nxp-bsp = " \
39 mcore-demos/imx93-14x14-evk_m33_TCM_power_mode_switch.bin \ 34 mcore-demos/imx93-14x14-evk_m33_TCM_power_mode_switch.bin \
diff --git a/conf/machine/include/imx93-evk.inc b/conf/machine/include/imx93-evk.inc
index 8f5bb97f2..e5a3f0e22 100644
--- a/conf/machine/include/imx93-evk.inc
+++ b/conf/machine/include/imx93-evk.inc
@@ -25,12 +25,24 @@ SPL_BINARY = "spl/u-boot-spl.bin"
25UBOOT_CONFIG ??= "sd" 25UBOOT_CONFIG ??= "sd"
26UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" 26UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard"
27UBOOT_CONFIG[ecc] = "${UBOOT_CONFIG_BASENAME}_inline_ecc_defconfig" 27UBOOT_CONFIG[ecc] = "${UBOOT_CONFIG_BASENAME}_inline_ecc_defconfig"
28UBOOT_CONFIG[ld] = "${UBOOT_CONFIG_BASENAME}_ld_defconfig" 28UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig"
29 29
30# Set ATF platform name 30# Set ATF platform name
31ATF_PLATFORM = "imx93" 31ATF_PLATFORM = "imx93"
32 32
33IMXBOOT_TARGETS = "flash_singleboot" 33IMXBOOT_TARGETS = \
34 "${@bb.utils.contains('UBOOT_CONFIG', 'sd', '${IMXBOOT_TARGETS_SD}', \
35 bb.utils.contains('UBOOT_CONFIG', 'ecc', '${IMXBOOT_TARGETS_ECC}', \
36 bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_FSPI}', \
37 'INVALID', d), d), d)}"
38# Note different SD targets for different Glitch Detection (GDET) modes:
39# | Target | Glitch Detection |
40# | flash_singleboot | None |
41# | flash_singleboot_gdet | Enabled |
42# | flash_singleboot_gdet_auto | Enabled during EdgeLock Secure Enclave API calls |
43IMXBOOT_TARGETS_SD = "flash_singleboot flash_singleboot_gdet flash_singleboot_gdet_auto"
44IMXBOOT_TARGETS_ECC = "flash_singleboot"
45IMXBOOT_TARGETS_FSPI = "flash_singleboot_flexspi"
34 46
35IMX_BOOT_SOC_TARGET = "iMX9" 47IMX_BOOT_SOC_TARGET = "iMX9"
36IMX_BOOT_SEEK = "32" 48IMX_BOOT_SEEK = "32"
diff --git a/recipes-bsp/imx-atf/imx-atf/0001-imx93-trdc-Fix-header-guard.patch b/recipes-bsp/imx-atf/imx-atf/0001-imx93-trdc-Fix-header-guard.patch
new file mode 100644
index 000000000..f475cf334
--- /dev/null
+++ b/recipes-bsp/imx-atf/imx-atf/0001-imx93-trdc-Fix-header-guard.patch
@@ -0,0 +1,35 @@
1From e82cafa7823cb2cad6ce933862b9ffdb880dba49 Mon Sep 17 00:00:00 2001
2From: Tom Hochstein <tom.hochstein@nxp.com>
3Date: Tue, 10 Jun 2025 15:04:32 -0700
4Subject: [PATCH] imx93: trdc: Fix header guard
5
6```
7| In file included from drivers/nxp/trdc/imx_trdc.c:13:
8| include/drivers/nxp/trdc/imx_trdc.h:7: error: header guard 'IMX_TRDC_H' followed by '#define' of a different macro [-Werror=header-guard]
9| 7 | #ifndef IMX_TRDC_H
10| include/drivers/nxp/trdc/imx_trdc.h:8: note: 'IMX_XRDC_H' is defined here; did you mean 'IMX_TRDC_H'?
11| 8 | #define IMX_XRDC_H
12```
13
14Upstream-Status: Submitted [https://github.com/nxp-imx/imx-atf/pull/2]
15Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
16---
17 include/drivers/nxp/trdc/imx_trdc.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/include/drivers/nxp/trdc/imx_trdc.h b/include/drivers/nxp/trdc/imx_trdc.h
21index 7a6200c8d..8c759c65d 100644
22--- a/include/drivers/nxp/trdc/imx_trdc.h
23+++ b/include/drivers/nxp/trdc/imx_trdc.h
24@@ -5,7 +5,7 @@
25 */
26
27 #ifndef IMX_TRDC_H
28-#define IMX_XRDC_H
29+#define IMX_TRDC_H
30
31 #define MBC_BLK_ALL U(255)
32 #define MRC_REG_ALL U(16)
33--
342.34.1
35
diff --git a/recipes-bsp/imx-atf/imx-atf_2.10.bb b/recipes-bsp/imx-atf/imx-atf_2.10.bb
index 8eacc1cff..13478bbe6 100644
--- a/recipes-bsp/imx-atf/imx-atf_2.10.bb
+++ b/recipes-bsp/imx-atf/imx-atf_2.10.bb
@@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m
7 7
8PV .= "+git${SRCPV}" 8PV .= "+git${SRCPV}"
9 9
10SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH}" 10SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \
11 file://0001-imx93-trdc-Fix-header-guard.patch"
11SRCBRANCH = "lf_v2.10" 12SRCBRANCH = "lf_v2.10"
12SRCREV = "78a14c75a06dea39036c44ae0f9d23acc7bcaef2" 13SRCREV = "78a14c75a06dea39036c44ae0f9d23acc7bcaef2"
13 14