Changeset 42549


Ignore:
Timestamp:
2014-09-15T12:19:14+02:00 (3 years ago)
Author:
blogic
Message:

ar71xx: add board support for ubnt loco m xw

Signed-off-by: Alexander Couzens <lynxis@…>

Location:
trunk/target/linux/ar71xx
Files:
8 edited

Legend:

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

    r42130 r42549  
    3535                status_led="aw-nr580:green:ready" 
    3636                ;; 
    37         bullet-m | rocket-m | nano-m | nanostation-m | nanostation-m-xw) 
     37        bullet-m | rocket-m | nano-m | nanostation-m | nanostation-m-xw | loco-m-xw) 
    3838                status_led="ubnt:green:link4" 
    3939                ;; 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds

    r42317 r42549  
    3939nanostation-m | \ 
    4040rocket-m | \ 
    41 nanostation-m-xw) 
     41nanostation-m-xw | \ 
     42loco-m-xw) 
    4243        ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" "0" "13" 
    4344        ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "ubnt:orange:link2" "wlan0" "26" "100" "-25" "13" 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network

    r42317 r42549  
    287287eap300v2 |\ 
    288288eap7660d |\ 
     289loco-m-xw |\ 
    289290mr600 |\ 
    290291mr600v2 |\ 
  • trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh

    r42317 r42549  
    353353                name="bullet-m" 
    354354                ;; 
     355        *"Loco M XW") 
     356                name="loco-m-xw" 
     357                ;; 
    355358        *"Nanostation M") 
    356359                name="nanostation-m" 
  • trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh

    r42279 r42549  
    191191        airrouter | \ 
    192192        bullet-m | \ 
     193        loco-m-xw | \ 
    193194        nanostation-m | \ 
    194195        rocket-m | \ 
  • trunk/target/linux/ar71xx/image/Makefile

    r42189 r42549  
    12471247$(eval $(call SingleProfile,UBNTXM,64kraw,UBNTUNIFIOUTDOOR,ubnt-unifi-outdoor,UBNT-U20,ttyS0,115200,XM,BZ,ar7240)) 
    12481248$(eval $(call SingleProfile,UBNTXM,64kraw,UBNTNANOMXW,ubnt-nano-m-xw,UBNT-NM-XW,ttyS0,115200,XM,XW,ar934x)) 
     1249$(eval $(call SingleProfile,UBNTXM,64kraw,UBNTLOCOXW,ubnt-loco-m-xw,UBNT-LOCO-XW,ttyS0,115200,XM,XW,ar934x)) 
    12491250$(eval $(call SingleProfile,UBNTXM,64kraw,UBNTAIRGW,ubnt-air-gateway,UBNT-AGW,ttyATH0,115200,XM,AirGW,ar933x)) 
    12501251 
     
    12921293$(eval $(call MultiProfile,TLWDR4300,TLWDR3500V1 TLWDR3600V1 TLWDR4300V1 TLWDR4300V1IL TLWDR4310V1 MW4530RV1)) 
    12931294$(eval $(call MultiProfile,TUBE2H,TUBE2H8M TUBE2H16M)) 
    1294 $(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTNANOMXW UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO UBNTAIRGW)) 
     1295$(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTNANOMXW UBNTLOCOXW UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO UBNTAIRGW)) 
    12951296$(eval $(call MultiProfile,WNDR3700,WNDR3700V1 WNDR3700V2 WNDR3800 WNDR3800CH WNDRMAC WNDRMACV2)) 
    12961297$(eval $(call MultiProfile,WNR612V2,REALWNR612V2 N150R)) 
  • trunk/target/linux/ar71xx/patches-3.10/616-MIPS-ath79-ubnt-xw.patch

    r42548 r42549  
    1 Index: linux-3.10.49/arch/mips/ath79/mach-ubnt-xm.c 
    2 =================================================================== 
    3 --- linux-3.10.49.orig/arch/mips/ath79/mach-ubnt-xm.c   2014-08-15 22:55:37.890080659 +0200 
    4 +++ linux-3.10.49/arch/mips/ath79/mach-ubnt-xm.c        2014-08-15 22:58:31.061570912 +0200 
    5 @@ -332,3 +332,67 @@ 
     1--- a/arch/mips/ath79/mach-ubnt-xm.c 
     2+++ b/arch/mips/ath79/mach-ubnt-xm.c 
     3@@ -332,3 +332,78 @@ static void __init ubnt_uap_pro_setup(vo 
    64 MIPS_MACHINE(ATH79_MACH_UBNT_UAP_PRO, "UAP-PRO", "Ubiquiti UniFi AP Pro", 
    75             ubnt_uap_pro_setup); 
     
    6866+} 
    6967+ 
     68+static void __init ubnt_loco_m_xw_setup(void) 
     69+{ 
     70+       ubnt_xw_init(); 
     71+ 
     72+       ath79_register_mdio(0, ~BIT(1)); 
     73+       ath79_eth0_data.phy_mask = BIT(1); 
     74+       ath79_register_eth(0); 
     75+} 
     76+ 
    7077+MIPS_MACHINE(ATH79_MACH_UBNT_NANO_M_XW, "UBNT-NM-XW", "Ubiquiti Nanostation M XW", 
    7178+            ubnt_nano_m_xw_setup); 
    7279+ 
     80+MIPS_MACHINE(ATH79_MACH_UBNT_LOCO_M_XW, "UBNT-LOCO-XW", "Ubiquiti Loco M XW", 
     81+            ubnt_loco_m_xw_setup); 
    7382--- a/arch/mips/ath79/machtypes.h 
    7483+++ b/arch/mips/ath79/machtypes.h 
    75 @@ -121,9 +121,10 @@ enum ath79_mach_type { 
     84@@ -121,9 +121,11 @@ enum ath79_mach_type { 
    7685        ATH79_MACH_TL_WR941ND,          /* TP-LINK TL-WR941ND */ 
    7786        ATH79_MACH_UBNT_AIRROUTER,      /* Ubiquiti AirRouter */ 
    7887        ATH79_MACH_UBNT_BULLET_M,       /* Ubiquiti Bullet M */ 
     88+       ATH79_MACH_UBNT_LOCO_M_XW,      /* Ubiquiti Loco M XW */ 
    7989        ATH79_MACH_UBNT_LSSR71,         /* Ubiquiti LS-SR71 */ 
    8090        ATH79_MACH_UBNT_LSX,            /* Ubiquiti LSX */ 
  • trunk/target/linux/ar71xx/patches-3.10/722-MIPS-ath79-add-airGateway-support.patch

    r41794 r42549  
    1313 #include "dev-eth.h" 
    1414 #include "dev-gpio-buttons.h" 
    15 @@ -389,3 +391,65 @@ static void __init ubnt_nano_m_xw_setup( 
     15@@ -406,3 +408,65 @@ MIPS_MACHINE(ATH79_MACH_UBNT_NANO_M_XW, 
    1616  
    17  MIPS_MACHINE(ATH79_MACH_UBNT_NANO_M_XW, "UBNT-NM-XW", "Ubiquiti Nanostation M XW", 
    18              ubnt_nano_m_xw_setup); 
     17 MIPS_MACHINE(ATH79_MACH_UBNT_LOCO_M_XW, "UBNT-LOCO-XW", "Ubiquiti Loco M XW", 
     18             ubnt_loco_m_xw_setup); 
    1919+ 
    2020+static struct gpio_led ubnt_airgateway_gpio_leds[] __initdata = { 
     
    8888        ATH79_MACH_UBNT_AIRROUTER,      /* Ubiquiti AirRouter */ 
    8989        ATH79_MACH_UBNT_BULLET_M,       /* Ubiquiti Bullet M */ 
    90         ATH79_MACH_UBNT_LSSR71,         /* Ubiquiti LS-SR71 */ 
     90        ATH79_MACH_UBNT_LOCO_M_XW,      /* Ubiquiti Loco M XW */ 
Note: See TracChangeset for help on using the changeset viewer.