Changeset 37970


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

brcm47xx: do not use GPIO configuration of WRT54G for every unknown Linksys device

Most of the Linksys devices without an own GPIO configuration where
detected as WRT54G. On one board this made OpenWrt to boot into
failsafe every time, because one GPIO configurated as button was not a
button.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/broadcom-diag/src/diag.c

    r37804 r37970  
    11771177                                return &platforms[WRT54G3G]; 
    11781178 
    1179                         /* default to WRT54G */ 
    1180                         return &platforms[WRT54G]; 
     1179                        /* default to WRT54G if no boot_hw_model is set */ 
     1180                        if (nvram_get("boot_hw_model") == NULL) 
     1181                                return &platforms[WRT54G]; 
    11811182                } 
    11821183                if (!strcmp(boardnum, "1024") && !strcmp(boardtype, "0x0446")) 
Note: See TracChangeset for help on using the changeset viewer.