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)
commit4511da99b967a7598b2352dde3acf82cacb11978
tree717a98775c3ceb320dd019fd5df55304d8822c6e
parentd48ba78aa49bb20e27cf3bc6bf3c4f9a57d194b3
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>
SVN-Revision: 21721
target/linux/generic-2.6/files/drivers/net/phy/ip175c.c