net: dsa: mt7530: Extend device data ready for adding a new hardware
authorLanden Chao <landen.chao@mediatek.com>
Fri, 11 Sep 2020 13:48:52 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 23:30:38 +0000 (16:30 -0700)
commit88bdef8be9f649ce4adf0d775a9a1cba7d5cc524
tree3c25938fe5dad1624fa572edf31b3c7268ea0aab
parentdc8ef938c94e327276d8240250e64de19cd5443c
net: dsa: mt7530: Extend device data ready for adding a new hardware

Add a structure holding required operations for each device such as device
initialization, PHY port read or write, a checker whether PHY interface is
supported on a certain port, MAC port setup for either bus pad or a
specific PHY interface.

The patch is done for ready adding a new hardware MT7531, and keep the
same setup logic of existing hardware.

Signed-off-by: Landen Chao <landen.chao@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h