Changeset 37027


Ignore:
Timestamp:
2013-06-24T14:39:28+02:00 (5 years ago)
Author:
blogic
Message:

ramips: move ESW reset to preinit on RT305x/RT5350

RT305x/RT5350 SoCs require the switch to be reset before touching the ethernet
interface, otherwise the driver will panic.
As we already init the ethernet in preinit we therefor need to reset the switch
before that.

Signed-off-by: Felix Kaechele <felix@…>

Location:
trunk/target/linux/ramips/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network

    r36898 r37027  
    1414        local wanports="" 
    1515        local lanports="" 
    16         swconfig dev rt305x set reset 1 
    1716        for port in 5 4 3 2 1 0; do 
    1817                if [ `swconfig dev rt305x port $port get disable` = "1" ]; then 
  • trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips

    r36898 r37027  
    77 
    88ramips_set_preinit_iface() { 
    9         local board=$(ramips_board_name) 
    10  
    11         case "$board" in 
    12         mpr-a2) 
    13                 #TODO 
    14                 # Ralink ethernet driver cannot re-open ethernet if it is opened during preinit and then closed. 
    15                 # Looks like Ralink ethernet driver has a problem. 
    16                 # Temporary solution is not to open ethernet during preinit. 
    17                 return 0 
    18                 ;; 
    19         esac 
     9        RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"` 
     10        if [ -n "${RT3X5X}" ]; then 
     11                swconfig dev rt305x set reset 1 
     12        fi 
    2013 
    2114        ifname=eth0 
Note: See TracChangeset for help on using the changeset viewer.