* follows changeset 12881 :
https://dev.openwrt.org/changeset/12881

* allows the use of the red led on NanoStation2 :
https://dev.openwrt.org/ticket/4500

Signed-Off By: Frédéric Moulins <[email protected]>

diff --git a/target/linux/atheros/patches-2.6.28/100-board.patch 
b/target/linux/atheros/patches-2.6.28/100-board.patch
index 1d37f19..270e1a9 100644
--- a/target/linux/atheros/patches-2.6.28/100-board.patch
+++ b/target/linux/atheros/patches-2.6.28/100-board.patch
@@ -1,7 +1,7 @@
 Index: linux-2.6.28.10/arch/mips/Kconfig
 ===================================================================
---- linux-2.6.28.10.orig/arch/mips/Kconfig     2009-06-11 16:02:55.000000000 
+0200
-+++ linux-2.6.28.10/arch/mips/Kconfig  2009-06-11 16:03:00.000000000 +0200
+--- linux-2.6.28.10.orig/arch/mips/Kconfig     2009-06-11 17:24:32.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/Kconfig  2009-06-11 17:24:35.000000000 +0200
 @@ -60,6 +60,19 @@
        help
         Support for BCM47XX based boards
@@ -32,8 +32,8 @@ Index: linux-2.6.28.10/arch/mips/Kconfig
  source "arch/mips/emma/Kconfig"
 Index: linux-2.6.28.10/arch/mips/Makefile
 ===================================================================
---- linux-2.6.28.10.orig/arch/mips/Makefile    2009-06-11 16:02:57.000000000 
+0200
-+++ linux-2.6.28.10/arch/mips/Makefile 2009-06-11 16:03:00.000000000 +0200
+--- linux-2.6.28.10.orig/arch/mips/Makefile    2009-06-11 17:24:33.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/Makefile 2009-06-11 17:24:35.000000000 +0200
 @@ -285,6 +285,13 @@
  load-$(CONFIG_MIPS_XXS1500)   += 0xffffffff80100000
  
@@ -51,7 +51,7 @@ Index: linux-2.6.28.10/arch/mips/Makefile
 Index: linux-2.6.28.10/arch/mips/ar231x/Kconfig
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/Kconfig   2009-06-11 16:04:11.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/Kconfig   2009-06-11 18:05:09.000000000 
+0200
 @@ -0,0 +1,17 @@
 +config ATHEROS_AR5312
 +      bool "Atheros 5312/2312+ support"
@@ -73,7 +73,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/Kconfig
 Index: linux-2.6.28.10/arch/mips/ar231x/Makefile
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/Makefile  2009-06-11 16:04:11.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/Makefile  2009-06-11 18:05:09.000000000 
+0200
 @@ -0,0 +1,13 @@
 +#
 +# This file is subject to the terms and conditions of the GNU General Public
@@ -91,7 +91,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/Makefile
 Index: linux-2.6.28.10/arch/mips/ar231x/board.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/board.c   2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/board.c   2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,249 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -345,7 +345,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/board.c
 Index: linux-2.6.28.10/arch/mips/ar231x/prom.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/prom.c    2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/prom.c    2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,37 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -387,7 +387,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/prom.c
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x_platform.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x_platform.h        
2009-06-11 16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x_platform.h        
2009-06-11 17:24:35.000000000 +0200
 @@ -0,0 +1,83 @@
 +#ifndef __AR531X_PLATFORM_H
 +#define __AR531X_PLATFORM_H
@@ -475,7 +475,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x_platform.h
 Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/cpu-feature-overrides.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/cpu-feature-overrides.h  
2009-06-11 16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/cpu-feature-overrides.h  
2009-06-11 17:24:35.000000000 +0200
 @@ -0,0 +1,84 @@
 +/*
 + *  Atheros SoC specific CPU feature overrides
@@ -564,7 +564,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/cpu-feature-overrides.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/dma-coherence.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/dma-coherence.h  
2009-06-11 16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/dma-coherence.h  
2009-06-11 17:24:35.000000000 +0200
 @@ -0,0 +1,41 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -610,7 +610,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/dma-coherence.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/gpio.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/gpio.h   2009-06-11 
16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/gpio.h   2009-06-11 
17:24:35.000000000 +0200
 @@ -0,0 +1,79 @@
 +#ifndef _ATHEROS_GPIO_H_
 +#define _ATHEROS_GPIO_H_
@@ -694,7 +694,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/gpio.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/reset.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/reset.h  2009-06-11 
16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/reset.h  2009-06-11 
17:24:35.000000000 +0200
 @@ -0,0 +1,6 @@
 +#ifndef __AR531X_RESET_H
 +#define __AR531X_RESET_H
@@ -705,7 +705,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/reset.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/war.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/war.h    2009-06-11 
16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/war.h    2009-06-11 
17:24:35.000000000 +0200
 @@ -0,0 +1,25 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -735,7 +735,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/war.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar2315_regs.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar2315_regs.h    
2009-06-11 16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar2315_regs.h    
2009-06-11 17:24:35.000000000 +0200
 @@ -0,0 +1,580 @@
 +/*
 + * Register definitions for AR2315+
@@ -1320,7 +1320,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar2315_regs.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar5312_regs.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar5312_regs.h    
2009-06-11 16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar5312_regs.h    
2009-06-11 17:24:35.000000000 +0200
 @@ -0,0 +1,236 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -1561,7 +1561,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar5312_regs.h
 Index: linux-2.6.28.10/arch/mips/ar231x/ar5312.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/ar5312.c  2009-06-11 16:23:37.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/ar5312.c  2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,588 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
@@ -2154,8 +2154,8 @@ Index: linux-2.6.28.10/arch/mips/ar231x/ar5312.c
 Index: linux-2.6.28.10/arch/mips/ar231x/ar2315.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/ar2315.c  2009-06-11 16:04:11.000000000 
+0200
-@@ -0,0 +1,677 @@
++++ linux-2.6.28.10/arch/mips/ar231x/ar2315.c  2009-06-11 18:06:20.000000000 
+0200
+@@ -0,0 +1,682 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
@@ -2642,7 +2642,12 @@ Index: linux-2.6.28.10/arch/mips/ar231x/ar2315.c
 +      int i, led = 0;
 +
 +      ar2315_led_data.num_leds = 0;
-+      for(i = 1; i < 8; i++)
++      /* GPIO 0 drives the chip select line of the SPI flash on most AR2317 
boards.
++       * Don't register it as LED.
++       */
++      for(i = (mips_machtype == MACH_ATHEROS_AR2317 ? 1 : 0);
++              i < 8;
++              i++)
 +      {
 +              if((i == AR2315_RESET_GPIO) ||
 +                 (i == ar231x_board.config->resetConfigGpio))
@@ -2836,7 +2841,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/ar2315.c
 Index: linux-2.6.28.10/arch/mips/ar231x/ar2315.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/ar2315.h  2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/ar2315.h  2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,37 @@
 +#ifndef __AR2315_H
 +#define __AR2315_H
@@ -2878,7 +2883,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/ar2315.h
 Index: linux-2.6.28.10/arch/mips/ar231x/ar5312.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/ar5312.h  2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/ar5312.h  2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,38 @@
 +#ifndef __AR5312_H
 +#define __AR5312_H
@@ -2921,7 +2926,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/ar5312.h
 Index: linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x.h 2009-06-11 
16:03:00.000000000 +0200
++++ linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x.h 2009-06-11 
17:24:35.000000000 +0200
 @@ -0,0 +1,54 @@
 +#ifndef __AR531X_H
 +#define __AR531X_H
@@ -2980,7 +2985,7 @@ Index: 
linux-2.6.28.10/arch/mips/include/asm/mach-ar231x/ar231x.h
 Index: linux-2.6.28.10/arch/mips/ar231x/devices.h
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/devices.h 2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/devices.h 2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,27 @@
 +#ifndef __AR231X_DEVICES_H
 +#define __AR231X_DEVICES_H
@@ -3012,7 +3017,7 @@ Index: linux-2.6.28.10/arch/mips/ar231x/devices.h
 Index: linux-2.6.28.10/arch/mips/ar231x/devices.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.28.10/arch/mips/ar231x/devices.c 2009-06-11 16:03:00.000000000 
+0200
++++ linux-2.6.28.10/arch/mips/ar231x/devices.c 2009-06-11 17:24:35.000000000 
+0200
 @@ -0,0 +1,174 @@
 +#include <linux/kernel.h>
 +#include <linux/init.h>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to