net: ethernet: mtk_eth_soc: add support for in-SoC SRAM
authorDaniel Golle <daniel@makrotopia.org>
Tue, 22 Aug 2023 16:32:54 +0000 (17:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Aug 2023 02:23:22 +0000 (19:23 -0700)
commitebb1e4f9cf38da2139b37e24b5e10bff3dcc4187
tree7f6353a0e1a6938a40b6aecfed59c6e332c311aa
parent88c1e6efb7a58ff64ce196ec09d831263793c858
net: ethernet: mtk_eth_soc: add support for in-SoC SRAM

MT7981, MT7986 and MT7988 come with in-SoC SRAM dedicated for Ethernet
DMA rings. Support using the SRAM without breaking existing device tree
bindings, ie. only new SoC starting from MT7988 will have the SRAM
declared as additional resource in device tree. For MT7981 and MT7986
an offset on top of the main I/O base is used.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/e45e0f230c63ad58869e8fe35b95a2fb8925b625.1692721443.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h