[PATCH v2 1/1] ARM: i.MX8M: smccc: fix firmware_atf check
Johannes Schneider
johannes.schneider at leica-geosystems.com
Wed Jan 11 02:01:11 PST 2023
Replace the config-switch check with a check for the current execution
level.
Signed-off-by: Johannes Schneider <johannes.schneider at leica-geosystems.com>
---
arch/arm/mach-imx/imx8m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/imx8m.c b/arch/arm/mach-imx/imx8m.c
index 9758525b54..bb2733f2ab 100644
--- a/arch/arm/mach-imx/imx8m.c
+++ b/arch/arm/mach-imx/imx8m.c
@@ -61,7 +61,7 @@ static int imx8m_init(const char *cputypestr)
pr_info("%s unique ID: %llx\n", cputypestr, imx8m_uid());
if (IS_ENABLED(CONFIG_ARM_SMCCC) &&
- IS_ENABLED(CONFIG_FIRMWARE_IMX8MQ_ATF)) {
+ (current_el() == 2)) {
arm_smccc_smc(IMX_SIP_BUILDINFO,
IMX_SIP_BUILDINFO_GET_COMMITHASH,
0, 0, 0, 0, 0, 0, &res);
--
2.25.1
More information about the barebox
mailing list