Changeset 34270


Ignore:
Timestamp:
2012-11-20T08:19:10+01:00 (5 years ago)
Author:
juhosg
Message:

ramips: set clk_is_20mhz for rt2x00 on RT3352/RT5350

Signed-off-by: Daniel Golle <dgolle@…>
Signed-off-by: Gabor Juhos <juhosg@…>

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

Legend:

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

    r33571 r34270  
    112112#define RT5350_SYSCFG0_DRAM_SIZE_64M    4 
    113113 
     114#define RT3352_SYSCFG0_XTAL_SEL         BIT(20) 
     115 
    114116#define RT3352_SYSCFG1_USB0_HOST_MODE   BIT(10) 
    115117 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c

    r33381 r34270  
    216216void __init rt305x_register_wifi(void) 
    217217{ 
     218        u32 t; 
    218219        rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom"; 
     220 
     221        if (soc_is_rt3352() || soc_is_rt5350()) { 
     222                t = rt305x_sysc_rr(SYSC_REG_SYSTEM_CONFIG); 
     223                t &= RT3352_SYSCFG0_XTAL_SEL; 
     224                if (!t) 
     225                        rt305x_wifi_data.clk_is_20mhz = 1; 
     226        } 
    219227        platform_device_register(&rt305x_wifi_device); 
    220228} 
Note: See TracChangeset for help on using the changeset viewer.