]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx: Guard print_cpuinfo with !CONFIG_IS_ENABLED(CPU)
authorPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 08:36:23 +0000 (16:36 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 26 Jun 2026 20:05:56 +0000 (17:05 -0300)
commit902cf2bf67646e41f47573e5bcf9fbdd4ce9ff38
treef978f04be67c407354e036d4a9d6d47ce567fd18
parent2571e319c57ebb3c7fa608f65d3cf4e455f443f6
imx: Guard print_cpuinfo with !CONFIG_IS_ENABLED(CPU)

When CONFIG_CPU is enabled, print_cpuinfo is defined in common/board_f.c
with static property. However in imx cpu.c, print_cpuinfo is not a local
function, so guard it with !CONFIG_IS_ENABLED(CPU).

And all i.MX8M boards has CONFIG_CPU and CONFIG_CPU_IMX set, so remove the
dead code.

However legacy print_cpuinfo also print reset reason, to keep reset
reason printed as before, export get_reset_reason() and invoke it
at arch_misc_init().

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/imx8m/soc.c