diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2025-06-12 09:44:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 09:44:40 -0300 |
commit | 1ceebd8f13de30e1c6d5f04e16d378782e7b66ad (patch) | |
tree | 3f9b04b776aa171d950bbbd4c7142df41f57488e | |
parent | 1f8fd76c2548a830d3eea2b449425c2da0680eb6 (diff) | |
parent | 27fd0694c5f3e80eb50413fde909765e360e587c (diff) | |
download | meta-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.conf | 5 | ||||
-rw-r--r-- | conf/machine/include/imx93-evk.inc | 16 | ||||
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf/0001-imx93-trdc-Fix-header-guard.patch | 35 | ||||
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf_2.10.bb | 3 |
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 | ||
23 | UBOOT_CONFIG_BASENAME = "imx93_14x14_evk" | 23 | UBOOT_CONFIG_BASENAME = "imx93_14x14_evk" |
24 | IMXBOOT_TARGETS_BASENAME = "flash_singleboot" | ||
25 | 24 | ||
26 | DDR_FIRMWARE_NAME = " \ | 25 | DDR_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 | ||
33 | UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" | ||
34 | |||
35 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" | ||
36 | |||
37 | WKS_FILE_DEPENDS:append:imx-nxp-bsp = " imx-m33-demos" | 32 | WKS_FILE_DEPENDS:append:imx-nxp-bsp = " imx-m33-demos" |
38 | IMAGE_BOOT_FILES:append:imx-nxp-bsp = " \ | 33 | IMAGE_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" | |||
25 | UBOOT_CONFIG ??= "sd" | 25 | UBOOT_CONFIG ??= "sd" |
26 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" | 26 | UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard" |
27 | UBOOT_CONFIG[ecc] = "${UBOOT_CONFIG_BASENAME}_inline_ecc_defconfig" | 27 | UBOOT_CONFIG[ecc] = "${UBOOT_CONFIG_BASENAME}_inline_ecc_defconfig" |
28 | UBOOT_CONFIG[ld] = "${UBOOT_CONFIG_BASENAME}_ld_defconfig" | 28 | UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" |
29 | 29 | ||
30 | # Set ATF platform name | 30 | # Set ATF platform name |
31 | ATF_PLATFORM = "imx93" | 31 | ATF_PLATFORM = "imx93" |
32 | 32 | ||
33 | IMXBOOT_TARGETS = "flash_singleboot" | 33 | IMXBOOT_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 | | ||
43 | IMXBOOT_TARGETS_SD = "flash_singleboot flash_singleboot_gdet flash_singleboot_gdet_auto" | ||
44 | IMXBOOT_TARGETS_ECC = "flash_singleboot" | ||
45 | IMXBOOT_TARGETS_FSPI = "flash_singleboot_flexspi" | ||
34 | 46 | ||
35 | IMX_BOOT_SOC_TARGET = "iMX9" | 47 | IMX_BOOT_SOC_TARGET = "iMX9" |
36 | IMX_BOOT_SEEK = "32" | 48 | IMX_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 @@ | |||
1 | From e82cafa7823cb2cad6ce933862b9ffdb880dba49 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Hochstein <tom.hochstein@nxp.com> | ||
3 | Date: Tue, 10 Jun 2025 15:04:32 -0700 | ||
4 | Subject: [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 | |||
14 | Upstream-Status: Submitted [https://github.com/nxp-imx/imx-atf/pull/2] | ||
15 | Signed-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 | |||
20 | diff --git a/include/drivers/nxp/trdc/imx_trdc.h b/include/drivers/nxp/trdc/imx_trdc.h | ||
21 | index 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 | -- | ||
34 | 2.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 | ||
8 | PV .= "+git${SRCPV}" | 8 | PV .= "+git${SRCPV}" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH}" | 10 | SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \ |
11 | file://0001-imx93-trdc-Fix-header-guard.patch" | ||
11 | SRCBRANCH = "lf_v2.10" | 12 | SRCBRANCH = "lf_v2.10" |
12 | SRCREV = "78a14c75a06dea39036c44ae0f9d23acc7bcaef2" | 13 | SRCREV = "78a14c75a06dea39036c44ae0f9d23acc7bcaef2" |
13 | 14 | ||