Changeset 32944


Ignore:
Timestamp:
2012-08-02T11:54:28+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: init switch hw_reset on the TL-WR1043ND board

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c

    r30405 r32944  
    1111#include <linux/platform_device.h> 
    1212#include <linux/rtl8366.h> 
     13 
    1314#include <asm/mach-ath79/ath79.h> 
     15#include <asm/mach-ath79/ar71xx_regs.h> 
    1416 
    1517#include "dev-eth.h" 
     
    8284}; 
    8385 
     86static void tl_wr1043nd_rtl8366rb_hw_reset(bool active) 
     87{ 
     88        if (active) 
     89                ath79_device_reset_set(AR71XX_RESET_GE0_PHY); 
     90        else 
     91                ath79_device_reset_clear(AR71XX_RESET_GE0_PHY); 
     92} 
     93 
    8494static struct rtl8366_platform_data tl_wr1043nd_rtl8366rb_data = { 
    85         .gpio_sda        = TL_WR1043ND_GPIO_RTL8366_SDA, 
    86         .gpio_sck        = TL_WR1043ND_GPIO_RTL8366_SCK, 
     95        .gpio_sda       = TL_WR1043ND_GPIO_RTL8366_SDA, 
     96        .gpio_sck       = TL_WR1043ND_GPIO_RTL8366_SCK, 
     97        .hw_reset       = tl_wr1043nd_rtl8366rb_hw_reset, 
    8798}; 
    8899 
     
    99110        u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); 
    100111        u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff1000); 
     112 
     113        tl_wr1043nd_rtl8366rb_hw_reset(true); 
    101114 
    102115        ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0); 
Note: See TracChangeset for help on using the changeset viewer.