]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: Refactor QoS settings
authorAradhya Bhatia <a-bhatia1@ti.com>
Mon, 12 Feb 2024 10:06:35 +0000 (15:36 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 1 Mar 2024 14:15:58 +0000 (09:15 -0500)
commit72703c7a0dd8ede6c98d13152fc1ebd3da4bc128
tree00792dd20b7d0da8ffc0d973b317b9ef60782c5b
parent8fb8a6d499773a2a06df8152950077985f926c86
arm: mach-k3: Refactor QoS settings

Refactor common QoS code into a new common header file, and the soc
specific setup_qos functions into a common API.

Rename $(soc)_qos_count and $(soc)_qos_data variables to qos_count and
qos_data. When QoS settings of more SoCs are added, only one pair will
be defined at a time, based on the config SOC_K3_$(soc).

This refactoring has been done for 2 major purposes.

- The auto-generated $(soc)_qos_data.c and $(soc)_qos.h files cannot
  have any code that is specific to any bootloader. Those files have to
  remain agnostic of different bootloader implementations and their
  header files.

- The existing implementation was less than ideal and would have enabled
  multiple $(soc)_qos_count and $(soc)_qos_data variables for all SoC
  variants.

Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
arch/arm/mach-k3/am62a7_init.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common.h
arch/arm/mach-k3/include/mach/hardware.h
arch/arm/mach-k3/include/mach/k3-qos.h [new file with mode: 0644]
arch/arm/mach-k3/r5/Kconfig
arch/arm/mach-k3/r5/am62ax/Makefile
arch/arm/mach-k3/r5/am62ax/am62a_qos.h [moved from arch/arm/mach-k3/include/mach/am62a_qos.h with 100% similarity]
arch/arm/mach-k3/r5/am62ax/am62a_qos_uboot.c [moved from arch/arm/mach-k3/r5/am62ax/am62a_qos_data.c with 85% similarity]