From 2a909c3da7197f9640a016e69a7b7984f1d6fa45 Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Thu, 30 Oct 2025 18:33:20 +0530 Subject: [PATCH] mach-k3: am62px: remove fdt_fixup_cpu_freq_nodes_am62p fdt_fixup_cpu_freq_nodes_am62p is used to delete unsupported opp table entries at runtime based on the SoC's speed grade. However, the ti-cpufreq driver in kernel already has support for rejecting unsupported entries. Therefore this fdt fixup is not necessary and can be dropped. Fixes: 8d05cbef73ae ("arm: mach-k3: am62p: Fixup a53 max cpu frequency by speed-grade") Signed-off-by: Anshul Dalal --- arch/arm/mach-k3/am62px/am62p5_fdt.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm/mach-k3/am62px/am62p5_fdt.c b/arch/arm/mach-k3/am62px/am62p5_fdt.c index 4a5ff594df6..03f56cfd9fc 100644 --- a/arch/arm/mach-k3/am62px/am62p5_fdt.c +++ b/arch/arm/mach-k3/am62px/am62p5_fdt.c @@ -39,17 +39,6 @@ static void fdt_fixup_canfd_nodes_am62p(void *blob, bool has_canfd) } } -static void fdt_fixup_cpu_freq_nodes_am62p(void *blob, int max_freq) -{ - if (max_freq >= 1250000000) - return; - - if (max_freq <= 1000000000) { - fdt_del_node_path(blob, "/opp-table/opp-1250000000"); - fdt_del_node_path(blob, "/opp-table/opp-1400000000"); - } -} - static void fdt_fixup_thermal_cooling_device_cpus_am62p(void *blob, int core_nr) { static const char * const thermal_path[] = { @@ -92,7 +81,6 @@ int ft_system_setup(void *blob, struct bd_info *bd) fdt_fixup_canfd_nodes_am62p(blob, k3_has_canfd()); fdt_fixup_thermal_critical_trips_k3(blob, k3_get_max_temp()); fdt_fixup_thermal_cooling_device_cpus_am62p(blob, k3_get_core_nr()); - fdt_fixup_cpu_freq_nodes_am62p(blob, k3_get_a53_max_frequency()); fdt_fixup_reserved(blob, "tfa", CONFIG_K3_ATF_LOAD_ADDR, 0x80000); fdt_fixup_reserved(blob, "optee", CONFIG_K3_OPTEE_LOAD_ADDR, 0x1800000); -- 2.47.3