diff options
author | John Crispin <blogic@openwrt.org> | 2012-11-13 08:54:14 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-13 08:54:14 +0000 |
commit | 1d0ec1e9605011cdee7388dc9f5e84ca175c175e (patch) | |
tree | 1db5d1df8a6666ab5febdd161d790b639867662e /target/linux/lantiq/files-3.3 | |
parent | d8bd9f9b1533c345ef9210897a0066b6ec00264c (diff) | |
download | master-187ad058-1d0ec1e9605011cdee7388dc9f5e84ca175c175e.tar.gz master-187ad058-1d0ec1e9605011cdee7388dc9f5e84ca175c175e.tar.bz2 master-187ad058-1d0ec1e9605011cdee7388dc9f5e84ca175c175e.zip |
[lantiq] fixes ar9 / dgn3500 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34180 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/files-3.3')
-rw-r--r-- | target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-netgear.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-netgear.c b/target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-netgear.c index 29b0728102..bb28537bc0 100644 --- a/target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-netgear.c +++ b/target/linux/lantiq/files-3.3/arch/mips/lantiq/xway/mach-netgear.c @@ -22,6 +22,7 @@ #include <linux/etherdevice.h> #include <linux/kobject.h> #include <linux/sysfs.h> +#include <linux/rtl8366.h> #include <lantiq_soc.h> #include <irq.h> @@ -149,6 +150,22 @@ static int __init setup_ethaddr(char *str) } __setup("ethaddr=", setup_ethaddr); +#define smi_SCK 37 +#define smi_SDA 35 + +static struct rtl8366_platform_data rtl8366rb_data = { + .gpio_sda = smi_SDA, + .gpio_sck = smi_SCK, +}; + +static struct platform_device rtl8366rb_device = { + .name = RTL8366RB_DRIVER_NAME, + .id = -1, + .dev = { + .platform_data = &rtl8366rb_data, + } +}; + static u16 dgn3500_eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS] = {0}; static ssize_t ath_eeprom_read(struct file *filp, struct kobject *kobj, @@ -231,6 +248,7 @@ static void __init dgn3500_init(void) ltq_pci_ath_fixup(14, dgn3500_eeprom_data); /* The usb power is always enabled, protected by a fuse */ xway_register_dwc(-1); + platform_device_register(&rtl8366rb_device); } MIPS_MACHINE(LANTIQ_MACH_DGN3500B, |