All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
@ 2025-03-19  1:42 Adam Ford
  2025-03-19  1:42 ` [PATCH 2/4] arm64: imx: imx8mm-beacon: Enable CPU_IMX Adam Ford
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Adam Ford @ 2025-03-19  1:42 UTC (permalink / raw)
  To: u-boot
  Cc: aford, festevam, Adam Ford, Tom Rini, Quentin Schulz, Simon Glass,
	Sean Anderson, Sumit Garg, Peng Fan, Marek Vasut, Hou Zhiqiang,
	Ye Li, Michael Trimarchi

Much of the data that is display by imx8_cpu.c is also
displayed from arch/arm/mach-imx/cpu.c, except the
speed grade and temperature unless the SoC is an i.MX9.
Expand this to include checks for IMX_THERMAL or IMX_TMU
in the same way it's done for mach-imx/cpu.c.

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>

diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 53d31b3c0bf..facd561022f 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -177,7 +177,9 @@ 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_IMX9) ||
+	    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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-19 22:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19  1:42 [PATCH 1/4] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Adam Ford
2025-03-19  1:42 ` [PATCH 2/4] arm64: imx: imx8mm-beacon: Enable CPU_IMX Adam Ford
2025-03-19  1:42 ` [PATCH 3/4] arm64: imx: imx8mn-beacon: " Adam Ford
2025-03-19  1:42 ` [PATCH 4/4] arm64: imx: imx8mp-beacon: " Adam Ford
2025-03-19  2:13 ` [PATCH 1/4] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Marek Vasut
2025-03-19 19:13   ` Adam Ford
2025-03-19 22:41     ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.