]> git.baikalelectronics.ru Git - uboot.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)
commitdbe40e6e65d896dd194429bd33900eaeb43585b1
treec157e650dedbf88123ee2bbbf38c06b87ca7116e
parentba2d3551fa53ee36f281652b0e1c4fedb6a17fa4
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