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/rtl8366rb.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/rtl8366rb.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366rb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c index b337408b5a..49dd03e274 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c @@ -1247,6 +1247,9 @@ static int __devinit rtl8366rb_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 = &rtl8366rb_smi_ops; smi->cpu_port = RTL8366RB_PORT_NUM_CPU; smi->num_ports = RTL8366RB_NUM_PORTS; |