ip17xx: Add support for IP175D
authorGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:51 +0000 (20:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:51 +0000 (20:18 +0000)
commit1746c45d516150f56a1e45532737472b99f55d6a
treeac43e989eecd63b1fad19a4747d0cbbd9a9e4269
parent6ae9f46b7fd6c19699e169eba0b3969e8c6723c0
ip17xx: Add support for IP175D

Add support for the IP175D chip. Since the register set is vastly different
from the previous models, we cannot not use the register number tables in struct
register_mappings (except for VLAN_DEFAULT_TAG_REG), so we supply a different
set of low-level functions.

Unlike with the previous models, we keep the VLAN setup in our state structure
instead of querying the hardware (it would be much harder in case of IP175D,
because the mapping between hardware and software state is not 1:1). Therefore,
get_flags() and get_state() are no-ops.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21721 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic-2.6/files/drivers/net/phy/ip175c.c