U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Cc: aford@beaconembedded.com, marek.vasut@mailbox.org,
	festevam@gmail.com, Adam Ford <aford173@gmail.com>,
	Stefano Babic <sbabic@denx.de>,
	"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
	Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>,
	Ye Li <ye.li@nxp.com>, Christoph Stoidner <c.stoidner@phytec.de>,
	Wadim Egorov <w.egorov@phytec.de>, Yannic Moog <y.moog@phytec.de>,
	Simon Glass <sjg@chromium.org>, Sean Anderson <seanga2@gmail.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Sumit Garg <sumit.garg@kernel.org>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Hou Zhiqiang <Zhiqiang.Hou@nxp.com>,
	Michael Trimarchi <michael@amarulasolutions.com>
Subject: [PATCH V2 2/5] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
Date: Thu, 20 Mar 2025 20:31:02 -0500	[thread overview]
Message-ID: <20250321013109.709431-2-aford173@gmail.com> (raw)
In-Reply-To: <20250321013109.709431-1-aford173@gmail.com>

Much of the data that is display by imx8_cpu.c is also displayed from
arch/arm/mach-imx/cpu.c, except the temperature grade and active
temperature are only displayed when SoC is an i.MX9. Since IMX9 now
implies IMX_TMU, change this to check for IMX_THERMAL or IMX_TMU
in the same way it's done in mach-imx/cpu.c to enable displaying
this information for any SoC with either of these configs enabled.

Before:
CPU:   NXP i.MX8MP Rev1.1 A53 at 1200 MHz
Model: Beacon EmbeddedWorks i.MX8MPlus Development kit

After:
CPU:   NXP i.MX8MP Rev1.1 A53 at 1200 MHz
CPU:   Industrial temperature grade  (-40C to 105C) at 28C
Model: Beacon EmbeddedWorks i.MX8MPlus Development kit

Signed-off-by: Adam Ford <aford173@gmail.com>
---
 drivers/cpu/imx8_cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

V2:  No change

diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 53d31b3c0bf..faa6a0704a6 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -177,7 +177,7 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
 	ret = snprintf(buf, size, "NXP i.MX%s Rev%s %s at %u MHz",
 		       plat->type, plat->rev, plat->name, plat->freq_mhz);
 
-	if (IS_ENABLED(CONFIG_IMX9)) {
+	if (IS_ENABLED(CONFIG_IMX_THERMAL) || IS_ENABLED(CONFIG_IMX_TMU)) {
 		switch (get_cpu_temp_grade(&minc, &maxc)) {
 		case TEMP_AUTOMOTIVE:
 			grade = "Automotive temperature grade ";
-- 
2.45.2


  reply	other threads:[~2025-03-21  1:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-21  1:31 [PATCH V2 1/5] imx: imx9: Imply IMX_TMU Adam Ford
2025-03-21  1:31 ` Adam Ford [this message]
2025-03-21  1:31 ` [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX Adam Ford
2025-03-21  1:55   ` Marek Vasut
2025-03-21  2:00     ` Adam Ford
2025-03-21  2:27       ` Marek Vasut
2025-03-21 12:10         ` Fabio Estevam
2025-03-21 13:27           ` Adam Ford
2025-03-21 13:59             ` Marek Vasut
2025-03-21  1:31 ` [PATCH V2 4/5] arm64: imx: imx8mn-beacon: " Adam Ford
2025-03-21  1:31 ` [PATCH V2 5/5] arm64: imx: imx8mp-beacon: " Adam Ford

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=20250321013109.709431-2-aford173@gmail.com \
    --to=aford173@gmail.com \
    --cc=Zhiqiang.Hou@nxp.com \
    --cc=aford@beaconembedded.com \
    --cc=c.stoidner@phytec.de \
    --cc=festevam@gmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marek.vasut@mailbox.org \
    --cc=michael@amarulasolutions.com \
    --cc=peng.fan@nxp.com \
    --cc=quentin.schulz@cherry.de \
    --cc=sbabic@denx.de \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    --cc=w.egorov@phytec.de \
    --cc=y.moog@phytec.de \
    --cc=ye.li@nxp.com \
    /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