mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: SCHNEIDER Johannes <johannes.schneider@leica-geosystems.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: [PATCH v2] ARM: i.MX8M: smccc: allow SIP_BUILDINFO call on all imx8m variants
Date: Thu, 12 Jan 2023 06:11:15 +0000	[thread overview]
Message-ID: <DB6PR06MB4008033B1F388102838B027EBCFD9@DB6PR06MB4008.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <20230112060709.2417871-1-johannes.schneider@leica-geosystems.com>

Hoi,


and "merde", this should have been v3, and misses the changelog...

v2: was:
[PATCH v2 1/1] ARM: i.MX8M: smccc: fix firmware_atf check

v3: redid patch with suggested common config switch


regards
Johannes

________________________________________
From: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Sent: Thursday, January 12, 2023 07:07
To: barebox@lists.infradead.org
Cc: SCHNEIDER Johannes
Subject: [PATCH v2] ARM: i.MX8M: smccc: allow SIP_BUILDINFO call on all imx8m variants

By adding a common config switch, the imx8m_init code becomes generic
for all board variants (and slightly less confusing).

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
---
 arch/arm/mach-imx/imx8m.c | 2 +-
 firmware/Kconfig          | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx8m.c b/arch/arm/mach-imx/imx8m.c
index 9758525b54..4399dc7dd5 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)) {
+           IS_ENABLED(CONFIG_FIRMWARE_IMX8M_ATF)) {
                arm_smccc_smc(IMX_SIP_BUILDINFO,
                              IMX_SIP_BUILDINFO_GET_COMMITHASH,
                              0, 0, 0, 0, 0, 0, &res);
diff --git a/firmware/Kconfig b/firmware/Kconfig
index b4a6fd9137..d3e79b4ef5 100644
--- a/firmware/Kconfig
+++ b/firmware/Kconfig
@@ -14,15 +14,19 @@ config FIRMWARE_IMX_DDR4_PMU_TRAIN

 config FIRMWARE_IMX8MM_ATF
         bool
+       select FIRMWARE_IMX8M_ATF

 config FIRMWARE_IMX8MN_ATF
         bool
+       select FIRMWARE_IMX8M_ATF

 config FIRMWARE_IMX8MP_ATF
         bool
+       select FIRMWARE_IMX8M_ATF

 config FIRMWARE_IMX8MQ_ATF
         bool
+       select FIRMWARE_IMX8M_ATF

 config FIRMWARE_CCBV2_OPTEE
        bool
--
2.25.1




      reply	other threads:[~2023-01-12  6:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12  6:07 Johannes Schneider
2023-01-12  6:11 ` SCHNEIDER Johannes [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB6PR06MB4008033B1F388102838B027EBCFD9@DB6PR06MB4008.eurprd06.prod.outlook.com \
    --to=johannes.schneider@leica-geosystems.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox