Changeset 14488


Ignore:
Timestamp:
2009-02-12T20:48:27+01:00 (7 years ago)
Author:
juhosg
Message:

[ar71xx] add preliminary support for the Ubiquiti LS-SR71 board (thanks to Xianghua Xiao for the initial patch, and for testing)

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files-2.6.28/arch/mips/include/asm/mach-ar71xx/ar71xx.h

    r14382 r14488  
    127127#define AR71XX_MACH_MZK_W300NH  13      /* Planex MZK-W300NH */ 
    128128#define AR71XX_MACH_MZK_W04NU   14      /* Planex MZK-W04NU */ 
     129#define AR71XX_MACH_UBNT_LSSR71 15      /* Ubiquiti LS-SR71 */ 
    129130 
    130131/* 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c

    r13759 r14488  
    3535}; 
    3636 
    37 static struct ar71xx_pci_irq ubnt_rs_pci_irqs[] __initdata = { 
     37static struct ar71xx_pci_irq ubnt_pci_irqs[] __initdata = { 
    3838        { 
    3939                .slot   = 0, 
     
    9494        ar71xx_add_device_usb(); 
    9595 
    96         ar71xx_pci_init(ARRAY_SIZE(ubnt_rs_pci_irqs), ubnt_rs_pci_irqs); 
     96        ar71xx_pci_init(ARRAY_SIZE(ubnt_pci_irqs), ubnt_pci_irqs); 
    9797 
    9898        ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ubnt_rs_leds_gpio), 
     
    110110        ar71xx_add_device_spi(NULL, ubnt_spi_info, 
    111111                                    ARRAY_SIZE(ubnt_spi_info)); 
     112 
    112113} 
    113114 
    114115MIPS_MACHINE(AR71XX_MACH_UBNT_LSX, "Ubiquiti LSX", ubnt_lsx_setup); 
     116 
     117#define UBNT_LSSR71_PHY_MASK    (1 << 1) 
     118 
     119static void __init ubnt_lssr71_setup(void) 
     120{ 
     121        ar71xx_add_device_spi(NULL, ubnt_spi_info, 
     122                                    ARRAY_SIZE(ubnt_spi_info)); 
     123 
     124        ar71xx_add_device_mdio(~UBNT_LSSR71_PHY_MASK); 
     125 
     126        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
     127        ar71xx_eth0_data.phy_mask = UBNT_LSSR71_PHY_MASK; 
     128 
     129        ar71xx_add_device_eth(0); 
     130 
     131        ar71xx_pci_init(ARRAY_SIZE(ubnt_pci_irqs), ubnt_pci_irqs); 
     132} 
     133 
     134MIPS_MACHINE(AR71XX_MACH_UBNT_LSSR71, "Ubiquiti LS-SR71", ubnt_lssr71_setup); 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c

    r14482 r14488  
    5757                .mach_type      = AR71XX_MACH_UBNT_RS, 
    5858        }, { 
     59                .name           = "UBNT-LS-SR71", 
     60                .mach_type      = AR71XX_MACH_UBNT_LSSR71, 
     61        }, { 
    5962                .name           = "UBNT-LSX", 
    6063                .mach_type      = AR71XX_MACH_UBNT_LSX, 
  • trunk/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h

    r14382 r14488  
    127127#define AR71XX_MACH_MZK_W300NH  13      /* Planex MZK-W300NH */ 
    128128#define AR71XX_MACH_MZK_W04NU   14      /* Planex MZK-W04NU */ 
     129#define AR71XX_MACH_UBNT_LSSR71 15      /* Ubiquiti LS-SR71 */ 
    129130 
    130131/* 
Note: See TracChangeset for help on using the changeset viewer.