From 970c0cac508f6826ce155a4a4a1aaef6d36841b9 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 12 Jun 2024 15:31:23 +0200 Subject: [PATCH] trustfence: ccimx93: implement missing secure console functionality Unlike the rest of the NXP platforms, in u-boot, the ccimx93 allows configuring a GPIO name to activate the console when secure console is enabled. Those u-boot options were not translated to the trustfence code in meta-digi. https://onedigi.atlassian.net/browse/DEL-9063 Signed-off-by: Javier Viguera --- meta-digi-dey/classes/trustfence.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-digi-dey/classes/trustfence.bbclass b/meta-digi-dey/classes/trustfence.bbclass index bed0364cd..eaff8f0b0 100644 --- a/meta-digi-dey/classes/trustfence.bbclass +++ b/meta-digi-dey/classes/trustfence.bbclass @@ -150,6 +150,12 @@ python () { elif d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE"): if (d.getVar("DEY_SOC_VENDOR") == "NXP"): d.appendVar("UBOOT_TF_CONF", "CONFIG_CONSOLE_ENABLE_GPIO=y CONFIG_CONSOLE_ENABLE_GPIO_NR=%s " % d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE")) + if d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE_NAME"): + d.appendVar("UBOOT_TF_CONF", 'CONFIG_CONSOLE_ENABLE_GPIO_NAME="%s" ' % d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE_NAME")) + if d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE_ACTIVE_LOW"): + d.appendVar("UBOOT_TF_CONF", "CONFIG_CONSOLE_ENABLE_GPIO_ACTIVE_LOW=y ") + else: + d.appendVar("UBOOT_TF_CONF", '"# CONFIG_CONSOLE_ENABLE_GPIO_ACTIVE_LOW is not set" ') elif (d.getVar("DEY_SOC_VENDOR") == "STM"): d.appendVar("UBOOT_TF_CONF", 'CONFIG_CONSOLE_ENABLE_GPIO=y CONFIG_CONSOLE_ENABLE_GPIO_NAME="%s" ' % d.getVar("TRUSTFENCE_CONSOLE_GPIO_ENABLE_NAME"))