arm: mach-k3: am62p: Set a53 cpu freq based on speed-grade
authorAparna Patra <a-patra@ti.com>
Wed, 8 Jan 2025 04:49:39 +0000 (10:19 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 14 Jan 2025 21:50:07 +0000 (15:50 -0600)
commit969f43c563bb4647ed1f52d3ff304ec18ddb6e10
tree2db4984df5fd8ad6b95d54baf4a54222e4674f70
parent8d05cbef73ae014cd91d620dd4b5b40056933027
arm: mach-k3: am62p: Set a53 cpu freq based on speed-grade

The maximum frequency of the A53 CPU on the AM62P depends on the speed
grade of the SoC. This value is hardcoded in the DT for all AM62P
variants, potentially causing specifications to be exceeded. Moreover,
setting a common lower frequency for all variants increases boot time.
To prevent these issues, modify the DT at runtime from the R5 core to
adjust the A53 CPU frequency.

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