Changeset 34335


Ignore:
Timestamp:
2012-11-25T17:15:24+01:00 (5 years ago)
Author:
juhosg
Message:

AA: ar71xx: add support for TP-Link TL-WA7510N

Backport of r34187.

It is mostly the same as TL-WA901N. WLAN and LAN
are working. LAN LED is working. WLAN signal
strength LEDs are not working yet.

http://wiki.openwrt.org/toh/tp-link/tl-wa7510n?s[]=wa7510n

[juhosg:

  • cleanup commit message
  • move non kernel related stuff into separate changes
  • rename and refresh 615-MIPS-ath79-TL-WA7510N-v1-support patch
  • merge WA7510N support into the mach-tl-wa901nd.c file
  • add 3.6 support]

Signed-off-by: Stefan Helmert <helst_listen@…>
Signed-off-by: Gabor Juhos <juhosg@…>

Location:
branches/attitude_adjustment/target/linux/ar71xx
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c

    r30405 r34335  
    11/* 
    2  *  TP-LINK TL-WA901N/ND v1 board support 
     2 *  TP-LINK TL-WA901N/ND v1, TL-WA7510N v1 board support 
    33 * 
    44 *  Copyright (C) 2009-2012 Gabor Juhos <juhosg@openwrt.org> 
    55 *  Copyright (C) 2010 Pieter Hollants <pieter@hollants.com> 
     6 *  Copyright (C) 2012 Stefan Helmert <helst_listen@aol.de> 
    67 * 
    78 *  This program is free software; you can redistribute it and/or modify it 
     
    2021#include "dev-m25p80.h" 
    2122#include "machtypes.h" 
     23#include "pci.h" 
    2224 
    2325#define TL_WA901ND_GPIO_LED_QSS         0 
     
    7476}; 
    7577 
     78static void __init common_setup(void) 
     79{ 
     80        u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); 
     81 
     82        /* 
     83         * ath79_eth0 would be the WAN port, but is not connected. 
     84         * ath79_eth1 connects to the internal switch chip, however 
     85         * we have a single LAN port only. 
     86         */ 
     87        ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0); 
     88        ath79_register_mdio(0, 0x0); 
     89        ath79_register_eth(1); 
     90 
     91        ath79_register_m25p80(&tl_wa901nd_flash_data); 
     92} 
     93 
    7694static void __init tl_wa901nd_setup(void) 
    7795{ 
     
    85103                                    AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN); 
    86104 
    87         /* 
    88          * ath79_eth0 would be the WAN port, but is not connected on 
    89          * the TL-WA901ND. ath79_eth1 connects to the internal switch chip, 
    90          * however we have a single LAN port only. 
    91          */ 
    92         ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0); 
    93         ath79_register_mdio(0, 0x0); 
    94         ath79_register_eth(1); 
    95  
    96         ath79_register_m25p80(&tl_wa901nd_flash_data); 
     105        common_setup(); 
    97106 
    98107        ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wa901nd_leds_gpio), 
     
    108117MIPS_MACHINE(ATH79_MACH_TL_WA901ND, "TL-WA901ND", "TP-LINK TL-WA901ND", 
    109118             tl_wa901nd_setup); 
     119 
     120static void __init tl_wa7510n_v1_setup(void) 
     121{ 
     122        common_setup(); 
     123        ath79_register_pci(); 
     124} 
     125 
     126MIPS_MACHINE(ATH79_MACH_TL_WA7510N_V1, "TL-WA7510N", "TP-LINK TL-WA7510N v1", 
     127             tl_wa7510n_v1_setup); 
Note: See TracChangeset for help on using the changeset viewer.