rkwifi: add crystal freq select for 26M and 37.4M

This commit is contained in:
hwg
2012-05-09 15:11:42 +08:00
parent 0692923d2a
commit 0f7f0d1406
2 changed files with 21 additions and 10 deletions

View File

@@ -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

View File

@@ -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