diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2020-09-10 23:28:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-11 17:34:39 -0700 |
commit | 23015ff1a0f33a296572df0fc23baf97c1f7f86f (patch) | |
tree | ae5c88372f39788a129b3a63555bf1defe61a193 /drivers/net/ethernet/ti/am65-cpsw-nuss.h | |
parent | 186f5c99b09de8adb8945a19755ce2622b91baf6 (diff) |
net: ethernet: ti: am65-cpsw: enable hw auto ageing
The AM65x ALE supports HW auto-ageing which can be enabled by programming
ageing interval in ALE_AGING_TIMER register. For this CPSW fck_clk
frequency has to be know by ALE.
This patch extends cpsw_ale_params with bus_freq field and enables ALE HW
auto ageing for AM65x CPSW2G ALE version.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/am65-cpsw-nuss.h')
-rw-r--r-- | drivers/net/ethernet/ti/am65-cpsw-nuss.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.h b/drivers/net/ethernet/ti/am65-cpsw-nuss.h index 94f666ea0e53..993e1d4d3222 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.h +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.h @@ -106,6 +106,7 @@ struct am65_cpsw_common { u32 nuss_ver; u32 cpsw_ver; + unsigned long bus_freq; bool pf_p0_rx_ptype_rrobin; struct am65_cpts *cpts; int est_enabled; |