mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-24 08:01:21 +02:00
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>
23 lines
414 B
C
23 lines
414 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Quality of Service (QoS) Configuration Header File
|
|
*
|
|
* Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
|
|
*/
|
|
#ifndef _K3_QOS_H_
|
|
#define _K3_QOS_H_
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
struct k3_qos_data {
|
|
u32 reg;
|
|
u32 val;
|
|
};
|
|
|
|
#if (IS_ENABLED(CONFIG_K3_QOS))
|
|
extern struct k3_qos_data qos_data[];
|
|
extern u32 qos_count;
|
|
#endif
|
|
|
|
#endif /* _K3_QOS_H_ */
|