|
@@ -116,6 +116,17 @@ static void dwmac4_prog_mtl_tx_algorithms(struct mac_device_info *hw,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+static void dwmac4_set_mtl_tx_queue_weight(struct mac_device_info *hw,
|
|
|
+ u32 weight, u32 queue)
|
|
|
+{
|
|
|
+ void __iomem *ioaddr = hw->pcsr;
|
|
|
+ u32 value = readl(ioaddr + MTL_TXQX_WEIGHT_BASE_ADDR(queue));
|
|
|
+
|
|
|
+ value &= ~MTL_TXQ_WEIGHT_ISCQW_MASK;
|
|
|
+ value |= weight & MTL_TXQ_WEIGHT_ISCQW_MASK;
|
|
|
+ writel(value, ioaddr + MTL_TXQX_WEIGHT_BASE_ADDR(queue));
|
|
|
+}
|
|
|
+
|
|
|
static void dwmac4_dump_regs(struct mac_device_info *hw, u32 *reg_space)
|
|
|
{
|
|
|
void __iomem *ioaddr = hw->pcsr;
|
|
@@ -505,6 +516,7 @@ static const struct stmmac_ops dwmac4_ops = {
|
|
|
.rx_queue_enable = dwmac4_rx_queue_enable,
|
|
|
.prog_mtl_rx_algorithms = dwmac4_prog_mtl_rx_algorithms,
|
|
|
.prog_mtl_tx_algorithms = dwmac4_prog_mtl_tx_algorithms,
|
|
|
+ .set_mtl_tx_queue_weight = dwmac4_set_mtl_tx_queue_weight,
|
|
|
.dump_regs = dwmac4_dump_regs,
|
|
|
.host_irq_status = dwmac4_irq_status,
|
|
|
.flow_ctrl = dwmac4_flow_ctrl,
|