Merge pull request #2302 from nxp-upstream/imx93
Some checks are pending
Update LICENSE file / update-license (push) Waiting to run

Imx93 rework plus Glitch Detection example
This commit is contained in:
Otavio Salvador 2025-06-12 09:44:40 -03:00 committed by GitHub
commit 1ceebd8f13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 51 additions and 8 deletions

View File

@ -21,7 +21,6 @@ KERNEL_DEVICETREE:append:use-nxp-bsp = " \
"
UBOOT_CONFIG_BASENAME = "imx93_14x14_evk"
IMXBOOT_TARGETS_BASENAME = "flash_singleboot"
DDR_FIRMWARE_NAME = " \
lpddr4_dmem_1d_v202201.bin \
@ -30,10 +29,6 @@ DDR_FIRMWARE_NAME = " \
lpddr4_imem_2d_v202201.bin \
"
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig"
IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}"
WKS_FILE_DEPENDS:append:imx-nxp-bsp = " imx-m33-demos"
IMAGE_BOOT_FILES:append:imx-nxp-bsp = " \
mcore-demos/imx93-14x14-evk_m33_TCM_power_mode_switch.bin \

View File

@ -25,12 +25,24 @@ SPL_BINARY = "spl/u-boot-spl.bin"
UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "${UBOOT_CONFIG_BASENAME}_defconfig,sdcard"
UBOOT_CONFIG[ecc] = "${UBOOT_CONFIG_BASENAME}_inline_ecc_defconfig"
UBOOT_CONFIG[ld] = "${UBOOT_CONFIG_BASENAME}_ld_defconfig"
UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig"
# Set ATF platform name
ATF_PLATFORM = "imx93"
IMXBOOT_TARGETS = "flash_singleboot"
IMXBOOT_TARGETS = \
"${@bb.utils.contains('UBOOT_CONFIG', 'sd', '${IMXBOOT_TARGETS_SD}', \
bb.utils.contains('UBOOT_CONFIG', 'ecc', '${IMXBOOT_TARGETS_ECC}', \
bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_FSPI}', \
'INVALID', d), d), d)}"
# Note different SD targets for different Glitch Detection (GDET) modes:
# | Target | Glitch Detection |
# | flash_singleboot | None |
# | flash_singleboot_gdet | Enabled |
# | flash_singleboot_gdet_auto | Enabled during EdgeLock Secure Enclave API calls |
IMXBOOT_TARGETS_SD = "flash_singleboot flash_singleboot_gdet flash_singleboot_gdet_auto"
IMXBOOT_TARGETS_ECC = "flash_singleboot"
IMXBOOT_TARGETS_FSPI = "flash_singleboot_flexspi"
IMX_BOOT_SOC_TARGET = "iMX9"
IMX_BOOT_SEEK = "32"

View File

@ -0,0 +1,35 @@
From e82cafa7823cb2cad6ce933862b9ffdb880dba49 Mon Sep 17 00:00:00 2001
From: Tom Hochstein <tom.hochstein@nxp.com>
Date: Tue, 10 Jun 2025 15:04:32 -0700
Subject: [PATCH] imx93: trdc: Fix header guard
```
| In file included from drivers/nxp/trdc/imx_trdc.c:13:
| include/drivers/nxp/trdc/imx_trdc.h:7: error: header guard 'IMX_TRDC_H' followed by '#define' of a different macro [-Werror=header-guard]
| 7 | #ifndef IMX_TRDC_H
| include/drivers/nxp/trdc/imx_trdc.h:8: note: 'IMX_XRDC_H' is defined here; did you mean 'IMX_TRDC_H'?
| 8 | #define IMX_XRDC_H
```
Upstream-Status: Submitted [https://github.com/nxp-imx/imx-atf/pull/2]
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
include/drivers/nxp/trdc/imx_trdc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/drivers/nxp/trdc/imx_trdc.h b/include/drivers/nxp/trdc/imx_trdc.h
index 7a6200c8d..8c759c65d 100644
--- a/include/drivers/nxp/trdc/imx_trdc.h
+++ b/include/drivers/nxp/trdc/imx_trdc.h
@@ -5,7 +5,7 @@
*/
#ifndef IMX_TRDC_H
-#define IMX_XRDC_H
+#define IMX_TRDC_H
#define MBC_BLK_ALL U(255)
#define MRC_REG_ALL U(16)
--
2.34.1

View File

@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m
PV .= "+git${SRCPV}"
SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH}"
SRC_URI = "git://github.com/nxp-imx/imx-atf.git;protocol=https;branch=${SRCBRANCH} \
file://0001-imx93-trdc-Fix-header-guard.patch"
SRCBRANCH = "lf_v2.10"
SRCREV = "78a14c75a06dea39036c44ae0f9d23acc7bcaef2"