aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-07 19:36:30 +0000
commit87fb92ee03d6d3ceaa403d057a068001d8fecc1d (patch)
tree7bbe73e17a4b4cf0aebffdc71213144438993ac9 /target/linux/generic/files/drivers/net/phy/rtl8366rb.c
parent43196813d775921d16cc238fe805e438a24c529f (diff)
downloadupstream-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/rtl8366rb.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c3
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;