diff options
Diffstat (limited to 'arch/arm/mach-k3/include/mach/k3-qos.h')
-rw-r--r-- | arch/arm/mach-k3/include/mach/k3-qos.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/include/mach/k3-qos.h b/arch/arm/mach-k3/include/mach/k3-qos.h index e00e1de5b9c..eb0f2a0448a 100644 --- a/arch/arm/mach-k3/include/mach/k3-qos.h +++ b/arch/arm/mach-k3/include/mach/k3-qos.h @@ -9,6 +9,26 @@ #include <linux/kernel.h> +/* K3_QOS_REG: Registers to configure the channel for a given endpoint */ + +#define K3_QOS_REG(base_reg, i) (base_reg + 0x100 + (i) * 4) + +#define K3_QOS_VAL(qos, orderid, asel, epriority, virtid, atype) \ + (qos << 0 | \ + orderid << 4 | \ + asel << 8 | \ + epriority << 12 | \ + virtid << 16 | \ + atype << 28) + +/* + * K3_QOS_GROUP_REG: Registers to set 1:1 mapping for orderID MAP1/MAP2 + * remap registers. + */ +#define K3_QOS_GROUP_REG(base_reg, i) (base_reg + (i) * 4) + +#define K3_QOS_GROUP_DEFAULT_VAL_LOW 0x76543210 +#define K3_QOS_GROUP_DEFAULT_VAL_HIGH 0xfedcba98 struct k3_qos_data { u32 reg; u32 val; |