aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/dwc_eth_qos.h
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2023-02-01 19:28:54 +0530
committerTom Rini <trini@konsulko.com>2023-02-10 12:50:00 -0500
commita962b7cff4bd9f16dabc75917dc76e9ff959ad13 (patch)
treed8e9e130cafedcaed79877ee4180de572f5670ec /drivers/net/dwc_eth_qos.h
parent9d53f335f615d6219396358dd0a8df5ab67a849a (diff)
net: dwc_eth_qos: Allow platform to override tx/rx_fifo_sz
The GMAC controller on QCS404 SoC (support added by upcoming patch) fails to work with maximum tx/rx_fifo_sz supported by the hardware (16K). So allow platforms to override FIFO size using corresponding DT node properties. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'drivers/net/dwc_eth_qos.h')
-rw-r--r--drivers/net/dwc_eth_qos.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dwc_eth_qos.h b/drivers/net/dwc_eth_qos.h
index 8fccd6f057..466a792de7 100644
--- a/drivers/net/dwc_eth_qos.h
+++ b/drivers/net/dwc_eth_qos.h
@@ -276,6 +276,7 @@ struct eqos_priv {
bool started;
bool reg_access_ok;
bool clk_ck_enabled;
+ unsigned int tx_fifo_sz, rx_fifo_sz;
};
void eqos_inval_desc_generic(void *desc);