Changeset 13860


Ignore:
Timestamp:
2009-01-04T20:06:00+01:00 (8 years ago)
Author:
juhosg
Message:

[ar71xx] add preliminary support for the Atheros PB42 board

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

Legend:

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

    r13775 r13860  
    88CONFIG_AR71XX_MACH_AW_NR580=y 
    99CONFIG_AR71XX_MACH_GENERIC=y 
     10CONFIG_AR71XX_MACH_PB42=y 
    1011CONFIG_AR71XX_MACH_RB_4XX=y 
    1112CONFIG_AR71XX_MACH_TEW_632BRP=y 
    1213CONFIG_AR71XX_MACH_UBNT=y 
     14CONFIG_AR71XX_MACH_WNR2000=y 
    1315CONFIG_AR71XX_MACH_WP543=y 
    14 CONFIG_AR71XX_MACH_WNR2000=y 
    1516CONFIG_AR71XX_WDT=y 
    1617# CONFIG_ARCH_HAS_ILOG2_U32 is not set 
  • trunk/target/linux/ar71xx/config-2.6.27

    r13775 r13860  
    88CONFIG_AR71XX_MACH_AW_NR580=y 
    99CONFIG_AR71XX_MACH_GENERIC=y 
     10CONFIG_AR71XX_MACH_PB42=y 
    1011CONFIG_AR71XX_MACH_RB_4XX=y 
    1112CONFIG_AR71XX_MACH_TEW_632BRP=y 
    1213CONFIG_AR71XX_MACH_UBNT=y 
     14CONFIG_AR71XX_MACH_WNR2000=y 
    1315CONFIG_AR71XX_MACH_WP543=y 
    14 CONFIG_AR71XX_MACH_WNR2000=y 
    1516CONFIG_AR71XX_WDT=y 
    1617# CONFIG_ARCH_HAS_ILOG2_U32 is not set 
  • trunk/target/linux/ar71xx/config-2.6.28

    r13775 r13860  
    88CONFIG_AR71XX_MACH_AW_NR580=y 
    99CONFIG_AR71XX_MACH_GENERIC=y 
     10CONFIG_AR71XX_MACH_PB42=y 
    1011CONFIG_AR71XX_MACH_RB_4XX=y 
    1112CONFIG_AR71XX_MACH_TEW_632BRP=y 
    1213CONFIG_AR71XX_MACH_UBNT=y 
     14CONFIG_AR71XX_MACH_WNR2000=y 
    1315CONFIG_AR71XX_MACH_WP543=y 
    14 CONFIG_AR71XX_MACH_WNR2000=y 
    1516CONFIG_AR71XX_WDT=y 
    1617# CONFIG_ARCH_HAS_ILOG2_U32 is not set 
  • trunk/target/linux/ar71xx/files-2.6.28/arch/mips/include/asm/mach-ar71xx/ar71xx.h

    r13775 r13860  
    121121#define AR71XX_MACH_UBNT_LSX    10      /* Ubiquiti LSX */ 
    122122#define AR71XX_MACH_WNR2000     11      /* NETGEAR WNR2000 */ 
     123#define AR71XX_MACH_PB42        12      /* Atheros PB42 */ 
     124 
    123125 
    124126/* 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig

    r13775 r13860  
    99config AR71XX_MACH_AP83 
    1010        bool "Atheros AP83 board support" 
     11        default y 
     12 
     13config AR71XX_MACH_PB42 
     14        bool "Atheros PB42 board support" 
    1115        default y 
    1216 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile

    r13775 r13860  
    1414obj-$(CONFIG_AR71XX_MACH_AW_NR580)      += mach-aw-nr580.o 
    1515obj-$(CONFIG_AR71XX_MACH_GENERIC)       += mach-generic.o 
     16obj-$(CONFIG_AR71XX_MACH_PB42)          += mach-pb42.o 
    1617obj-$(CONFIG_AR71XX_MACH_RB_4XX)        += mach-rb-4xx.o 
    1718obj-$(CONFIG_AR71XX_MACH_TEW_632BRP)    += mach-tew-632brp.o 
    1819obj-$(CONFIG_AR71XX_MACH_UBNT)          += mach-ubnt.o 
     20obj-$(CONFIG_AR71XX_MACH_WNR2000)       += mach-wnr2000.o 
    1921obj-$(CONFIG_AR71XX_MACH_WP543)         += mach-wp543.o 
    20 obj-$(CONFIG_AR71XX_MACH_WNR2000)       += mach-wnr2000.o 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c

    r13858 r13860  
    11/* 
    2  *  Generic AR71xx machine setup 
     2 *  Atheros PB42 board support 
    33 * 
    44 *  Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org> 
     
    2020#include <asm/mach-ar71xx/platform.h> 
    2121 
    22 static struct spi_board_info ar71xx_generic_spi_info[] = { 
     22static struct spi_board_info pb42_spi_info[] = { 
    2323        { 
    2424                .bus_num        = 0, 
     
    2929}; 
    3030 
    31 static struct ar71xx_pci_irq ar71xx_generic_pci_irqs[] __initdata = { 
     31static struct ar71xx_pci_irq pb42_pci_irqs[] __initdata = { 
    3232        { 
    3333                .slot   = 0, 
     
    4545}; 
    4646 
    47 static void __init ar71xx_generic_init(void) 
     47static void __init pb42_init(void) 
    4848{ 
    49         ar71xx_add_device_spi(NULL, ar71xx_generic_spi_info, 
    50                                 ARRAY_SIZE(ar71xx_generic_spi_info)); 
     49        ar71xx_add_device_spi(NULL, pb42_spi_info, 
     50                                ARRAY_SIZE(pb42_spi_info)); 
    5151 
    5252        ar71xx_add_device_mdio(0xffe0ffff); 
     
    6363        ar71xx_add_device_usb(); 
    6464 
    65         ar71xx_pci_init(ARRAY_SIZE(ar71xx_generic_pci_irqs), 
    66                         ar71xx_generic_pci_irqs); 
     65        ar71xx_pci_init(ARRAY_SIZE(pb42_pci_irqs), pb42_pci_irqs); 
    6766} 
    6867 
    69 MIPS_MACHINE(AR71XX_MACH_GENERIC, "Generic AR71xx board", ar71xx_generic_init); 
     68MIPS_MACHINE(AR71XX_MACH_PB42, "Atheros PB42", pb42_init); 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c

    r13775 r13860  
    6262                .name           = "WNR2000", 
    6363                .mach_type      = AR71XX_MACH_WNR2000, 
     64        }, { 
     65                .name           = "PB42", 
     66                .mach_type      = AR71XX_MACH_PB42, 
    6467        } 
    6568}; 
  • trunk/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/ar71xx.h

    r13775 r13860  
    121121#define AR71XX_MACH_UBNT_LSX    10      /* Ubiquiti LSX */ 
    122122#define AR71XX_MACH_WNR2000     11      /* NETGEAR WNR2000 */ 
     123#define AR71XX_MACH_PB42        12      /* Atheros PB42 */ 
    123124 
    124125/* 
Note: See TracChangeset for help on using the changeset viewer.