From 545e0b092cc82842e1cbd3467262595957ff7144 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Sat, 7 Aug 2010 15:57:44 +0200 Subject: [PATCH] openwrt: enable ar2315_gpio_leds platform registration --- .../patches/100.spi_gpio_support.patch | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/mote/v2/openwrt/patches/100.spi_gpio_support.patch b/mote/v2/openwrt/patches/100.spi_gpio_support.patch index f809e9d..c73e146 100644 --- a/mote/v2/openwrt/patches/100.spi_gpio_support.patch +++ b/mote/v2/openwrt/patches/100.spi_gpio_support.patch @@ -1,5 +1,5 @@ ---- openwrt/10.03/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-06-12 13:10:09.887070347 +0200 -+++ openwrt/10.03/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-07-19 21:51:56.000000000 +0200 +--- /tmp/build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-08-07 10:15:11.696355750 +0200 ++++ build_dir/linux-atheros/linux-2.6.30.10/arch/mips/ar231x/ar2315.c 2010-08-07 10:33:47.588393782 +0200 @@ -36,6 +36,11 @@ #include "devices.h" #include "ar2315.h" @@ -50,16 +50,15 @@ #define SPI_FLASH_CTL 0x00 #define SPI_FLASH_OPCODE 0x04 #define SPI_FLASH_DATA 0x08 -@@ -519,7 +555,7 @@ - led++; +@@ -520,6 +556,7 @@ } ar2315_led_data.num_leds = led; -- platform_device_register(&ar2315_gpio_leds); + platform_device_register(&ar2315_gpio_leds); + platform_device_register(&ar2315_spi_gpio); } #else static inline void ar2315_init_gpio(void) -@@ -530,6 +566,8 @@ +@@ -530,6 +567,8 @@ int __init ar2315_init_devices(void) { @@ -68,15 +67,7 @@ if (!is_2315()) return 0; -@@ -537,13 +575,19 @@ - ar231x_find_config(ar2315_flash_limit()); - ar2315_eth_data.macaddr = ar231x_board.config->enet0_mac; - -- ar2315_init_gpio(); -+ // ar2315_init_gpio(); - platform_device_register(&ar2315_wdt); - platform_device_register(&ar2315_spiflash); - ar231x_add_ethernet(0, AR2315_ENET0, AR2315_IRQ_ENET0_INTRS, +@@ -544,6 +583,12 @@ &ar2315_eth_data); ar231x_add_wmac(0, AR2315_WLAN0, AR2315_IRQ_WLAN0_INTRS); @@ -88,3 +79,4 @@ + return 0; } +