diff options
author | 2020-12-07 18:51:41 +0800 | |
---|---|---|
committer | 2020-12-08 14:52:29 -0800 | |
commit | f119cc9818eb33b66e977ad3af75aef6500bbdc3 (patch) | |
tree | 74b97bd3de0117393a6affbe557eb7c78f9e5ca7 /include/linux/stmmac.h | |
parent | net: stmmac: delete the eee_ctrl_timer after napi disabled (diff) | |
download | linux-f119cc9818eb33b66e977ad3af75aef6500bbdc3.tar.gz linux-f119cc9818eb33b66e977ad3af75aef6500bbdc3.tar.bz2 linux-f119cc9818eb33b66e977ad3af75aef6500bbdc3.zip |
net: stmmac: overwrite the dma_cap.addr64 according to HW design
The current IP register MAC_HW_Feature1[ADDR64] only defines
32/40/64 bit width, but some SOCs support others like i.MX8MP
support 34 bits but it maps to 40 bits width in MAC_HW_Feature1[ADDR64].
So overwrite dma_cap.addr64 according to HW real design.
Fixes: 94abdad6974a ("net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip")
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 628e28903b8b..15ca6b4167cc 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -170,6 +170,7 @@ struct plat_stmmacenet_data { int unicast_filter_entries; int tx_fifo_size; int rx_fifo_size; + u32 addr64; u32 rx_queues_to_use; u32 tx_queues_to_use; u8 rx_sched_algorithm; |