arm: mach-k3: am62p: Fixup a53 max cpu frequency by speed-grade
authorAparna Patra <a-patra@ti.com>
Wed, 8 Jan 2025 04:49:38 +0000 (10:19 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 21:50:07 +0000 (15:50 -0600)
commit8d05cbef73ae014cd91d620dd4b5b40056933027
tree725299a79a8d3d3908e93686b55d476a86e9f929
parenta226a6422c9a8b02929c0f768dbce1c5311ccdc4
arm: mach-k3: am62p: Fixup a53 max cpu frequency by speed-grade

AM62P SoC has multiple speed grades. Add function to delete
non-relevant CPU frequency nodes, based on the information
retrieved from hardware registers. Fastest grade's maximum
frequency also depends on PMIC voltage, hence to simplify
implementation use the smaller value.

Signed-off-by: Aparna Patra <a-patra@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
arch/arm/mach-k3/am62px/am62p5_fdt.c
arch/arm/mach-k3/include/mach/am62p_hardware.h