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 <peng.fan@nxp.com>
This commit is contained in:
Peng Fan 2024-09-19 12:01:32 +08:00 committed by Fabio Estevam
parent cd9b3de763
commit 98f948ec53
2 changed files with 14 additions and 1 deletions

View File

@ -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)

View File

@ -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);