Changeset 34354


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

AA: ar71xx: add kernel support for the RB435G board

Backport of r34239.

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-rb4xx.c

    r34353 r34354  
    306306             rb433u_setup); 
    307307 
     308static void __init rb435g_setup(void) 
     309{ 
     310        rb4xx_generic_setup(); 
     311 
     312        spi_register_board_info(rb4xx_microsd_info, 
     313                                ARRAY_SIZE(rb4xx_microsd_info)); 
     314 
     315        ath79_register_mdio(0, ~RB433_MDIO_PHYMASK); 
     316 
     317        ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 1); 
     318        ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; 
     319        ath79_eth0_data.phy_mask = RB433_LAN_PHYMASK; 
     320 
     321        ath79_init_mac(ath79_eth1_data.mac_addr, ath79_mac_base, 0); 
     322        ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; 
     323        ath79_eth1_data.phy_mask = RB433_WAN_PHYMASK; 
     324 
     325        ath79_register_eth(1); 
     326        ath79_register_eth(0); 
     327 
     328        ath79_pci_set_irq_map(ARRAY_SIZE(rb4xx_pci_irqs), rb4xx_pci_irqs); 
     329        ath79_register_pci(); 
     330 
     331        ath79_register_usb(); 
     332} 
     333 
     334MIPS_MACHINE(ATH79_MACH_RB_435G, "435G", "MikroTik RouterBOARD 435G", 
     335             rb435g_setup); 
     336 
    308337#define RB450_LAN_PHYMASK       BIT(0) 
    309338#define RB450_WAN_PHYMASK       BIT(4) 
Note: See TracChangeset for help on using the changeset viewer.