Hi David,

> More device info at: http://wiki.openwrt.org/toh/tenda/w306r

I have applied this with some fixes, but I still have a question. See below.

> 
> Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
> ===================================================================
> --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (revision 31231)
> +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (working copy)
> @@ -104,6 +104,11 @@
>       select RALINK_DEV_GPIO_BUTTONS
>       select RALINK_DEV_GPIO_LEDS
>  
> +config RT305X_MACH_W306R_V20
> +     bool "Tenda W306R V2.0 board support"
> +     select RALINK_DEV_GPIO_BUTTONS
> +     select RALINK_DEV_GPIO_LEDS
> +
>  config RT305X_MACH_WL341V3
>       bool "Sitecom WL-341 v3 board support"
>       select RALINK_DEV_GPIO_BUTTONS
> Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile
> ===================================================================
> --- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile        
> (revision 31231)
> +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile        
> (working copy)
> @@ -29,6 +29,7 @@
>  obj-$(CONFIG_RT305X_MACH_RT_N10_PLUS)        += mach-rt-n10-plus.o
>  obj-$(CONFIG_RT305X_MACH_SL_R7205)   += mach-sl-r7205.o
>  obj-$(CONFIG_RT305X_MACH_V22RW_2X2)  += mach-v22rw-2x2.o
> +obj-$(CONFIG_RT305X_MACH_W306R_V20)  += mach-w306r-v20.o
>  obj-$(CONFIG_RT305X_MACH_W502U)              += mach-w502u.o
>  obj-$(CONFIG_RT305X_MACH_WCR150GN)   += mach-wcr150gn.o
>  obj-$(CONFIG_RT305X_MACH_WHR_G300N)  += mach-whr-g300n.o
> Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-w306r-v20.c
> ===================================================================
> --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-w306r-v20.c        
> (revision 0)
> +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-w306r-v20.c        
> (revision 0)
> @@ -0,0 +1,70 @@
> +/*
> + *  Tenda W306R V2.0 board support
> + *
> + *
> + *  This program is free software; you can redistribute it and/or modify it
> + *  under the terms of the GNU General Public License version 2 as published
> + *  by the Free Software Foundation.
> + */
> +
> +#include <linux/init.h>
> +#include <linux/platform_device.h>
> +#include <linux/ethtool.h>
> +
> +#include <asm/mach-ralink/machine.h>
> +#include <asm/mach-ralink/dev-gpio-buttons.h>
> +#include <asm/mach-ralink/dev-gpio-leds.h>
> +#include <asm/mach-ralink/rt305x.h>
> +#include <asm/mach-ralink/rt305x_regs.h>
> +#include <asm/mach-ralink/ramips_eth_platform.h>
> +
> +#include "devices.h"
> +
> +#define W306R_V20_GPIO_LED_SYS               a9

What is the correct GPIO number for this LED? 'a9' is not a valid numerical
value, so I have changed that to '9' to avoid build errors.

Thanks,
Gabor
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to