Changeset 30900


Ignore:
Timestamp:
2012-03-12T17:12:13+01:00 (6 years ago)
Author:
juhosg
Message:

ramips: add RT3350 detection

Location:
trunk/target/linux/ramips/files/arch/mips
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x.h

    r30890 r30900  
    2121        RT305X_SOC_RT3050, 
    2222        RT305X_SOC_RT3052, 
     23        RT305X_SOC_RT3350, 
    2324        RT305X_SOC_RT3352, 
    2425}; 
     
    3940{ 
    4041        return soc_is_rt3050() || soc_is_rt3052(); 
     42} 
     43 
     44static inline int soc_is_rt3350(void) 
     45{ 
     46        return rt305x_soc == RT305X_SOC_RT3350; 
    4147} 
    4248 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h

    r30890 r30900  
    6060#define RT3052_CHIP_NAME0       0x30335452 
    6161#define RT3052_CHIP_NAME1       0x20203235 
     62 
     63#define RT3350_CHIP_NAME0       0x33335452 
     64#define RT3350_CHIP_NAME1       0x20203035 
    6265 
    6366#define RT3352_CHIP_NAME0       0x33335452 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/rt305x.c

    r30890 r30900  
    4949                        name = "RT3052"; 
    5050                } 
     51        } else if (n0 == RT3350_CHIP_NAME0 && n1 == RT3350_CHIP_NAME1) { 
     52                rt305x_soc = RT305X_SOC_RT3350; 
     53                name = "RT3350"; 
    5154        } else if (n0 == RT3352_CHIP_NAME0 && n1 == RT3352_CHIP_NAME1) { 
    5255                rt305x_soc = RT305X_SOC_RT3352; 
Note: See TracChangeset for help on using the changeset viewer.