* [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu
@ 2025-03-22 18:38 Adam Ford
2025-03-22 18:38 ` [PATCH V3 1/6] imx: imx9: Imply IMX_TMU Adam Ford
` (5 more replies)
0 siblings, 6 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Teresa Remmet, Gilles Talis,
Marcel Ziswiler, Ye Li, Wadim Egorov, Christoph Stoidner,
Hou Zhiqiang, Michael Trimarchi
The imx8_cpu driver uses the driver model to represent the processor
cores in the dm tree as well as display the processor type and speed
on boot. Currently, the imx8_cpu driver only displays the temperature
grade of the processor if the processor is IMX9, so in order to display
that info, the check in imx8_cpu is changed to check for IMX_TMU
and IMX_TMU is implied for IMX8, IMX8M and IMX9 SoC familes. If
users want to fall back to the older method to display the SoC type
or remove the temperature grade information, they can. Doing this
at the SoC family level reduces the number of duplicated config options
for each board, and was done at the request of the IMX U-Boot custodian.
Any testing on an i.MX8Q or i.MX9 would be appreciated as I don't have
a board that runs either of these platforms.
V3: Added the imply IMX_TMU for the 8M family and added the imply for
CPU and CPU_IMX to IMX8, IMX8M and IMX9 families
V2: Changed the check in imx8_cpu to drop the IMX9 check and instead
imply IMX_TMU in the IMX9 family
Adam Ford (6):
imx: imx9: Imply IMX_TMU
imx: imx8m: Imply IMX_TMU
cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
imx: imx8m: Imply CPU_IMX by default
imx: imx8: Imply CPU_IMX by default
imx: imx9: Imply CPU_IMX by default
arch/arm/mach-imx/imx8/Kconfig | 2 ++
arch/arm/mach-imx/imx8m/Kconfig | 4 ++++
arch/arm/mach-imx/imx9/Kconfig | 3 +++
drivers/cpu/imx8_cpu.c | 2 +-
4 files changed, 10 insertions(+), 1 deletion(-)
--
2.45.2
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH V3 1/6] imx: imx9: Imply IMX_TMU
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:29 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 2/6] imx: imx8m: " Adam Ford
` (4 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher, Enrico Leto,
Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis, Marcel Ziswiler,
Ye Li, Wadim Egorov, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
If the CPU Information is displayed from imx8_cpu, it displays
the cpu temperature grade and operating temperature if
CONFIG_IMX9 is defined. This behavior is similar to what
happens arch/arm/mach-imx/cpu.c except that the latter
checks for CONFIG_IMX_THERMAL or CONFIG_IMX_TMU.
In preparation to make imx8_cpu act like the previous
implementation for any CPU, make IMX9 imply IMX_TMU, so
it will be always displayed unless a user decides to
disable it.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/mach-imx/imx9/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx9/Kconfig b/arch/arm/mach-imx/imx9/Kconfig
index 49220c0955e..c3e758e103a 100644
--- a/arch/arm/mach-imx/imx9/Kconfig
+++ b/arch/arm/mach-imx/imx9/Kconfig
@@ -10,6 +10,7 @@ config IMX9
select BINMAN
select HAS_CAAM
select ROM_UNIFIED_SECTIONS
+ imply IMX_TMU
config IMX93
bool
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH V3 2/6] imx: imx8m: Imply IMX_TMU
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
2025-03-22 18:38 ` [PATCH V3 1/6] imx: imx9: Imply IMX_TMU Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:29 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Adam Ford
` (3 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher, Enrico Leto,
Peng Fan, Yannic Moog, Gilles Talis, Marcel Ziswiler, Ye Li,
Wadim Egorov, Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
If the CPU Information is displayed from imx8_cpu, it displays the
cpu temperature grade and operating temperature if CONFIG_IMX9 is
defined. This behavior is similar to what happens mach-imx/cpu.c,
except that the latter checks for IMX_THERMAL or IMX_TMU.
In preparation to make imx8_cpu act like the previous implementation
for any CPU, make IMX8M imply IMX_TMU so it will be always displayed
unless a user decides to disable it.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/mach-imx/imx8m/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index 89f2b50c8a2..8ee699a343c 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -8,6 +8,7 @@ config IMX8M
select LTO
select ROM_UNIFIED_SECTIONS
select ARMV8_CRYPTO
+ imply IMX_TMU
config IMX8MQ
bool
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
2025-03-22 18:38 ` [PATCH V3 1/6] imx: imx9: Imply IMX_TMU Adam Ford
2025-03-22 18:38 ` [PATCH V3 2/6] imx: imx8m: " Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default Adam Ford
` (2 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis, Marcel Ziswiler,
Ye Li, Wadim Egorov, Christoph Stoidner, Hou Zhiqiang,
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 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(-)
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
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (2 preceding siblings ...)
2025-03-22 18:38 ` [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 5/6] imx: imx8: " Adam Ford
2025-03-22 18:38 ` [PATCH V3 6/6] imx: imx9: " Adam Ford
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher, Enrico Leto,
Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis, Patrick Barsanti,
Ye Li, Wadim Egorov, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
The imx8_cpu driver is a CPU Driver that supports the i.MX8M
family, and when it is enabled, it acts as an alternative to
arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
model where cpu.c does not. Imply this newer driver by default.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/mach-imx/imx8m/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index 8ee699a343c..988495d217a 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -9,6 +9,8 @@ config IMX8M
select ROM_UNIFIED_SECTIONS
select ARMV8_CRYPTO
imply IMX_TMU
+ imply CPU
+ imply CPU_IMX
config IMX8MQ
bool
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH V3 5/6] imx: imx8: Imply CPU_IMX by default
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (3 preceding siblings ...)
2025-03-22 18:38 ` [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 6/6] imx: imx9: " Adam Ford
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Gilles Talis, Patrick Barsanti, Ye Li,
Christoph Stoidner, Wadim Egorov, Hou Zhiqiang, Michael Trimarchi
The imx8_cpu driver is a CPU Driver that supports the i.MX8Q
family. When it is enabled, it acts as an alternative to
arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
model where cpu.c does not. Imply this newer driver by default.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/mach-imx/imx8/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
index 9a43beda6fa..257c14e61b6 100644
--- a/arch/arm/mach-imx/imx8/Kconfig
+++ b/arch/arm/mach-imx/imx8/Kconfig
@@ -9,6 +9,8 @@ config AHAB_BOOT
config IMX8
bool
select HAS_CAAM
+ imply CPU
+ imply CPU_IMX
config MU_BASE_SPL
hex "MU base address used in SPL"
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH V3 6/6] imx: imx9: Imply CPU_IMX by default
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (4 preceding siblings ...)
2025-03-22 18:38 ` [PATCH V3 5/6] imx: imx8: " Adam Ford
@ 2025-03-22 18:38 ` Adam Ford
2025-03-22 23:30 ` Marek Vasut
5 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-22 18:38 UTC (permalink / raw)
To: u-boot
Cc: aford, marek.vasut, festevam, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis, Marcel Ziswiler,
Ye Li, Wadim Egorov, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
The imx8_cpu driver is a CPU Driver that supports the i.MX9
family. When it is enabled, it acts as an alternative to
arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
model where cpu.c does not. Imply this newer driver by default.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
arch/arm/mach-imx/imx9/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/imx9/Kconfig b/arch/arm/mach-imx/imx9/Kconfig
index c3e758e103a..579432a47fa 100644
--- a/arch/arm/mach-imx/imx9/Kconfig
+++ b/arch/arm/mach-imx/imx9/Kconfig
@@ -11,6 +11,8 @@ config IMX9
select HAS_CAAM
select ROM_UNIFIED_SECTIONS
imply IMX_TMU
+ imply CPU
+ imply CPU_IMX
config IMX93
bool
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH V3 1/6] imx: imx9: Imply IMX_TMU
2025-03-22 18:38 ` [PATCH V3 1/6] imx: imx9: Imply IMX_TMU Adam Ford
@ 2025-03-22 23:29 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:29 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher,
Enrico Leto, Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis,
Marcel Ziswiler, Ye Li, Wadim Egorov, Christoph Stoidner,
Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> If the CPU Information is displayed from imx8_cpu, it displays
> the cpu temperature grade and operating temperature if
> CONFIG_IMX9 is defined. This behavior is similar to what
> happens arch/arm/mach-imx/cpu.c except that the latter
> checks for CONFIG_IMX_THERMAL or CONFIG_IMX_TMU.
> In preparation to make imx8_cpu act like the previous
> implementation for any CPU, make IMX9 imply IMX_TMU, so
> it will be always displayed unless a user decides to
> disable it.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 2/6] imx: imx8m: Imply IMX_TMU
2025-03-22 18:38 ` [PATCH V3 2/6] imx: imx8m: " Adam Ford
@ 2025-03-22 23:29 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:29 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, Stefano Babic, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Wadim Egorov, Christoph Stoidner,
Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> If the CPU Information is displayed from imx8_cpu, it displays the
> cpu temperature grade and operating temperature if CONFIG_IMX9 is
> defined. This behavior is similar to what happens mach-imx/cpu.c,
> except that the latter checks for IMX_THERMAL or IMX_TMU.
>
> In preparation to make imx8_cpu act like the previous implementation
> for any CPU, make IMX8M imply IMX_TMU so it will be always displayed
> unless a user decides to disable it.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
2025-03-22 18:38 ` [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Adam Ford
@ 2025-03-22 23:30 ` Marek Vasut
2025-03-23 0:03 ` Adam Ford
0 siblings, 1 reply; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:30 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, Stefano Babic, NXP i.MX U-Boot Team, Tom Rini,
Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog, Sumit Garg,
Gilles Talis, Marcel Ziswiler, Ye Li, Wadim Egorov,
Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> 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
There is an extra space after 'grade' , please fix.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default
2025-03-22 18:38 ` [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default Adam Ford
@ 2025-03-22 23:30 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:30 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, Stefano Babic, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Sumit Garg,
Gilles Talis, Patrick Barsanti, Ye Li, Wadim Egorov,
Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> The imx8_cpu driver is a CPU Driver that supports the i.MX8M
> family, and when it is enabled, it acts as an alternative to
> arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
> model where cpu.c does not. Imply this newer driver by default.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> arch/arm/mach-imx/imx8m/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
> index 8ee699a343c..988495d217a 100644
> --- a/arch/arm/mach-imx/imx8m/Kconfig
> +++ b/arch/arm/mach-imx/imx8m/Kconfig
> @@ -9,6 +9,8 @@ config IMX8M
> select ROM_UNIFIED_SECTIONS
> select ARMV8_CRYPTO
> imply IMX_TMU
> + imply CPU
> + imply CPU_IMX
Keep the list sorted .
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 5/6] imx: imx8: Imply CPU_IMX by default
2025-03-22 18:38 ` [PATCH V3 5/6] imx: imx8: " Adam Ford
@ 2025-03-22 23:30 ` Marek Vasut
2025-03-23 0:00 ` Adam Ford
0 siblings, 1 reply; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:30 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, Stefano Babic, NXP i.MX U-Boot Team, Tom Rini,
Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog, Gilles Talis,
Patrick Barsanti, Ye Li, Christoph Stoidner, Wadim Egorov,
Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> The imx8_cpu driver is a CPU Driver that supports the i.MX8Q
> family. When it is enabled, it acts as an alternative to
> arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
> model where cpu.c does not. Imply this newer driver by default.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> arch/arm/mach-imx/imx8/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
> index 9a43beda6fa..257c14e61b6 100644
> --- a/arch/arm/mach-imx/imx8/Kconfig
> +++ b/arch/arm/mach-imx/imx8/Kconfig
> @@ -9,6 +9,8 @@ config AHAB_BOOT
> config IMX8
> bool
> select HAS_CAAM
> + imply CPU
> + imply CPU_IMX
Shouldn't CPU_IMX select CPU ?
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 6/6] imx: imx9: Imply CPU_IMX by default
2025-03-22 18:38 ` [PATCH V3 6/6] imx: imx9: " Adam Ford
@ 2025-03-22 23:30 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-22 23:30 UTC (permalink / raw)
To: Adam Ford, u-boot
Cc: aford, festevam, Stefano Babic, NXP i.MX U-Boot Team, Tom Rini,
Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog, Sumit Garg,
Gilles Talis, Marcel Ziswiler, Ye Li, Wadim Egorov,
Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/22/25 7:38 PM, Adam Ford wrote:
> The imx8_cpu driver is a CPU Driver that supports the i.MX9
> family. When it is enabled, it acts as an alternative to
> arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
> model where cpu.c does not. Imply this newer driver by default.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> arch/arm/mach-imx/imx9/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-imx/imx9/Kconfig b/arch/arm/mach-imx/imx9/Kconfig
> index c3e758e103a..579432a47fa 100644
> --- a/arch/arm/mach-imx/imx9/Kconfig
> +++ b/arch/arm/mach-imx/imx9/Kconfig
> @@ -11,6 +11,8 @@ config IMX9
> select HAS_CAAM
> select ROM_UNIFIED_SECTIONS
> imply IMX_TMU
> + imply CPU
> + imply CPU_IMX
Keep the list sorted.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 5/6] imx: imx8: Imply CPU_IMX by default
2025-03-22 23:30 ` Marek Vasut
@ 2025-03-23 0:00 ` Adam Ford
2025-03-23 5:09 ` Marek Vasut
0 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-23 0:00 UTC (permalink / raw)
To: Marek Vasut
Cc: u-boot, aford, festevam, Stefano Babic, NXP i.MX U-Boot Team,
Tom Rini, Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog,
Gilles Talis, Patrick Barsanti, Ye Li, Christoph Stoidner,
Wadim Egorov, Hou Zhiqiang, Michael Trimarchi
On Sat, Mar 22, 2025 at 6:31 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>
> On 3/22/25 7:38 PM, Adam Ford wrote:
> > The imx8_cpu driver is a CPU Driver that supports the i.MX8Q
> > family. When it is enabled, it acts as an alternative to
> > arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
> > model where cpu.c does not. Imply this newer driver by default.
> >
> > Signed-off-by: Adam Ford <aford173@gmail.com>
> > ---
> > arch/arm/mach-imx/imx8/Kconfig | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
> > index 9a43beda6fa..257c14e61b6 100644
> > --- a/arch/arm/mach-imx/imx8/Kconfig
> > +++ b/arch/arm/mach-imx/imx8/Kconfig
> > @@ -9,6 +9,8 @@ config AHAB_BOOT
> > config IMX8
> > bool
> > select HAS_CAAM
> > + imply CPU
> > + imply CPU_IMX
> Shouldn't CPU_IMX select CPU ?
It does not currently. Right now, it depends on CPU being set. There
is another Kconfig option for CPU_ARMV8 that also depends on CPU, and
I would prefer not to change both of them.
adam
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
2025-03-22 23:30 ` Marek Vasut
@ 2025-03-23 0:03 ` Adam Ford
2025-03-23 5:08 ` Marek Vasut
0 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-23 0:03 UTC (permalink / raw)
To: Marek Vasut
Cc: u-boot, aford, festevam, Stefano Babic, NXP i.MX U-Boot Team,
Tom Rini, Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog,
Sumit Garg, Gilles Talis, Marcel Ziswiler, Ye Li, Wadim Egorov,
Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On Sat, Mar 22, 2025 at 6:31 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>
> On 3/22/25 7:38 PM, Adam Ford wrote:
> > 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
> There is an extra space after 'grade' , please fix.
No problem. Should that be its own patch, or can I roll the
whitespace change with the #ifdef change? Normally, I like to keep
them separate, but it seems silly to me to make a patch solely for a
1-character whitespace change.
adam
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
2025-03-23 0:03 ` Adam Ford
@ 2025-03-23 5:08 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-23 5:08 UTC (permalink / raw)
To: Adam Ford
Cc: u-boot, aford, festevam, Stefano Babic, NXP i.MX U-Boot Team,
Tom Rini, Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog,
Sumit Garg, Gilles Talis, Marcel Ziswiler, Ye Li, Wadim Egorov,
Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/23/25 1:03 AM, Adam Ford wrote:
> On Sat, Mar 22, 2025 at 6:31 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>>
>> On 3/22/25 7:38 PM, Adam Ford wrote:
>>> 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
>> There is an extra space after 'grade' , please fix.
>
> No problem. Should that be its own patch, or can I roll the
> whitespace change with the #ifdef change? Normally, I like to keep
> them separate, but it seems silly to me to make a patch solely for a
> 1-character whitespace change.
Either way works for me, as long as it gets fixed. Thanks !
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V3 5/6] imx: imx8: Imply CPU_IMX by default
2025-03-23 0:00 ` Adam Ford
@ 2025-03-23 5:09 ` Marek Vasut
0 siblings, 0 replies; 17+ messages in thread
From: Marek Vasut @ 2025-03-23 5:09 UTC (permalink / raw)
To: Adam Ford
Cc: u-boot, aford, festevam, Stefano Babic, NXP i.MX U-Boot Team,
Tom Rini, Enrico Leto, Heiko Schocher, Peng Fan, Yannic Moog,
Gilles Talis, Patrick Barsanti, Ye Li, Christoph Stoidner,
Wadim Egorov, Hou Zhiqiang, Michael Trimarchi
On 3/23/25 1:00 AM, Adam Ford wrote:
> On Sat, Mar 22, 2025 at 6:31 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>>
>> On 3/22/25 7:38 PM, Adam Ford wrote:
>>> The imx8_cpu driver is a CPU Driver that supports the i.MX8Q
>>> family. When it is enabled, it acts as an alternative to
>>> arch/arm/mach-imx/cpu.c, but the imx8_cpu supports the driver
>>> model where cpu.c does not. Imply this newer driver by default.
>>>
>>> Signed-off-by: Adam Ford <aford173@gmail.com>
>>> ---
>>> arch/arm/mach-imx/imx8/Kconfig | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/arch/arm/mach-imx/imx8/Kconfig b/arch/arm/mach-imx/imx8/Kconfig
>>> index 9a43beda6fa..257c14e61b6 100644
>>> --- a/arch/arm/mach-imx/imx8/Kconfig
>>> +++ b/arch/arm/mach-imx/imx8/Kconfig
>>> @@ -9,6 +9,8 @@ config AHAB_BOOT
>>> config IMX8
>>> bool
>>> select HAS_CAAM
>>> + imply CPU
>>> + imply CPU_IMX
>> Shouldn't CPU_IMX select CPU ?
>
> It does not currently. Right now, it depends on CPU being set. There
> is another Kconfig option for CPU_ARMV8 that also depends on CPU, and
> I would prefer not to change both of them.
Hum, OK, thanks for clarifying.
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2025-03-23 5:09 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-22 18:38 [PATCH V3 0/6] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
2025-03-22 18:38 ` [PATCH V3 1/6] imx: imx9: Imply IMX_TMU Adam Ford
2025-03-22 23:29 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 2/6] imx: imx8m: " Adam Ford
2025-03-22 23:29 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 3/6] cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-23 0:03 ` Adam Ford
2025-03-23 5:08 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 4/6] imx: imx8m: Imply CPU_IMX by default Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 5/6] imx: imx8: " Adam Ford
2025-03-22 23:30 ` Marek Vasut
2025-03-23 0:00 ` Adam Ford
2025-03-23 5:09 ` Marek Vasut
2025-03-22 18:38 ` [PATCH V3 6/6] imx: imx9: " Adam Ford
2025-03-22 23:30 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox