]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mach-k3: am62px: remove fdt_fixup_cpu_freq_nodes_am62p
authorAnshul Dalal <anshuld@ti.com>
Thu, 30 Oct 2025 13:03:20 +0000 (18:33 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 12 Nov 2025 15:42:17 +0000 (09:42 -0600)
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 <anshuld@ti.com>
arch/arm/mach-k3/am62px/am62p5_fdt.c

index 4a5ff594df66878368777cd7aa79b3adf0a094e1..03f56cfd9fc404a114b444a482706b579cd1878e 100644 (file)
@@ -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);