* [PATCH V4 1/7] imx: imx9: Imply IMX_TMU
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 2:54 ` [PATCH V4 2/7] cpu: imx8_cpu: Expand get_imx_type_str list of supported CPUs Adam Ford
` (7 subsequent siblings)
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, 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
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 V4 2/7] cpu: imx8_cpu: Expand get_imx_type_str list of supported CPUs
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
2025-03-25 2:54 ` [PATCH V4 1/7] imx: imx9: Imply IMX_TMU Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 2:54 ` [PATCH V4 3/7] imx: imx8m: Imply IMX_TMU Adam Ford
` (6 subsequent siblings)
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher, Enrico Leto,
Peng Fan, Yannic Moog, Teresa Remmet, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Wadim Egorov,
Hou Zhiqiang, Michael Trimarchi
The imx8_cpu is capable of running on IMX8, IMX8M, and IMX9
families, but the CPU list is limited on the 8M variants. Expand
this list to show more variants and their respective names.
Signed-off-by: Adam Ford <aford173@gmail.com>
---
drivers/cpu/imx8_cpu.c | 44 +++++++++++++++++++++++++++++++++++++++---
1 file changed, 41 insertions(+), 3 deletions(-)
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 53d31b3c0bf..39b3c194131 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -35,11 +35,49 @@ static const char *get_imx_type_str(u32 imxtype)
{
switch (imxtype) {
case MXC_CPU_IMX8MM:
- return "8MM";
+ return "8MMQ"; /* Quad-core version of the imx8mm */
+ case MXC_CPU_IMX8MML:
+ return "8MMQL"; /* Quad-core Lite version of the imx8mm */
+ case MXC_CPU_IMX8MMD:
+ return "8MMD"; /* Dual-core version of the imx8mm */
+ case MXC_CPU_IMX8MMDL:
+ return "8MMDL"; /* Dual-core Lite version of the imx8mm */
+ case MXC_CPU_IMX8MMS:
+ return "8MMS"; /* Single-core version of the imx8mm */
+ case MXC_CPU_IMX8MMSL:
+ return "8MMSL"; /* Single-core Lite version of the imx8mm */
case MXC_CPU_IMX8MN:
- return "8MN";
+ return "8MNano Quad"; /* Quad-core version */
+ case MXC_CPU_IMX8MND:
+ return "8MNano Dual"; /* Dual-core version */
+ case MXC_CPU_IMX8MNS:
+ return "8MNano Solo"; /* Single-core version */
+ case MXC_CPU_IMX8MNL:
+ return "8MNano QuadLite"; /* Quad-core Lite version */
+ case MXC_CPU_IMX8MNDL:
+ return "8MNano DualLite"; /* Dual-core Lite version */
+ case MXC_CPU_IMX8MNSL:
+ return "8MNano SoloLite";/* Single-core Lite version of the imx8mn */
+ case MXC_CPU_IMX8MNUQ:
+ return "8MNano UltraLite Quad";/* Quad-core UltraLite version of the imx8mn */
+ case MXC_CPU_IMX8MNUD:
+ return "8MNano UltraLite Dual";/* Dual-core UltraLite version of the imx8mn */
+ case MXC_CPU_IMX8MNUS:
+ return "8MNano UltraLite Solo";/* Single-core UltraLite version of the imx8mn */
case MXC_CPU_IMX8MP:
- return "8MP";
+ return "8MP[8]"; /* Quad-core version of the imx8mp */
+ case MXC_CPU_IMX8MPD:
+ return "8MP Dual[3]"; /* Dual-core version of the imx8mp */
+ case MXC_CPU_IMX8MPL:
+ return "8MP Lite[4]"; /* Quad-core Lite version of the imx8mp */
+ case MXC_CPU_IMX8MP6:
+ return "8MP[6]"; /* Quad-core version of the imx8mp, NPU fused */
+ case MXC_CPU_IMX8MQ:
+ return "8MQ"; /* Quad-core version of the imx8mq */
+ case MXC_CPU_IMX8MQL:
+ return "8MQLite"; /* Quad-core Lite version of the imx8mq */
+ case MXC_CPU_IMX8MD:
+ return "8MD"; /* Dual-core version of the imx8mq */
case MXC_CPU_IMX8QXP:
case MXC_CPU_IMX8QXP_A0:
return "8QXP";
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH V4 3/7] imx: imx8m: Imply IMX_TMU
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
2025-03-25 2:54 ` [PATCH V4 1/7] imx: imx9: Imply IMX_TMU Adam Ford
2025-03-25 2:54 ` [PATCH V4 2/7] cpu: imx8_cpu: Expand get_imx_type_str list of supported CPUs Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 2:54 ` [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU Adam Ford
` (5 subsequent siblings)
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher, Enrico Leto,
Peng Fan, Yannic Moog, Gilles Talis, Patrick Barsanti, Ye Li,
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 V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (2 preceding siblings ...)
2025-03-25 2:54 ` [PATCH V4 3/7] imx: imx8m: Imply IMX_TMU Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 3:37 ` Marek Vasut
2025-03-25 2:54 ` [PATCH V4 5/7] imx: imx8m: Imply CPU_IMX by default Adam Ford
` (4 subsequent siblings)
8 siblings, 1 reply; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, 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,
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_TMU in the same way
it's done in mach-imx/cpu.c to enable displaying this information
for any SoC with either of this config enabled.
Since additional text may appear due to this commit, remove
the extra space in the message displaying the temperature
grade.
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 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 39b3c194131..4e1eccaa5b0 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -215,19 +215,19 @@ 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_TMU)) {
switch (get_cpu_temp_grade(&minc, &maxc)) {
case TEMP_AUTOMOTIVE:
- grade = "Automotive temperature grade ";
+ grade = "Automotive temperature grade";
break;
case TEMP_INDUSTRIAL:
- grade = "Industrial temperature grade ";
+ grade = "Industrial temperature grade";
break;
case TEMP_EXTCOMMERCIAL:
- grade = "Extended Consumer temperature grade ";
+ grade = "Extended Consumer temperature grade";
break;
default:
- grade = "Consumer temperature grade ";
+ grade = "Consumer temperature grade";
break;
}
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 2:54 ` [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU Adam Ford
@ 2025-03-25 3:37 ` Marek Vasut
2025-03-25 11:36 ` Fabio Estevam
0 siblings, 1 reply; 17+ messages in thread
From: Marek Vasut @ 2025-03-25 3:37 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, Gilles Talis, Marcel Ziswiler,
Ye Li, Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/25/25 3:54 AM, 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_TMU in the same way
> it's done in mach-imx/cpu.c to enable displaying this information
> for any SoC with either of this config enabled.
> Since additional text may appear due to this commit, remove
> the extra space in the message displaying the temperature
> grade.
>
> 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>
Please drop the fullstop at the end of Subject and then add
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
To the whole series.
Thanks !
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 3:37 ` Marek Vasut
@ 2025-03-25 11:36 ` Fabio Estevam
2025-03-25 12:37 ` Adam Ford
0 siblings, 1 reply; 17+ messages in thread
From: Fabio Estevam @ 2025-03-25 11:36 UTC (permalink / raw)
To: Marek Vasut
Cc: Adam Ford, u-boot, aford, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
On Tue, Mar 25, 2025 at 12:37 AM Marek Vasut <marek.vasut@mailbox.org> wrote:
> Please drop the fullstop at the end of Subject and then add
>
> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>
> To the whole series.
Adam, no need to resend. I will take care of it, thanks.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 11:36 ` Fabio Estevam
@ 2025-03-25 12:37 ` Adam Ford
2025-03-25 14:14 ` Marek Vasut
2025-03-25 22:00 ` Fabio Estevam
0 siblings, 2 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 12:37 UTC (permalink / raw)
To: Fabio Estevam
Cc: Marek Vasut, u-boot, aford, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
On Tue, Mar 25, 2025 at 6:36 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> On Tue, Mar 25, 2025 at 12:37 AM Marek Vasut <marek.vasut@mailbox.org> wrote:
>
> > Please drop the fullstop at the end of Subject and then add
> >
> > Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> >
> > To the whole series.
>
> Adam, no need to resend. I will take care of it, thanks.
Sorry about that...again. Thanks.
Once this is complete, I'll have a smaller patch series which shrinks
my 8MP SPL code by around 4k by #ifdef'ing out dead code. Hopefully
it's not too cluttered, but that smaller series depends on both the
UART clock and the CPU_IMX updates.
adam
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 12:37 ` Adam Ford
@ 2025-03-25 14:14 ` Marek Vasut
2025-03-25 14:20 ` Adam Ford
2025-03-25 22:00 ` Fabio Estevam
1 sibling, 1 reply; 17+ messages in thread
From: Marek Vasut @ 2025-03-25 14:14 UTC (permalink / raw)
To: Adam Ford, Fabio Estevam
Cc: u-boot, aford, NXP i.MX U-Boot Team, Tom Rini, Heiko Schocher,
Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis, Marcel Ziswiler,
Ye Li, Christoph Stoidner, Hou Zhiqiang, Michael Trimarchi
On 3/25/25 1:37 PM, Adam Ford wrote:
> On Tue, Mar 25, 2025 at 6:36 AM Fabio Estevam <festevam@gmail.com> wrote:
>>
>> On Tue, Mar 25, 2025 at 12:37 AM Marek Vasut <marek.vasut@mailbox.org> wrote:
>>
>>> Please drop the fullstop at the end of Subject and then add
>>>
>>> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>>>
>>> To the whole series.
>>
>> Adam, no need to resend. I will take care of it, thanks.
>
> Sorry about that...again. Thanks.
>
> Once this is complete, I'll have a smaller patch series which shrinks
> my 8MP SPL code by around 4k by #ifdef'ing out dead code. Hopefully
> it's not too cluttered, but that smaller series depends on both the
> UART clock and the CPU_IMX updates.
Nice, thanks !
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 14:14 ` Marek Vasut
@ 2025-03-25 14:20 ` Adam Ford
0 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 14:20 UTC (permalink / raw)
To: Marek Vasut
Cc: Fabio Estevam, u-boot, aford, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
On Tue, Mar 25, 2025 at 9:14 AM Marek Vasut <marek.vasut@mailbox.org> wrote:
>
> On 3/25/25 1:37 PM, Adam Ford wrote:
> > On Tue, Mar 25, 2025 at 6:36 AM Fabio Estevam <festevam@gmail.com> wrote:
> >>
> >> On Tue, Mar 25, 2025 at 12:37 AM Marek Vasut <marek.vasut@mailbox.org> wrote:
> >>
> >>> Please drop the fullstop at the end of Subject and then add
> >>>
> >>> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> >>>
> >>> To the whole series.
> >>
> >> Adam, no need to resend. I will take care of it, thanks.
> >
> > Sorry about that...again. Thanks.
> >
> > Once this is complete, I'll have a smaller patch series which shrinks
> > my 8MP SPL code by around 4k by #ifdef'ing out dead code. Hopefully
> > it's not too cluttered, but that smaller series depends on both the
> > UART clock and the CPU_IMX updates.
> Nice, thanks !
Don't thank me yet. It's going to increase the ifdef-ery, and it gets
a bit ugly. I'm tempted to throw in some To-Do's, because I can see
some more improvement possibilities as I dig into some of this code,
but I am not prepared to touch them yet.
adam
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 12:37 ` Adam Ford
2025-03-25 14:14 ` Marek Vasut
@ 2025-03-25 22:00 ` Fabio Estevam
2025-03-26 0:08 ` Adam Ford
1 sibling, 1 reply; 17+ messages in thread
From: Fabio Estevam @ 2025-03-25 22:00 UTC (permalink / raw)
To: Adam Ford
Cc: Marek Vasut, u-boot, aford, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
Hi Adam,
On Tue, Mar 25, 2025 at 9:37 AM Adam Ford <aford173@gmail.com> wrote:
> Once this is complete, I'll have a smaller patch series which shrinks
> my 8MP SPL code by around 4k by #ifdef'ing out dead code. Hopefully
> it's not too cluttered, but that smaller series depends on both the
> UART clock and the CPU_IMX updates.
The two series are present in the next branch now.
Feel free to post the additional improvements.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU.
2025-03-25 22:00 ` Fabio Estevam
@ 2025-03-26 0:08 ` Adam Ford
0 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-26 0:08 UTC (permalink / raw)
To: Fabio Estevam
Cc: Marek Vasut, u-boot, aford, NXP i.MX U-Boot Team, Tom Rini,
Heiko Schocher, Enrico Leto, Peng Fan, Yannic Moog, Gilles Talis,
Marcel Ziswiler, Ye Li, Christoph Stoidner, Hou Zhiqiang,
Michael Trimarchi
On Tue, Mar 25, 2025 at 5:00 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Adam,
>
> On Tue, Mar 25, 2025 at 9:37 AM Adam Ford <aford173@gmail.com> wrote:
>
> > Once this is complete, I'll have a smaller patch series which shrinks
> > my 8MP SPL code by around 4k by #ifdef'ing out dead code. Hopefully
> > it's not too cluttered, but that smaller series depends on both the
> > UART clock and the CPU_IMX updates.
>
> The two series are present in the next branch now.
>
> Feel free to post the additional improvements.
Well, I am not sure if it's good news or bad, but after rebasing my
changes on top of U-Boot-Next, the SPL size delta goes away, so I am
not sure if I even have anything to push, since it makes no difference
anymore. :-( Part of me wants to bisect it to see what made the
difference.
adam
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH V4 5/7] imx: imx8m: Imply CPU_IMX by default
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (3 preceding siblings ...)
2025-03-25 2:54 ` [PATCH V4 4/7] cpu: imx8_cpu: Print Speed grade if IMX_TMU Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 2:54 ` [PATCH V4 6/7] imx: imx8: " Adam Ford
` (3 subsequent siblings)
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Teresa Remmet, 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..31f2f003d35 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -8,6 +8,8 @@ config IMX8M
select LTO
select ROM_UNIFIED_SECTIONS
select ARMV8_CRYPTO
+ imply CPU
+ imply CPU_IMX
imply IMX_TMU
config IMX8MQ
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH V4 6/7] imx: imx8: Imply CPU_IMX by default
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (4 preceding siblings ...)
2025-03-25 2:54 ` [PATCH V4 5/7] imx: imx8m: Imply CPU_IMX by default Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 2:54 ` [PATCH V4 7/7] imx: imx9: " Adam Ford
` (2 subsequent siblings)
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
Peng Fan, Yannic Moog, Sumit Garg, Gilles Talis, Patrick Barsanti,
Ye Li, Christoph Stoidner, 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 V4 7/7] imx: imx9: Imply CPU_IMX by default
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (5 preceding siblings ...)
2025-03-25 2:54 ` [PATCH V4 6/7] imx: imx8: " Adam Ford
@ 2025-03-25 2:54 ` Adam Ford
2025-03-25 7:43 ` [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Peng Fan
2025-03-25 12:56 ` Fabio Estevam
8 siblings, 0 replies; 17+ messages in thread
From: Adam Ford @ 2025-03-25 2:54 UTC (permalink / raw)
To: u-boot
Cc: aford, festevam, marek.vasut, Adam Ford, Stefano Babic,
NXP i.MX U-Boot Team, Tom Rini, Enrico Leto, Heiko Schocher,
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.MX9
family to display the CPU type, temperature grade and
current operating temperature. The older file,
arch/arm/mach-imx/cpu.c, does not support i.MX9, so this config
is enabled in various IMX9 boards. Instead of having this option
enabled in every IMX9, select this driver by default for the
platform.
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..1ccdb1cf64f 100644
--- a/arch/arm/mach-imx/imx9/Kconfig
+++ b/arch/arm/mach-imx/imx9/Kconfig
@@ -8,6 +8,8 @@ config AHAB_BOOT
config IMX9
bool
select BINMAN
+ select CPU
+ select CPU_IMX
select HAS_CAAM
select ROM_UNIFIED_SECTIONS
imply IMX_TMU
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (6 preceding siblings ...)
2025-03-25 2:54 ` [PATCH V4 7/7] imx: imx9: " Adam Ford
@ 2025-03-25 7:43 ` Peng Fan
2025-03-25 12:56 ` Fabio Estevam
8 siblings, 0 replies; 17+ messages in thread
From: Peng Fan @ 2025-03-25 7:43 UTC (permalink / raw)
To: Adam Ford
Cc: u-boot, aford, festevam, marek.vasut, 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, Christoph Stoidner, Wadim Egorov,
Hou Zhiqiang, Michael Trimarchi
On Mon, Mar 24, 2025 at 09:54:41PM -0500, Adam Ford wrote:
>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.
>
>V4: Make IMX9 select CPU_IMX instead of imply since it appears to be
> required for all in the platform.
> Fixed some whitespace in imx8_cpu around the temperature grade message.
> Re-ordered some items in Kconfig to keep them alphabetical
> Added more CPU items to the list inside imx8_cpu to match what was done
> from arch/arm/mach-imx/cpu.c.
>
>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. CPU_IMX depends
> on CPU, so both have to be selected.
>
>V2: Changed the check in imx8_cpu to drop the IMX9 check and instead
> imply IMX_TMU in the IMX9 family
>
>Adam Ford (7):
> imx: imx9: Imply IMX_TMU
> cpu: imx8_cpu: Expand get_imx_type_str list of supported CPUs
> imx: imx8m: Imply IMX_TMU
> cpu: imx8_cpu: Print Speed grade if 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 | 3 ++
> arch/arm/mach-imx/imx9/Kconfig | 3 ++
> drivers/cpu/imx8_cpu.c | 54 ++++++++++++++++++++++++++++-----
> 4 files changed, 54 insertions(+), 8 deletions(-)
>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
>--
>2.45.2
>
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu
2025-03-25 2:54 [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Adam Ford
` (7 preceding siblings ...)
2025-03-25 7:43 ` [PATCH V4 0/7] Migrate IMX8, IMX8M and IMX9 to use imx8_cpu Peng Fan
@ 2025-03-25 12:56 ` Fabio Estevam
8 siblings, 0 replies; 17+ messages in thread
From: Fabio Estevam @ 2025-03-25 12:56 UTC (permalink / raw)
To: Adam Ford
Cc: u-boot, aford, marek.vasut, 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,
Christoph Stoidner, Wadim Egorov, Hou Zhiqiang, Michael Trimarchi
On Mon, Mar 24, 2025 at 11:55 PM Adam Ford <aford173@gmail.com> wrote:
>
> 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.
>
> V4: Make IMX9 select CPU_IMX instead of imply since it appears to be
> required for all in the platform.
> Fixed some whitespace in imx8_cpu around the temperature grade message.
> Re-ordered some items in Kconfig to keep them alphabetical
> Added more CPU items to the list inside imx8_cpu to match what was done
> from arch/arm/mach-imx/cpu.c.
Applied to u-boot-imx/next, thanks.
^ permalink raw reply [flat|nested] 17+ messages in thread