]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mach-k3: refactor A53 speed grade clock-rate fixup
authorAnshul Dalal <anshuld@ti.com>
Thu, 30 Oct 2025 13:03:21 +0000 (18:33 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 12 Nov 2025 15:42:17 +0000 (09:42 -0600)
commit65a6b83a9b7faff58e2ca60ddebbf5dc364c6ec9
tree148c46f52b67c54307dc2ab22eafc64c9d915292
parent2a909c3da7197f9640a016e69a7b7984f1d6fa45
mach-k3: refactor A53 speed grade clock-rate fixup

The K3 ARM64 rproc driver uses the "assigned-clock-rates" value in the
respective "/a53@0" node to properly configure the clocks for the A53
core.

Although the clock value in the DT node might need to be fixed based on
SoC's speed grade at runtime. Certain SoCs such as AM62p and AM62x
already had this implemented, this patch moves the common code to
common.c to avoid duplication and simplify speed grade handling.

The logic to detect the correct entry in the "assigned-clock-rates"
property has also changed. Where we earlier relied on per SoC specific
device and clock IDs for the A53 core, we now use the "clock-names"
property which is device agnostic.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Aniket Limaye <a-limaye@ti.com>
arch/arm/mach-k3/am62px/am62p5_init.c
arch/arm/mach-k3/am62x/am625_init.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common.h
arch/arm/mach-k3/include/mach/am62_hardware.h
arch/arm/mach-k3/include/mach/am62p_hardware.h