Changeset 37987


Ignore:
Timestamp:
2013-09-14T18:14:02+02:00 (4 years ago)
Author:
hauke
Message:

kernel: b53: add soft reset for BCM539x switches

Signed-off-by: Hauke Mehrtens <hauke@…>

Location:
trunk/target/linux/generic/files/drivers/net/phy/b53
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/b53/b53_common.c

    r37895 r37987  
    478478        b53_switch_reset_gpio(dev); 
    479479 
     480        if (is539x(dev)) { 
     481                b53_write8(dev, B53_CTRL_PAGE, B53_SOFTRESET, 0x83); 
     482                b53_write8(dev, B53_CTRL_PAGE, B53_SOFTRESET, 0x00); 
     483        } 
     484 
    480485        b53_read8(dev, B53_CTRL_PAGE, B53_SWITCH_MODE, &mgmt); 
    481486 
  • trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h

    r37645 r37987  
    123123} 
    124124 
     125static inline int is539x(struct b53_device *dev) 
     126{ 
     127        return dev->chip_id == BCM5395_DEVICE_ID || 
     128                dev->chip_id == BCM5397_DEVICE_ID || 
     129                dev->chip_id == BCM5398_DEVICE_ID; 
     130} 
     131 
    125132static inline int is531x5(struct b53_device *dev) 
    126133{ 
Note: See TracChangeset for help on using the changeset viewer.