From a5972cdae83faed121f2df2f71b9c7a2dbe048aa Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 22 Aug 2005 01:57:20 +0000 Subject: add wrt54g v4 support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1715 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux-2.4/patches/brcm/004-diag_led.patch | 33 +++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'openwrt') diff --git a/openwrt/target/linux/linux-2.4/patches/brcm/004-diag_led.patch b/openwrt/target/linux/linux-2.4/patches/brcm/004-diag_led.patch index 77fb28979..7ec20df57 100644 --- a/openwrt/target/linux/linux-2.4/patches/brcm/004-diag_led.patch +++ b/openwrt/target/linux/linux-2.4/patches/brcm/004-diag_led.patch @@ -1,8 +1,20 @@ -diff -Nur linux-2.4.30/drivers/net/diag/Makefile linux-2.4.30.openwrt/drivers/net/diag/Makefile ---- linux-2.4.30/drivers/net/diag/Makefile 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.4.30.openwrt/drivers/net/diag/Makefile 2005-06-28 11:35:26.000000000 +0200 +diff -urN linux-2.4.30.dev/drivers/net/Makefile linux-2.4.30.dev2/drivers/net/Makefile +--- linux-2.4.30.dev/drivers/net/Makefile 2005-08-22 01:41:45.930653216 +0200 ++++ linux-2.4.30.dev2/drivers/net/Makefile 2005-08-22 01:58:04.162939304 +0200 +@@ -41,6 +41,8 @@ + obj-$(CONFIG_ISDN) += slhc.o + endif + ++subdir-m += diag ++ + subdir-$(CONFIG_HND) += hnd + subdir-$(CONFIG_ET) += et + subdir-$(CONFIG_WL) += wl +diff -urN linux-2.4.30.dev/drivers/net/diag/Makefile linux-2.4.30.dev2/drivers/net/diag/Makefile +--- linux-2.4.30.dev/drivers/net/diag/Makefile 1970-01-01 01:00:00.000000000 +0100 ++++ linux-2.4.30.dev2/drivers/net/diag/Makefile 2005-08-22 00:12:23.655170000 +0200 @@ -0,0 +1,13 @@ -+#$Id$ ++#$Id: 005-diag_led.patch,v 1.1.2.1 2005/08/22 01:56:06 nbd Exp $ + +EXTRA_CFLAGS := -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCMDRIVER + @@ -15,10 +27,10 @@ diff -Nur linux-2.4.30/drivers/net/diag/Makefile linux-2.4.30.openwrt/drivers/ne +obj-m := $(O_TARGET) + +include $(TOPDIR)/Rules.make -diff -Nur linux-2.4.30/drivers/net/diag/diag_led.c linux-2.4.30.openwrt/drivers/net/diag/diag_led.c ---- linux-2.4.30/drivers/net/diag/diag_led.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.4.30.openwrt/drivers/net/diag/diag_led.c 2005-06-28 11:35:26.000000000 +0200 -@@ -0,0 +1,244 @@ +diff -urN linux-2.4.30.dev/drivers/net/diag/diag_led.c linux-2.4.30.dev2/drivers/net/diag/diag_led.c +--- linux-2.4.30.dev/drivers/net/diag/diag_led.c 1970-01-01 01:00:00.000000000 +0100 ++++ linux-2.4.30.dev2/drivers/net/diag/diag_led.c 2005-08-22 03:37:58.112053448 +0200 +@@ -0,0 +1,245 @@ +/* + * diag_led.c - replacement diag module + * @@ -39,7 +51,7 @@ diff -Nur linux-2.4.30/drivers/net/diag/diag_led.c linux-2.4.30.openwrt/drivers/ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * -+ * $Id: diag_led.c,v 1.5 2005/04/18 09:05:24 mbm Exp $ ++ * $Id: 005-diag_led.patch,v 1.1.2.1 2005/08/22 01:56:06 nbd Exp $ + */ + +/* @@ -191,7 +203,8 @@ diff -Nur linux-2.4.30/drivers/net/diag/diag_led.c linux-2.4.30.openwrt/drivers/ + set_diag=ignore; + set_dmz=ignore; + -+ if ((board_type & 0xf00) == 0x400) { ++ buf=nvram_get("boardrev"); ++ if (((board_type & 0xf00) == 0x400) && strcmp(buf,"0x10")) { + buf=nvram_get("boardtype")?:""; + if (!strcmp(buf,"bcm94710dev")) { + buf=nvram_get("boardnum")?:""; -- cgit v1.2.3