From e0b80e41eb0b24e76285b9355725d2f4f66ada50 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 22 Jan 2012 22:38:19 +0000 Subject: ar71xx: add initial support for 3.2 Tested on the following boards: ALFA AP96 TL-MR3220 v1 TL-WR1043ND v1 TL-WR2543ND v1 TL-WR703N v1 TL-WR741ND v1 TL-WR741ND v4 WNDR3700 v1 WZR-HP-G300NH git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29868 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-3.2/304-spi-ap83-3.2-fixes.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 target/linux/ar71xx/patches-3.2/304-spi-ap83-3.2-fixes.patch (limited to 'target/linux/ar71xx/patches-3.2/304-spi-ap83-3.2-fixes.patch') diff --git a/target/linux/ar71xx/patches-3.2/304-spi-ap83-3.2-fixes.patch b/target/linux/ar71xx/patches-3.2/304-spi-ap83-3.2-fixes.patch new file mode 100644 index 000000000..7a9d686f2 --- /dev/null +++ b/target/linux/ar71xx/patches-3.2/304-spi-ap83-3.2-fixes.patch @@ -0,0 +1,47 @@ +--- a/drivers/spi/spi-ap83.c ++++ b/drivers/spi/spi-ap83.c +@@ -10,6 +10,7 @@ + */ + + #include ++#include + #include + #include + #include +@@ -21,8 +22,7 @@ + #include + #include + +-#include +-#include ++#include + + #define DRV_DESC "Atheros AP83 board SPI Controller driver" + #define DRV_VERSION "0.1.0" +@@ -106,7 +106,7 @@ static void ap83_spi_chipselect(struct s + dev_dbg(&spi->dev, "set CS to %d\n", (on) ? 0 : 1); + + if (on) { +- ar71xx_flash_acquire(); ++ ath79_flash_acquire(); + + sp->addr = 0; + ap83_spi_rr(sp, sp->addr); +@@ -114,7 +114,7 @@ static void ap83_spi_chipselect(struct s + gpio_set_value(AP83_SPI_GPIO_CS, 0); + } else { + gpio_set_value(AP83_SPI_GPIO_CS, 1); +- ar71xx_flash_release(); ++ ath79_flash_release(); + } + } + +@@ -127,7 +127,7 @@ static void ap83_spi_chipselect(struct s + + #define EXPAND_BITBANG_TXRX + #include +-#include "spi_bitbang_txrx.h" ++#include "spi-bitbang-txrx.h" + + static u32 ap83_spi_txrx_mode0(struct spi_device *spi, + unsigned nsecs, u32 word, u8 bits) -- cgit v1.2.3