mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rkwifi: add crystal freq select for 26M and 37.4M
This commit is contained in:
@@ -97,5 +97,20 @@ choice
|
||||
|
||||
endchoice
|
||||
|
||||
choice
|
||||
depends on RKWIFI && WLAN_80211
|
||||
prompt "Select the wifi module crystal freq"
|
||||
default 37_4M
|
||||
|
||||
config 37_4M
|
||||
bool "37_4M"
|
||||
depends on RKWIFI && WLAN_80211
|
||||
|
||||
config 26M
|
||||
bool "26M"
|
||||
depends on RKWIFI && WLAN_80211
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -23,12 +23,6 @@ int rkwifi_set_country_code(char *code)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Set Crystal Freq
|
||||
*/
|
||||
|
||||
#define CRYSTAL_FREQ 0 // 0: 37.4M; 1: 26M
|
||||
|
||||
/*
|
||||
* Set Firmware Path
|
||||
*/
|
||||
@@ -39,18 +33,20 @@ int rkwifi_set_firmware(char *fw, char *nvram)
|
||||
{
|
||||
#ifdef CONFIG_RK903
|
||||
sprintf(fw, "%s%s", ANDROID_FW_PATH, "fw_RK903.bin");
|
||||
#if CRYSTAL_FREQ
|
||||
#ifdef CONFIG_26M
|
||||
sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_RK903_26M.cal");
|
||||
#else
|
||||
#endif
|
||||
#ifdef CONFIG_37_4M
|
||||
sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_RK903.cal");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RK901
|
||||
sprintf(fw, "%s%s", ANDROID_FW_PATH, "fw_RK901.bin");
|
||||
#if CRYSTAL_FREQ
|
||||
#ifdef CONFIG_26M
|
||||
sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_RK901_26M.txt");
|
||||
#else
|
||||
#endif
|
||||
#ifdef CONFIG_37_4M
|
||||
sprintf(nvram, "%s%s", ANDROID_FW_PATH, "nvram_RK901.txt");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user