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 | 7005c737ab7817fb8e059ec2fdb4def859468324 (patch) | |
tree | 3520cfea51f2aacaa9915c0d1eccf045a04cdc50 /target/linux/generic/files/drivers/net/phy/rtl8366s.c | |
parent | 8ac68711cce8d1801788fb32c452a51fe8402f3b (diff) | |
download | upstream-7005c737ab7817fb8e059ec2fdb4def859468324.tar.gz upstream-7005c737ab7817fb8e059ec2fdb4def859468324.tar.bz2 upstream-7005c737ab7817fb8e059ec2fdb4def859468324.zip |
generic: rtl8366: preparing for RTL8367 support
* make clock delay configurable
* make read,write commands configurable
* use u16 for member and untag fields
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29677 3c298f89-4303-0410-b956-a3cf2f4a3e73
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; |