Changeset 26522


Ignore:
Timestamp:
2011-04-07T22:53:37+02:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: register WMAC device on the DB120 board

Signed-off-by: Jaiganesh Narayanan <jnarayanan@…>

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

Legend:

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

    r26518 r26522  
    66CONFIG_AR71XX_DEV_AP94_PCI=y 
    77CONFIG_AR71XX_DEV_AR913X_WMAC=y 
     8CONFIG_AR71XX_DEV_AR934X_WMAC=y 
    89CONFIG_AR71XX_DEV_DSA=y 
    910CONFIG_AR71XX_DEV_GPIO_BUTTONS=y 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig

    r26521 r26522  
    3131config AR71XX_MACH_DB120 
    3232        bool "Atheros DB120 board support" 
     33        select AR71XX_DEV_AR934X_WMAC 
    3334        select AR71XX_DEV_GPIO_BUTTONS 
    3435        select AR71XX_DEV_LEDS_GPIO 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c

    r26518 r26522  
    2020#include "dev-leds-gpio.h" 
    2121#include "dev-usb.h" 
     22#include "dev-ar934x-wmac.h" 
    2223 
    2324#define DB120_GPIO_LED_USB      11 
     
    2829 
    2930#define DB120_GPIO_BTN_SW1      16 
     31 
     32#define DB120_CALDATA_OFFSET    0x1000 
     33#define DB120_WMAC_MAC_OFFSET   0x1003 
    3034 
    3135#define DB120_BUTTONS_POLL_INTERVAL     20 
     
    107111static void __init db120_setup(void) 
    108112{ 
     113        u8 *art = (u8 *) KSEG1ADDR(0x1fff0000); 
     114 
    109115        ar71xx_add_device_usb(); 
    110116 
     
    117123                                        ARRAY_SIZE(db120_gpio_buttons), 
    118124                                        db120_gpio_buttons); 
     125 
     126        ar934x_add_device_wmac(art + DB120_CALDATA_OFFSET, 
     127                                art + DB120_WMAC_MAC_OFFSET); 
    119128} 
    120129 
Note: See TracChangeset for help on using the changeset viewer.