Changeset 32607


Ignore:
Timestamp:
2012-07-05T10:26:48+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: add initial support for the Qualcomm Atheros AP136 board

Location:
trunk/target/linux/ar71xx
Files:
2 added
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/config-3.3

    r32459 r32607  
    2424CONFIG_ATH79_MACH_AP113=y 
    2525CONFIG_ATH79_MACH_AP121=y 
     26CONFIG_ATH79_MACH_AP136=y 
    2627CONFIG_ATH79_MACH_AP81=y 
    2728CONFIG_ATH79_MACH_AP83=y 
     
    202203CONFIG_SOC_AR933X=y 
    203204CONFIG_SOC_AR934X=y 
     205CONFIG_SOC_QCA955X=y 
    204206CONFIG_SPI=y 
    205207CONFIG_SPI_AP83=y 
  • trunk/target/linux/ar71xx/patches-3.3/200-spi-ath79-add-delay-between-SCK-changes.patch

    r31602 r32607  
    1 From 5e5ffd34e38fbbfa0a78833f35aa3c4d5d77e122 Mon Sep 17 00:00:00 2001 
     1From cbb3ade4765bc715b5c2eae4a7b6eaf3ff7ad958 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Wed, 11 Jan 2012 20:06:35 +0100 
    4 Subject: [PATCH 41/47] spi/ath79: add delay between SCK changes 
     4Subject: [PATCH 28/34] spi/ath79: add delay between SCK changes 
    55 
    66The driver uses the "as fast as it can" approach 
  • trunk/target/linux/ar71xx/patches-3.3/201-spi-ath79-add-missing-HIGH-LOW-SCK-transition.patch

    r31602 r32607  
    1 From 52fa804e11c1722ec56de2e3888a9f8dfb96404b Mon Sep 17 00:00:00 2001 
     1From bcb0fdebc08f828b54d0a2eb74a9d1378701a8e0 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Wed, 11 Jan 2012 20:33:41 +0100 
    4 Subject: [PATCH 42/47] spi/ath79: add missing HIGH->LOW SCK transition 
     4Subject: [PATCH 29/34] spi/ath79: add missing HIGH->LOW SCK transition 
    55 
    66Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/target/linux/ar71xx/patches-3.3/202-spi-ath79-remove-superfluous-chip-select-code.patch

    r31602 r32607  
    1 From 3ba7fd81798169e8d40bc7e4800c6a0e691c40b7 Mon Sep 17 00:00:00 2001 
     1From 06752f9b169493cd1323f8337c147ad2dd31025c Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 9 Jan 2012 15:03:28 +0100 
    4 Subject: [PATCH 43/47] spi/ath79: remove superfluous chip select code 
     4Subject: [PATCH 30/34] spi/ath79: remove superfluous chip select code 
    55 
    66The spi_bitbang driver calls the chipselect function 
  • trunk/target/linux/ar71xx/patches-3.3/203-spi-ath79-use-gpio_request_one.patch

    r31602 r32607  
    1 From 07f515fc0f69d18110cb2369e0b5d0fb4bdd7dfa Mon Sep 17 00:00:00 2001 
     1From 6bd876a46b977643f27d2cc63f49e1bc84b78134 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 9 Jan 2012 15:04:21 +0100 
    4 Subject: [PATCH 44/47] spi/ath79: use gpio_request_one 
     4Subject: [PATCH 31/34] spi/ath79: use gpio_request_one 
    55 
    66Use gpio_request_one() instead of multiple gpiolib calls. 
  • trunk/target/linux/ar71xx/patches-3.3/204-spi-ath79-avoid-multiple-initialization-of-the-SPI-c.patch

    r31602 r32607  
    1 From 47fdda225880ab0aaa8a75f61991a72fade591ab Mon Sep 17 00:00:00 2001 
     1From e63ceaa0c4f7be0498cd452981073d3ce8e7d1f5 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Mon, 9 Jan 2012 15:00:46 +0100 
    4 Subject: [PATCH 45/47] spi/ath79: avoid multiple initialization of the SPI controller 
     4Subject: [PATCH 32/34] spi/ath79: avoid multiple initialization of the SPI controller 
    55 
    66Currently we are initializing the SPI controller in 
  • trunk/target/linux/ar71xx/patches-3.3/205-spi-ath79-add-shutdown-handler.patch

    r31602 r32607  
    1 From 8f30eb1354f54684d1d09599b2466f1a0e69d9c3 Mon Sep 17 00:00:00 2001 
     1From dab305def68a9ea28c1c0ca2fc20bba645944914 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Wed, 11 Jan 2012 22:19:32 +0100 
    4 Subject: [PATCH 46/47] spi/ath79: add shutdown handler 
     4Subject: [PATCH 33/34] spi/ath79: add shutdown handler 
    55 
    66Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
  • trunk/target/linux/ar71xx/patches-3.3/206-spi-ath79-make-chipselect-logic-more-flexible.patch

    r31602 r32607  
    1 From 16535fe56591ff85acd6776f53ff515799b037ba Mon Sep 17 00:00:00 2001 
     1From 7008284716403237f6bc7d7590b3ed073555bd56 Mon Sep 17 00:00:00 2001 
    22From: Gabor Juhos <juhosg@openwrt.org> 
    33Date: Wed, 11 Jan 2012 22:25:11 +0100 
    4 Subject: [PATCH 47/47] spi/ath79: make chipselect logic more flexible 
     4Subject: [PATCH 34/34] spi/ath79: make chipselect logic more flexible 
    55 
    66Signed-off-by: Gabor Juhos <juhosg@openwrt.org> 
    77--- 
    88 arch/mips/ath79/mach-ap121.c                       |    6 ++ 
     9 arch/mips/ath79/mach-ap136.c                       |    6 ++ 
    910 arch/mips/ath79/mach-ap81.c                        |    6 ++ 
    1011 arch/mips/ath79/mach-db120.c                       |    6 ++ 
     
    1213 arch/mips/ath79/mach-ubnt-xm.c                     |    6 ++ 
    1314 .../include/asm/mach-ath79/ath79_spi_platform.h    |    8 ++- 
    14  drivers/spi/spi-ath79.c                            |   70 +++++++++++++------- 
    15  7 files changed, 82 insertions(+), 26 deletions(-) 
     15 drivers/spi/spi-ath79.c                            |   67 +++++++++++++------- 
     16 8 files changed, 88 insertions(+), 23 deletions(-) 
    1617 
    1718--- a/arch/mips/ath79/mach-ap121.c 
     
    3334                .modalias       = "mx25l1606e", 
    3435+               .controller_data = &ap121_spi0_data, 
     36        } 
     37 }; 
     38  
     39--- a/arch/mips/ath79/mach-ap136.c 
     40+++ b/arch/mips/ath79/mach-ap136.c 
     41@@ -98,12 +98,18 @@ static struct gpio_keys_button ap136_gpi 
     42        }, 
     43 }; 
     44  
     45+static struct ath79_spi_controller_data ap136_spi0_data = { 
     46+       .cs_type = ATH79_SPI_CS_TYPE_INTERNAL, 
     47+       .cs_line = 0, 
     48+}; 
     49+ 
     50 static struct spi_board_info ap136_spi_info[] = { 
     51        { 
     52                .bus_num        = 0, 
     53                .chip_select    = 0, 
     54                .max_speed_hz   = 25000000, 
     55                .modalias       = "mx25l6405d", 
     56+               .controller_data = &ap136_spi0_data, 
    3557        } 
    3658 }; 
  • trunk/target/linux/ar71xx/patches-3.3/602-MIPS-ath79-add-openwrt-stuff.patch

    r32606 r32607  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -94,6 +94,20 @@ config SOC_QCA955X 
     3@@ -106,6 +106,20 @@ config SOC_QCA955X 
    44        select PCI_AR724X if PCI 
    55        def_bool n 
     
    2222        def_bool n 
    2323  
    24 @@ -113,4 +127,10 @@ config ATH79_DEV_WMAC 
     24@@ -125,4 +139,10 @@ config ATH79_DEV_WMAC 
    2525        depends on (SOC_AR913X || SOC_AR933X || SOC_AR934X || SOC_QCA955X) 
    2626        def_bool n 
  • trunk/target/linux/ar71xx/patches-3.3/603-MIPS-ath79-ap121-fixes.patch

    r31016 r32607  
    159159        ATH79_MACH_AP121,               /* Atheros AP121 reference board */ 
    160160+       ATH79_MACH_AP121_MINI,          /* Atheros AP121-MINI reference board */ 
     161        ATH79_MACH_AP136,               /* Atheros AP136 reference board */ 
    161162        ATH79_MACH_AP81,                /* Atheros AP81 reference board */ 
    162163        ATH79_MACH_DB120,               /* Atheros DB120 reference board */ 
    163         ATH79_MACH_PB44,                /* Atheros PB44 reference board */ 
  • trunk/target/linux/ar71xx/patches-3.3/604-MIPS-ath79-ap81-fixes.patch

    r30410 r32607  
    115115--- a/arch/mips/ath79/Kconfig 
    116116+++ b/arch/mips/ath79/Kconfig 
    117 @@ -18,9 +18,10 @@ config ATH79_MACH_AP121 
     117@@ -30,9 +30,10 @@ config ATH79_MACH_AP136 
    118118 config ATH79_MACH_AP81 
    119119        bool "Atheros AP81 reference board" 
  • trunk/target/linux/ar71xx/patches-3.3/605-MIPS-ath79-db120-fixes.patch

    r32457 r32607  
    201201--- a/arch/mips/ath79/Kconfig 
    202202+++ b/arch/mips/ath79/Kconfig 
    203 @@ -31,9 +31,11 @@ config ATH79_MACH_AP81 
     203@@ -43,9 +43,11 @@ config ATH79_MACH_AP81 
    204204 config ATH79_MACH_DB120 
    205205        bool "Atheros DB120 reference board" 
  • trunk/target/linux/ar71xx/patches-3.3/606-MIPS-ath79-pb44-fixes.patch

    r30410 r32607  
    144144--- a/arch/mips/ath79/Kconfig 
    145145+++ b/arch/mips/ath79/Kconfig 
    146 @@ -45,6 +45,7 @@ config ATH79_MACH_DB120 
     146@@ -57,6 +57,7 @@ config ATH79_MACH_DB120 
    147147 config ATH79_MACH_PB44 
    148148        bool "Atheros PB44 reference board" 
  • trunk/target/linux/ar71xx/patches-3.3/607-MIPS-ath79-ubnt-xm-fixes.patch

    r31602 r32607  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -57,9 +57,10 @@ config ATH79_MACH_PB44 
     3@@ -69,9 +69,10 @@ config ATH79_MACH_PB44 
    44 config ATH79_MACH_UBNT_XM 
    55        bool "Ubiquiti Networks XM (rev 1.0) board" 
  • trunk/target/linux/ar71xx/patches-3.3/608-MIPS-ath79-ubnt-xm-add-more-boards.patch

    r30410 r32607  
    160160--- a/arch/mips/ath79/Kconfig 
    161161+++ b/arch/mips/ath79/Kconfig 
    162 @@ -58,9 +58,11 @@ config ATH79_MACH_UBNT_XM 
     162@@ -70,9 +70,11 @@ config ATH79_MACH_UBNT_XM 
    163163        bool "Ubiquiti Networks XM (rev 1.0) board" 
    164164        select SOC_AR724X 
     
    174174--- a/arch/mips/ath79/machtypes.h 
    175175+++ b/arch/mips/ath79/machtypes.h 
    176 @@ -21,6 +21,11 @@ enum ath79_mach_type { 
     176@@ -22,6 +22,11 @@ enum ath79_mach_type { 
    177177        ATH79_MACH_AP81,                /* Atheros AP81 reference board */ 
    178178        ATH79_MACH_DB120,               /* Atheros DB120 reference board */ 
  • trunk/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch

    r32606 r32607  
    11--- a/arch/mips/ath79/machtypes.h 
    22+++ b/arch/mips/ath79/machtypes.h 
    3 @@ -16,17 +16,86 @@ 
     3@@ -16,18 +16,87 @@ 
    44  
    55 enum ath79_mach_type { 
     
    1111        ATH79_MACH_AP121,               /* Atheros AP121 reference board */ 
    1212        ATH79_MACH_AP121_MINI,          /* Atheros AP121-MINI reference board */ 
     13        ATH79_MACH_AP136,               /* Atheros AP136 reference board */ 
    1314        ATH79_MACH_AP81,                /* Atheros AP81 reference board */ 
    1415+       ATH79_MACH_AP83,                /* Atheros AP83 */ 
     
    143144        bool "Atheros AP121 reference board" 
    144145        select SOC_AR933X 
    145 @@ -28,6 +74,24 @@ config ATH79_MACH_AP81 
     146@@ -40,6 +86,24 @@ config ATH79_MACH_AP81 
    146147          Say 'Y' here if you want your kernel to support the 
    147148          Atheros AP81 reference board. 
     
    168169        bool "Atheros DB120 reference board" 
    169170        select SOC_AR934X 
    170 @@ -42,6 +106,13 @@ config ATH79_MACH_DB120 
     171@@ -54,6 +118,13 @@ config ATH79_MACH_DB120 
    171172          Say 'Y' here if you want your kernel to support the 
    172173          Atheros DB120 reference board. 
     
    182183        bool "Atheros PB44 reference board" 
    183184        select SOC_AR71XX 
    184 @@ -54,6 +125,382 @@ config ATH79_MACH_PB44 
     185@@ -66,6 +137,382 @@ config ATH79_MACH_PB44 
    185186          Say 'Y' here if you want your kernel to support the 
    186187          Atheros PB44 reference board. 
     
    565566        bool "Ubiquiti Networks XM (rev 1.0) board" 
    566567        select SOC_AR724X 
    567 @@ -67,6 +514,24 @@ config ATH79_MACH_UBNT_XM 
     568@@ -79,6 +526,24 @@ config ATH79_MACH_UBNT_XM 
    568569          Say 'Y' here if you want your kernel to support the 
    569570          Ubiquiti Networks XM (rev 1.0) board. 
     
    590591  
    591592 config SOC_AR71XX 
    592 @@ -102,10 +567,6 @@ config SOC_QCA955X 
     593@@ -114,10 +579,6 @@ config SOC_QCA955X 
    593594        select PCI_AR724X if PCI 
    594595        def_bool n 
     
    601602        select ATH79_PCI_ATH9K_FIXUP 
    602603        def_bool n 
    603 @@ -116,7 +577,14 @@ config ATH79_DEV_DSA 
     604@@ -128,7 +589,14 @@ config ATH79_DEV_DSA 
    604605 config ATH79_DEV_ETH 
    605606        def_bool n 
     
    617618  
    618619 config ATH79_DEV_GPIO_BUTTONS 
    619 @@ -141,4 +609,7 @@ config ATH79_NVRAM 
     620@@ -153,4 +621,7 @@ config ATH79_NVRAM 
    620621 config ATH79_PCI_ATH9K_FIXUP 
    621622        def_bool n 
     
    627628--- a/arch/mips/ath79/Makefile 
    628629+++ b/arch/mips/ath79/Makefile 
    629 @@ -36,8 +36,57 @@ obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP)  += p 
     630@@ -36,9 +36,58 @@ obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP)  += p 
    630631 # 
    631632 # Machines 
     
    636637+obj-$(CONFIG_ATH79_MACH_AP113)         += mach-ap113.o 
    637638 obj-$(CONFIG_ATH79_MACH_AP121)         += mach-ap121.o 
     639 obj-$(CONFIG_ATH79_MACH_AP136)         += mach-ap136.o 
    638640 obj-$(CONFIG_ATH79_MACH_AP81)          += mach-ap81.o 
    639641+obj-$(CONFIG_ATH79_MACH_AP83)          += mach-ap83.o 
  • trunk/target/linux/ar71xx/patches-3.3/615-MIPS-ath79-WR1041N-support.patch

    r31847 r32607  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -451,6 +451,17 @@ config ATH79_MACH_TL_WR941ND 
     3@@ -463,6 +463,17 @@ config ATH79_MACH_TL_WR941ND 
    44        select ATH79_DEV_M25P80 
    55        select ATH79_DEV_WMAC 
     
    2121--- a/arch/mips/ath79/machtypes.h 
    2222+++ b/arch/mips/ath79/machtypes.h 
    23 @@ -64,6 +64,7 @@ enum ath79_mach_type { 
     23@@ -65,6 +65,7 @@ enum ath79_mach_type { 
    2424        ATH79_MACH_TL_MR3420,           /* TP-LINK TL-MR3420 */ 
    2525        ATH79_MACH_TL_WA901ND,          /* TP-LINK TL-WA901ND */ 
     
    3131--- a/arch/mips/ath79/Makefile 
    3232+++ b/arch/mips/ath79/Makefile 
    33 @@ -74,6 +74,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WR741ND)   += m 
     33@@ -75,6 +75,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WR741ND)   += m 
    3434 obj-$(CONFIG_ATH79_MACH_TL_WR741ND_V4) += mach-tl-wr741nd-v4.o 
    3535 obj-$(CONFIG_ATH79_MACH_TL_WR841N_V1)  += mach-tl-wr841n.o 
  • trunk/target/linux/ar71xx/patches-3.3/616-MIPS-ath79-EW_Dorin-support.patch

    r32458 r32607  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -240,6 +240,18 @@ config ATH79_MACH_DIR_825_B1 
     3@@ -252,6 +252,18 @@ config ATH79_MACH_DIR_825_B1 
    44        select ATH79_DEV_M25P80 
    55        select ATH79_DEV_USB 
     
    2222--- a/arch/mips/ath79/machtypes.h 
    2323+++ b/arch/mips/ath79/machtypes.h 
    24 @@ -32,6 +32,7 @@ enum ath79_mach_type { 
     24@@ -33,6 +33,7 @@ enum ath79_mach_type { 
    2525        ATH79_MACH_DIR_615_C1,          /* D-Link DIR-615 rev. C1 */ 
    2626        ATH79_MACH_DIR_615_E4,          /* D-Link DIR-615 rev. E4 */ 
     
    3232--- a/arch/mips/ath79/Makefile 
    3333+++ b/arch/mips/ath79/Makefile 
    34 @@ -49,6 +49,7 @@ obj-$(CONFIG_ATH79_MACH_DB120)                += mach- 
     34@@ -50,6 +50,7 @@ obj-$(CONFIG_ATH79_MACH_DB120)                += mach- 
    3535 obj-$(CONFIG_ATH79_MACH_DIR_600_A1)    += mach-dir-600-a1.o 
    3636 obj-$(CONFIG_ATH79_MACH_DIR_615_C1)    += mach-dir-615-c1.o 
  • trunk/target/linux/ar71xx/patches-3.3/617-MIPS-ath79-TL-WDR4300-support.patch

    r32459 r32607  
    11--- a/arch/mips/ath79/Makefile 
    22+++ b/arch/mips/ath79/Makefile 
    3 @@ -71,6 +71,7 @@ obj-$(CONFIG_ATH79_MACH_TL_MR3020)    += ma 
     3@@ -72,6 +72,7 @@ obj-$(CONFIG_ATH79_MACH_TL_MR3020)    += ma 
    44 obj-$(CONFIG_ATH79_MACH_TL_MR3X20)     += mach-tl-mr3x20.o 
    55 obj-$(CONFIG_ATH79_MACH_TL_WA901ND)    += mach-tl-wa901nd.o 
     
    1111--- a/arch/mips/ath79/Kconfig 
    1212+++ b/arch/mips/ath79/Kconfig 
    13 @@ -416,6 +416,17 @@ config ATH79_MACH_TL_WA901ND_V2 
     13@@ -428,6 +428,17 @@ config ATH79_MACH_TL_WA901ND_V2 
    1414        select ATH79_DEV_M25P80 
    1515        select ATH79_DEV_WMAC 
     
    3131--- a/arch/mips/ath79/machtypes.h 
    3232+++ b/arch/mips/ath79/machtypes.h 
    33 @@ -65,6 +65,7 @@ enum ath79_mach_type { 
     33@@ -66,6 +66,7 @@ enum ath79_mach_type { 
    3434        ATH79_MACH_TL_MR3420,           /* TP-LINK TL-MR3420 */ 
    3535        ATH79_MACH_TL_WA901ND,          /* TP-LINK TL-WA901ND */ 
Note: See TracChangeset for help on using the changeset viewer.