diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-07 19:36:30 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-07 19:36:30 +0000 |
commit | 87fb92ee03d6d3ceaa403d057a068001d8fecc1d (patch) | |
tree | 7bbe73e17a4b4cf0aebffdc71213144438993ac9 /target/linux/generic/files/drivers/net/phy/rtl8366s.c | |
parent | 43196813d775921d16cc238fe805e438a24c529f (diff) | |
download | upstream-87fb92ee03d6d3ceaa403d057a068001d8fecc1d.tar.gz upstream-87fb92ee03d6d3ceaa403d057a068001d8fecc1d.tar.bz2 upstream-87fb92ee03d6d3ceaa403d057a068001d8fecc1d.zip |
generic: rtl8366: preparing for RTL8367 support
* make clock delay configurable
* make read,write commands configurable
* use u16 for member and untag fields
SVN-Revision: 29677
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366s.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366s.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c index 30916589b3..27e9aa45e4 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c @@ -1127,6 +1127,9 @@ static int __devinit rtl8366s_probe(struct platform_device *pdev) smi->gpio_sda = pdata->gpio_sda; smi->gpio_sck = pdata->gpio_sck; + smi->clk_delay = 10; + smi->cmd_read = 0xa9; + smi->cmd_write = 0xa8; smi->ops = &rtl8366s_smi_ops; smi->cpu_port = RTL8366S_PORT_NUM_CPU; smi->num_ports = RTL8366S_NUM_PORTS; |