Changeset 37988


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

kernel: b53: use hard coded switch reset gpio on some boards.

The Linksys wrt310n v1 does not have a robo_reset config variable in
nvram, but GPIO Pin 8 is the pin needed for resetting the external
switch, Linksys hard coded it into their source code.

Thank you Devastator for testing.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h

    r37987 r37988  
    287287 
    288288#include <bcm47xx_nvram.h> 
     289#include <bcm47xx_board.h> 
    289290static inline int b53_switch_get_reset_gpio(struct b53_device *dev) 
    290291{ 
    291        return bcm47xx_nvram_gpio_pin("robo_reset"); 
     292        enum bcm47xx_board board = bcm47xx_board_get(); 
     293 
     294        switch (board) { 
     295        case BCM47XX_BOARD_LINKSYS_WRT310NV1: 
     296                return 8; 
     297        default: 
     298                return bcm47xx_nvram_gpio_pin("robo_reset"); 
     299        } 
    292300} 
    293301#else 
    294302static inline int b53_switch_get_reset_gpio(struct b53_device *dev) 
    295303{ 
    296        return -ENOENT; 
     304        return -ENOENT; 
    297305} 
    298306#endif 
Note: See TracChangeset for help on using the changeset viewer.