net: ethernet: mediatek: add more resets for internal ethernet circuit block
authorSean Wang <sean.wang@mediatek.com>
Wed, 14 Sep 2016 15:13:20 +0000 (23:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 06:22:58 +0000 (02:22 -0400)
commit2a8307aab373684e8c1067695310db4438621868
tree7fb1a20fb8245399e14674b0a53038bc780198d5
parent9ea4d311509fc11128a464d86745beeafd575051
net: ethernet: mediatek: add more resets for internal ethernet circuit block

struct mtk_eth has already contained struct regmap ethsys pointer
to the address range of the internal circuit reset, so we reuse it
to reset more internal blocks on ethernet hardware such as packet
processing engine (PPE) and frame engine (FE) instead of rstc which
deals with FE only.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h