* Re: [PATCH v2 3/3] toradex: smarc-imx95: Drop init_uart_clk
2026-02-06 15:28 ` [PATCH v2 3/3] toradex: smarc-imx95: " Peng Fan (OSS)
@ 2026-02-06 14:22 ` Francesco Dolcini
0 siblings, 0 replies; 5+ messages in thread
From: Francesco Dolcini @ 2026-02-06 14:22 UTC (permalink / raw)
To: Peng Fan (OSS)
Cc: NXP i.MX U-Boot Team, u-boot, Stefano Babic, Fabio Estevam,
Alice Guo, Tom Rini, Ye Li, Francesco Dolcini, Peng Fan
Hello Peng,
thanks for the patch.
On Fri, Feb 06, 2026 at 11:28:45PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> Rely on serial driver calling clk_enable to enable the lpuart clk, no
> need to do init_uart_clk in board_early_init_f().
>
> Also remove board_early_init_f(), because it is empty now.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Francesco
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 0/3] imx9[4,5]_evk: Drop init_uart_clk from board code
@ 2026-02-06 15:28 Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 1/3] nxp: imx95_evk: Drop init_uart_clk Peng Fan (OSS)
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Peng Fan (OSS) @ 2026-02-06 15:28 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, u-boot
Cc: Stefano Babic, Fabio Estevam, Alice Guo, Tom Rini, Ye Li,
Francesco Dolcini, Peng Fan
The serial driver could enable the uart clk using clk_enable, there
is no need to call init_uart_clk in board_early_init_f.
The init_uart_clk() function is still kept, in case it is needed for
debug purpose.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Changes in v2:
- Drop board_early_init_f and update defconfig
- Include cleanup to toradex smarc-imx95
- Link to v1: https://lore.kernel.org/r/20260206-imx9-board-clean-uart-v1-0-3965b4e7f79d@nxp.com
---
Peng Fan (3):
nxp: imx95_evk: Drop init_uart_clk
nxp: imx94_evk: Drop init_uart_clk
toradex: smarc-imx95: Drop init_uart_clk
board/nxp/imx94_evk/imx94_evk.c | 6 ------
board/nxp/imx94_evk/spl.c | 2 --
board/nxp/imx95_evk/imx95_evk.c | 8 --------
board/nxp/imx95_evk/spl.c | 2 --
board/toradex/smarc-imx95/smarc-imx95.c | 8 --------
board/toradex/smarc-imx95/spl.c | 2 --
configs/imx943_evk_defconfig | 1 -
configs/imx95_15x15_evk_defconfig | 1 -
configs/imx95_evk.config | 1 -
configs/toradex-smarc-imx95_defconfig | 1 -
10 files changed, 32 deletions(-)
---
base-commit: b5213bbfdcb1812be510427857827ee8becb9f8f
change-id: 20260206-imx9-board-clean-uart-7eda1c7fed1c
Best regards,
--
Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/3] nxp: imx95_evk: Drop init_uart_clk
2026-02-06 15:28 [PATCH v2 0/3] imx9[4,5]_evk: Drop init_uart_clk from board code Peng Fan (OSS)
@ 2026-02-06 15:28 ` Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 2/3] nxp: imx94_evk: " Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 3/3] toradex: smarc-imx95: " Peng Fan (OSS)
2 siblings, 0 replies; 5+ messages in thread
From: Peng Fan (OSS) @ 2026-02-06 15:28 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, u-boot
Cc: Stefano Babic, Fabio Estevam, Alice Guo, Tom Rini, Ye Li,
Francesco Dolcini, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
Rely on serial driver calling clk_enable to enable the lpuart clk, no
need to do init_uart_clk in board_early_init_f().
Also remove board_early_init_f(), because it is empty now.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
board/nxp/imx95_evk/imx95_evk.c | 8 --------
board/nxp/imx95_evk/spl.c | 2 --
configs/imx95_15x15_evk_defconfig | 1 -
configs/imx95_evk.config | 1 -
4 files changed, 12 deletions(-)
diff --git a/board/nxp/imx95_evk/imx95_evk.c b/board/nxp/imx95_evk/imx95_evk.c
index ca1d916deab..620a69b53e5 100644
--- a/board/nxp/imx95_evk/imx95_evk.c
+++ b/board/nxp/imx95_evk/imx95_evk.c
@@ -7,14 +7,6 @@
#include <asm/arch/clock.h>
#include <asm/mach-imx/sys_proto.h>
-int board_early_init_f(void)
-{
- /* UART1: A55, UART2: M33, UART3: M7 */
- init_uart_clk(0);
-
- return 0;
-}
-
int board_late_init(void)
{
if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
diff --git a/board/nxp/imx95_evk/spl.c b/board/nxp/imx95_evk/spl.c
index 752d7f916b6..761a1a4a0f6 100644
--- a/board/nxp/imx95_evk/spl.c
+++ b/board/nxp/imx95_evk/spl.c
@@ -67,8 +67,6 @@ void board_init_f(ulong dummy)
arch_cpu_init();
- board_early_init_f();
-
preloader_console_init();
debug("SOC: 0x%x\n", gd->arch.soc_rev);
diff --git a/configs/imx95_15x15_evk_defconfig b/configs/imx95_15x15_evk_defconfig
index f3099f14401..5c7b3941550 100644
--- a/configs/imx95_15x15_evk_defconfig
+++ b/configs/imx95_15x15_evk_defconfig
@@ -38,7 +38,6 @@ CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
CONFIG_DEFAULT_FDT_FILE="imx95-15x15-evk.dtb"
CONFIG_SYS_CBSIZE=2048
CONFIG_SYS_PBSIZE=2074
-CONFIG_BOARD_EARLY_INIT_F=y
# CONFIG_BOARD_INIT is not set
CONFIG_BOARD_LATE_INIT=y
CONFIG_PCI_INIT_R=y
diff --git a/configs/imx95_evk.config b/configs/imx95_evk.config
index 631ec23c335..58b8fc2a01a 100644
--- a/configs/imx95_evk.config
+++ b/configs/imx95_evk.config
@@ -37,7 +37,6 @@ CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
CONFIG_DEFAULT_FDT_FILE="imx95-19x19-evk.dtb"
CONFIG_SYS_CBSIZE=2048
CONFIG_SYS_PBSIZE=2074
-CONFIG_BOARD_EARLY_INIT_F=y
# CONFIG_BOARD_INIT is not set
CONFIG_BOARD_LATE_INIT=y
CONFIG_PCI_INIT_R=y
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] nxp: imx94_evk: Drop init_uart_clk
2026-02-06 15:28 [PATCH v2 0/3] imx9[4,5]_evk: Drop init_uart_clk from board code Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 1/3] nxp: imx95_evk: Drop init_uart_clk Peng Fan (OSS)
@ 2026-02-06 15:28 ` Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 3/3] toradex: smarc-imx95: " Peng Fan (OSS)
2 siblings, 0 replies; 5+ messages in thread
From: Peng Fan (OSS) @ 2026-02-06 15:28 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, u-boot
Cc: Stefano Babic, Fabio Estevam, Alice Guo, Tom Rini, Ye Li,
Francesco Dolcini, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
Rely on serial driver calling clk_enable to enable the lpuart clk, no
need to do init_uart_clk in board_early_init_f().
Also remove board_early_init_f(), because it is empty now.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
board/nxp/imx94_evk/imx94_evk.c | 6 ------
board/nxp/imx94_evk/spl.c | 2 --
configs/imx943_evk_defconfig | 1 -
3 files changed, 9 deletions(-)
diff --git a/board/nxp/imx94_evk/imx94_evk.c b/board/nxp/imx94_evk/imx94_evk.c
index 588aa7548d4..2aeb21c1de7 100644
--- a/board/nxp/imx94_evk/imx94_evk.c
+++ b/board/nxp/imx94_evk/imx94_evk.c
@@ -9,12 +9,6 @@
#include <asm/arch/clock.h>
#include <asm/mach-imx/sys_proto.h>
-int board_early_init_f(void)
-{
- init_uart_clk(0);
- return 0;
-}
-
int board_init(void)
{
return 0;
diff --git a/board/nxp/imx94_evk/spl.c b/board/nxp/imx94_evk/spl.c
index 797806a8d4d..cc5b7f9ef0f 100644
--- a/board/nxp/imx94_evk/spl.c
+++ b/board/nxp/imx94_evk/spl.c
@@ -69,8 +69,6 @@ void board_init_f(ulong dummy)
arch_cpu_init();
- board_early_init_f();
-
preloader_console_init();
debug("SOC: 0x%x\n", gd->arch.soc_rev);
diff --git a/configs/imx943_evk_defconfig b/configs/imx943_evk_defconfig
index 0371dbe28a9..ef4f9a8fcbc 100644
--- a/configs/imx943_evk_defconfig
+++ b/configs/imx943_evk_defconfig
@@ -37,7 +37,6 @@ CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
CONFIG_DEFAULT_FDT_FILE="imx943-evk.dtb"
CONFIG_SYS_CBSIZE=2048
CONFIG_SYS_PBSIZE=2074
-CONFIG_BOARD_EARLY_INIT_F=y
CONFIG_BOARD_LATE_INIT=y
CONFIG_PCI_INIT_R=y
CONFIG_SPL_MAX_SIZE=0x30000
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] toradex: smarc-imx95: Drop init_uart_clk
2026-02-06 15:28 [PATCH v2 0/3] imx9[4,5]_evk: Drop init_uart_clk from board code Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 1/3] nxp: imx95_evk: Drop init_uart_clk Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 2/3] nxp: imx94_evk: " Peng Fan (OSS)
@ 2026-02-06 15:28 ` Peng Fan (OSS)
2026-02-06 14:22 ` Francesco Dolcini
2 siblings, 1 reply; 5+ messages in thread
From: Peng Fan (OSS) @ 2026-02-06 15:28 UTC (permalink / raw)
To: NXP i.MX U-Boot Team, u-boot
Cc: Stefano Babic, Fabio Estevam, Alice Guo, Tom Rini, Ye Li,
Francesco Dolcini, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
Rely on serial driver calling clk_enable to enable the lpuart clk, no
need to do init_uart_clk in board_early_init_f().
Also remove board_early_init_f(), because it is empty now.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
board/toradex/smarc-imx95/smarc-imx95.c | 8 --------
board/toradex/smarc-imx95/spl.c | 2 --
configs/toradex-smarc-imx95_defconfig | 1 -
3 files changed, 11 deletions(-)
diff --git a/board/toradex/smarc-imx95/smarc-imx95.c b/board/toradex/smarc-imx95/smarc-imx95.c
index c2cf872d9f9..6040c49975a 100644
--- a/board/toradex/smarc-imx95/smarc-imx95.c
+++ b/board/toradex/smarc-imx95/smarc-imx95.c
@@ -8,14 +8,6 @@
#include "../common/tdx-cfg-block.h"
-int board_early_init_f(void)
-{
- /* UART1: A55 */
- init_uart_clk(0);
-
- return 0;
-}
-
int board_phys_sdram_size(phys_size_t *size)
{
*size = PHYS_SDRAM_SIZE + PHYS_SDRAM_2_SIZE;
diff --git a/board/toradex/smarc-imx95/spl.c b/board/toradex/smarc-imx95/spl.c
index e0e39b8bb94..ce8da89410b 100644
--- a/board/toradex/smarc-imx95/spl.c
+++ b/board/toradex/smarc-imx95/spl.c
@@ -105,8 +105,6 @@ void board_init_f(ulong dummy)
arch_cpu_init();
- board_early_init_f();
-
preloader_console_init();
debug("SOC: 0x%x\n", gd->arch.soc_rev);
diff --git a/configs/toradex-smarc-imx95_defconfig b/configs/toradex-smarc-imx95_defconfig
index 5ab420ae519..77b355c12d6 100644
--- a/configs/toradex-smarc-imx95_defconfig
+++ b/configs/toradex-smarc-imx95_defconfig
@@ -43,7 +43,6 @@ CONFIG_SYS_PBSIZE=2074
CONFIG_LOG=y
# CONFIG_DISPLAY_BOARDINFO is not set
CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_BOARD_EARLY_INIT_F=y
# CONFIG_BOARD_INIT is not set
CONFIG_SPL_MAX_SIZE=0x30000
CONFIG_SPL_BOARD_INIT=y
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-06 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 15:28 [PATCH v2 0/3] imx9[4,5]_evk: Drop init_uart_clk from board code Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 1/3] nxp: imx95_evk: Drop init_uart_clk Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 2/3] nxp: imx94_evk: " Peng Fan (OSS)
2026-02-06 15:28 ` [PATCH v2 3/3] toradex: smarc-imx95: " Peng Fan (OSS)
2026-02-06 14:22 ` Francesco Dolcini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox