Skip to content
Snippets Groups Projects
Commit dd092fd1 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

ramips: set clk_is_20mhz for rt2x00 on RT3352/RT5350


Signed-off-by: default avatarDaniel Golle <dgolle@allnet.de>
Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34270
parent 6c1fbb2d
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,8 @@ ...@@ -111,6 +111,8 @@
#define RT5350_SYSCFG0_DRAM_SIZE_32M 3 #define RT5350_SYSCFG0_DRAM_SIZE_32M 3
#define RT5350_SYSCFG0_DRAM_SIZE_64M 4 #define RT5350_SYSCFG0_DRAM_SIZE_64M 4
#define RT3352_SYSCFG0_XTAL_SEL BIT(20)
#define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10) #define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10)
#define RT3352_CLKCFG1_UPHY0_CLK_EN BIT(18) #define RT3352_CLKCFG1_UPHY0_CLK_EN BIT(18)
......
...@@ -215,7 +215,15 @@ static struct platform_device rt305x_wifi_device = { ...@@ -215,7 +215,15 @@ static struct platform_device rt305x_wifi_device = {
void __init rt305x_register_wifi(void) void __init rt305x_register_wifi(void)
{ {
u32 t;
rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom"; rt305x_wifi_data.eeprom_file_name = "RT305X.eeprom";
if (soc_is_rt3352() || soc_is_rt5350()) {
t = rt305x_sysc_rr(SYSC_REG_SYSTEM_CONFIG);
t &= RT3352_SYSCFG0_XTAL_SEL;
if (!t)
rt305x_wifi_data.clk_is_20mhz = 1;
}
platform_device_register(&rt305x_wifi_device); platform_device_register(&rt305x_wifi_device);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment