Changeset 32931 for trunk


Ignore:
Timestamp:
2012-08-01T14:24:52+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: Buffalo WLAE-AG300N initial support

The patch set for Buffalo WLAE-AG300N initial support.

There is another patch for wireless led support that
is posted separately.

Note on serial console:
This unit has buffalo standard 4 pin console, but the unit may not power
on if some console apparatus is connected. This is probably due to some
electronic interaction between the unit's electronic power switch circuit
and the serial console apparatus. If this happens, it is required to power
on the unit without the console, then quickly (re-)attach it.

[juhosg: fix coding style]

Signed-off-by: Yoichi Shinoda <shinoda@…>

Location:
trunk/target/linux/ar71xx
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/diag.sh

    r32611 r32931  
    142142                status_led="buffalo:green:router" 
    143143                ;; 
     144        wlae-ag300n) 
     145                status_led="buffalo:green:status" 
     146                ;; 
    144147        wzr-hp-g300nh2) 
    145148                status_led="buffalo:red:diag" 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r32737 r32931  
    355355                name="whr-hp-gn" 
    356356                ;; 
     357        *WLAE-AG300N) 
     358                name="wlae-ag300n" 
     359                ;; 
    357360        *WP543) 
    358361                name="wp543" 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r32635 r32931  
    119119        whr-hp-g300n | \ 
    120120        whr-hp-gn | \ 
     121        wlae-ag300n | \ 
    121122        nbg460n_550n_550nh | \ 
    122123        unifi ) 
  • trunk/target/linux/ar71xx/config-3.3

    r32738 r32931  
    6767CONFIG_ATH79_MACH_UBNT_XM=y 
    6868CONFIG_ATH79_MACH_WHR_HP_G300N=y 
     69CONFIG_ATH79_MACH_WLAE_AG300N=y 
    6970CONFIG_ATH79_MACH_WNDR3700=y 
    7071CONFIG_ATH79_MACH_WNR2000=y 
  • trunk/target/linux/ar71xx/generic/profiles/buffalo.mk

    r29567 r32931  
    8484 
    8585$(eval $(call Profile,WHRHPGN)) 
     86 
     87define Profile/WLAEAG300N 
     88        NAME:=Buffalo WLAE-AG300N 
     89        PACKAGES:=kmod-ledtrig-netdev 
     90endef 
     91 
     92define Profile/WLAEAG300N/Description 
     93        Package set optimized for the Buffalo WLAE-AG300N 
     94endef 
     95 
     96$(eval $(call Profile,WLAEAG300N)) 
  • trunk/target/linux/ar71xx/image/Makefile

    r32683 r32931  
    10391039define Image/Build/Profile/WHRHPGN 
    10401040        $(call Image/Build/Template/$(fs_64k)/$(1),WHRHPG300N,whr-hp-gn,$(whrhpgn_cmdline),$(whrhpg300n_mtdlayout),WHR-HP-GN) 
     1041endef 
     1042 
     1043wlaeag300n_cmdline=board=WLAE-AG300N console=ttyS0,115200 
     1044define Image/Build/Profile/WLAEAG300N 
     1045        $(call Image/Build/Template/$(fs_64k)/$(1),WHRHPG300N,wlae-ag300n,$(wlaeag300n_cmdline),$(whrhpg300n_mtdlayout),WLAE-AG300N) 
    10411046endef 
    10421047 
     
    11351140        $(call Image/Build/Profile/WHRHPG300N,$(1)) 
    11361141        $(call Image/Build/Profile/WHRHPGN,$(1)) 
     1142        $(call Image/Build/Profile/WLAEAG300N,$(1)) 
    11371143        $(call Image/Build/Profile/WZRHPG300NH,$(1)) 
    11381144        $(call Image/Build/Profile/WZRHPG300NH2,$(1)) 
  • trunk/target/linux/ar71xx/patches-3.3/610-MIPS-ath79-openwrt-machines.patch

    r32679 r32931  
    11--- a/arch/mips/ath79/machtypes.h 
    22+++ b/arch/mips/ath79/machtypes.h 
    3 @@ -16,18 +16,91 @@ 
     3@@ -16,18 +16,92 @@ 
    44  
    55 enum ath79_mach_type { 
     
    7979+       ATH79_MACH_WHR_HP_G300N,        /* Buffalo WHR-HP-G300N */ 
    8080+       ATH79_MACH_WHR_HP_GN,           /* Buffalo WHR-HP-GN */ 
     81+       ATH79_MACH_WLAE_AG300N,         /* Buffalo WLAE-AG300N */ 
    8182+       ATH79_MACH_WNDR3700,            /* NETGEAR WNDR3700/WNDR3800/WNDRMAC */ 
    8283+       ATH79_MACH_WNR2000,             /* NETGEAR WNR2000 */ 
     
    187188        bool "Atheros PB44 reference board" 
    188189        select SOC_AR71XX 
    189 @@ -66,6 +137,419 @@ config ATH79_MACH_PB44 
     190@@ -66,6 +137,427 @@ config ATH79_MACH_PB44 
    190191          Say 'Y' here if you want your kernel to support the 
    191192          Atheros PB44 reference board. 
     
    213214+       select ATH79_DEV_ETH 
    214215+       select ATH79_DEV_AP9X_PCI if PCI 
     216+       select ATH79_DEV_GPIO_BUTTONS 
     217+       select ATH79_DEV_LEDS_GPIO 
     218+       select ATH79_DEV_M25P80 
     219+ 
     220+config ATH79_MACH_WLAE_AG300N 
     221+       bool "Buffalo WLAE-AG300N board support" 
     222+       select SOC_AR71XX 
     223+       select ATH79_DEV_ETH 
    215224+       select ATH79_DEV_GPIO_BUTTONS 
    216225+       select ATH79_DEV_LEDS_GPIO 
     
    607616        bool "Ubiquiti Networks XM (rev 1.0) board" 
    608617        select SOC_AR724X 
    609 @@ -79,6 +563,24 @@ config ATH79_MACH_UBNT_XM 
     618@@ -79,6 +571,24 @@ config ATH79_MACH_UBNT_XM 
    610619          Say 'Y' here if you want your kernel to support the 
    611620          Ubiquiti Networks XM (rev 1.0) board. 
     
    632641  
    633642 config SOC_AR71XX 
    634 @@ -114,10 +616,6 @@ config SOC_QCA955X 
     643@@ -114,10 +624,6 @@ config SOC_QCA955X 
    635644        select PCI_AR724X if PCI 
    636645        def_bool n 
     
    643652        select ATH79_PCI_ATH9K_FIXUP 
    644653        def_bool n 
    645 @@ -128,7 +626,14 @@ config ATH79_DEV_DSA 
     654@@ -128,7 +634,14 @@ config ATH79_DEV_DSA 
    646655 config ATH79_DEV_ETH 
    647656        def_bool n 
     
    659668  
    660669 config ATH79_DEV_GPIO_BUTTONS 
    661 @@ -153,4 +658,7 @@ config ATH79_NVRAM 
     670@@ -153,4 +666,7 @@ config ATH79_NVRAM 
    662671 config ATH79_PCI_ATH9K_FIXUP 
    663672        def_bool n 
     
    669678--- a/arch/mips/ath79/Makefile 
    670679+++ b/arch/mips/ath79/Makefile 
    671 @@ -36,9 +36,61 @@ obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP)  += p 
     680@@ -36,9 +36,62 @@ obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP)  += pci-ath9k-fixup.o 
    672681 # 
    673682 # Machines 
     
    721730 obj-$(CONFIG_ATH79_MACH_UBNT_XM)       += mach-ubnt-xm.o 
    722731+obj-$(CONFIG_ATH79_MACH_WHR_HP_G300N)  += mach-whr-hp-g300n.o 
     732+obj-$(CONFIG_ATH79_MACH_WLAE_AG300N)   += mach-wlae-ag300n.o 
    723733+obj-$(CONFIG_ATH79_MACH_WNDR3700)      += mach-wndr3700.o 
    724734+obj-$(CONFIG_ATH79_MACH_WNR2000)       += mach-wnr2000.o 
Note: See TracChangeset for help on using the changeset viewer.