]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: am62a: Simplify the logic for QOS reg and val propagation
authorJayesh Choudhary <j-choudhary@ti.com>
Fri, 14 Jun 2024 12:44:36 +0000 (18:14 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 24 Jun 2024 15:51:09 +0000 (09:51 -0600)
commit6bc9a5c92f65c1f062ee4d3761330f4fc4a0bf00
tree342ab7ae26ea2d45c9c3aacdda29b590563502cb
parent93f97c7387ea5d24935cbb6a6432ef29294ff387
arm: mach-k3: am62a: Simplify the logic for QOS reg and val propagation

For the QOS registers, instead of using the raw values for calculation
for each reg field, use a defined macro which takes in argument for all
the reg fields to get the desired value.
Do the similar simplification for QOS register and group registers and
make the corresponding changes for am62a_qos_uboot file.

Suggested-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
Acked-by: Andrew Davis <afd@ti.com>
arch/arm/mach-k3/include/mach/k3-qos.h
arch/arm/mach-k3/r5/am62ax/am62a_qos_uboot.c