generic: ar8216: add support for ar724x/ar933x builtin switch
authorChuanhong Guo <gch981213@gmail.com>
Thu, 10 Jan 2019 15:53:23 +0000 (23:53 +0800)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Mar 2019 00:44:26 +0000 (01:44 +0100)
commit0598ec0abc3581e162ec62b81ef8f8326467c6c0
tree136fc2ead878ccf39bd1f1590d72fc86f3d38d56
parentad8db1fa2e9111b22e94fbd149b27dee33291ff8
generic: ar8216: add support for ar724x/ar933x builtin switch

This builtin switch is a bugless ar8216 with different mib counters
and gigabit cpu port.
Atheros uses the same device ID and it's impossible to distinguish
the standalone one and the builtin one. So we add support to mdio
device probe only.

This switch doesn't have buggy vlan tag so it's not needed to enable
atheros header. This commit changed ar8216_setup_port so that it can
be reused for this switch.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h