]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mediatek: use a struct to cover variations of all SoCs
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 9 Sep 2022 11:59:21 +0000 (19:59 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:09:15 +0000 (15:09 -0400)
commit625967254c3983730e998b5f302b70390bb9e770
treec157e650dedbf88123ee2bbbf38c06b87ca7116e
parentfccf960e1c5e31c1430f756e3a5db9c21f195dd2
net: mediatek: use a struct to cover variations of all SoCs

Using a single soc id to control different initialization and TX/RX flow
for all SoCs is not extensible if more hardware variations are added in
the future.

This patch introduces a struct to replace the original mtk_soc to allow
the driver be able handle newer hardwares.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h