From: Peng Fan Date: Thu, 19 Sep 2024 04:01:32 +0000 (+0800) Subject: imx9: soc: Disable cpu1 for variants that only has one A55 core X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=98f948ec531ab42942becd4cfaea63da53a38b73;p=u-boot.git imx9: soc: Disable cpu1 for variants that only has one A55 core Disale CPU1 for i.MX93 variants that only has one A55 core and update cooling maps. Signed-off-by: Peng Fan --- diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 47e2cb8d94..f8903afc92 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -12,7 +12,6 @@ endif ifeq ($(SOC),$(filter $(SOC),imx8m)) ifneq ($(CONFIG_SPL_BUILD),y) obj-$(CONFIG_IMX_BOOTAUX) += imx_bootaux.o -obj-y += fdt.o endif obj-$(CONFIG_ENV_IS_IN_MMC) += mmc_env.o obj-$(CONFIG_FEC_MXC) += mac.o @@ -22,6 +21,12 @@ obj-$(CONFIG_IMX_HAB) += hab.o obj-y += cpu.o endif +ifeq ($(SOC),$(filter $(SOC),imx8m imx9)) +ifneq ($(CONFIG_SPL_BUILD),y) +obj-y += fdt.o +endif +endif + ifeq ($(SOC),$(filter $(SOC),mx5 mx6)) obj-y += cpu.o speed.o ifneq ($(CONFIG_MX51),y) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 0d909c3e85..e3bfc8d51c 100644 --- a/arch/arm/mach-imx/imx9/soc.c +++ b/arch/arm/mach-imx/imx9/soc.c @@ -696,9 +696,17 @@ int board_fix_fdt(void *fdt) int ft_system_setup(void *blob, struct bd_info *bd) { + static const char * const nodes_path[] = { + "/cpus/cpu@0", + "/cpus/cpu@100", + }; + if (fixup_thermal_trips(blob, "cpu-thermal")) printf("Failed to update cpu-thermal trip(s)"); + if (is_imx9351() || is_imx9331() || is_imx9321() || is_imx9311()) + disable_cpu_nodes(blob, nodes_path, 1, 2); + if (is_voltage_mode(VOLT_LOW_DRIVE)) low_drive_freq_update(blob);