]> git.baikalelectronics.ru Git - uboot.git/commit
eth: mtk-eth: enable mt7629 sgmii mode support in mediatek eth driver
authorMarkLee <Mark-MC.Lee@mediatek.com>
Fri, 19 Jun 2020 11:17:16 +0000 (19:17 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 02:44:00 +0000 (22:44 -0400)
commitb6553268d57437afe93c9c1dc593e6c3d61d1e9e
treec461a91d4c2746959b5ed2e29be5de92622975d8
parenteef5d69b6fe8ed9a0bb80815e66351abe957a339
eth: mtk-eth: enable mt7629 sgmii mode support in mediatek eth driver

The sgmii mode init flow is almost the same for all mediatek SoC, the
only difference is the register offset(SGMSYS_GEN2_SPEED) is 0x2028
in the old chip(mt7622) but changed to 0x128 for the newer chip(mt7629
and the following chips).

Signed-off-by: MarkLee <Mark-MC.Lee@mediatek.com>
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h