1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27#include <linux/module.h>
28#include <linux/stringify.h>
29#include "iwl-config.h"
30#include "iwl-csr.h"
31#include "iwl-agn-hw.h"
32
33
34#define IWL1000_UCODE_API_MAX 5
35#define IWL100_UCODE_API_MAX 5
36
37
38#define IWL1000_UCODE_API_OK 5
39#define IWL100_UCODE_API_OK 5
40
41
42#define IWL1000_UCODE_API_MIN 1
43#define IWL100_UCODE_API_MIN 5
44
45
46#define EEPROM_1000_TX_POWER_VERSION (4)
47#define EEPROM_1000_EEPROM_VERSION (0x15C)
48
49#define IWL1000_FW_PRE "iwlwifi-1000-"
50#define IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE __stringify(api) ".ucode"
51
52#define IWL100_FW_PRE "iwlwifi-100-"
53#define IWL100_MODULE_FIRMWARE(api) IWL100_FW_PRE __stringify(api) ".ucode"
54
55
56static const struct iwl_base_params iwl1000_base_params = {
57 .num_of_queues = IWLAGN_NUM_QUEUES,
58 .eeprom_size = OTP_LOW_IMAGE_SIZE,
59 .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL,
60 .max_ll_items = OTP_MAX_LL_ITEMS_1000,
61 .shadow_ram_support = false,
62 .led_compensation = 51,
63 .wd_timeout = IWL_WATCHDOG_DISABLED,
64 .max_event_log_size = 128,
65};
66
67static const struct iwl_ht_params iwl1000_ht_params = {
68 .ht_greenfield_support = true,
69 .use_rts_for_aggregation = true,
70 .ht40_bands = BIT(IEEE80211_BAND_2GHZ),
71};
72
73static const struct iwl_eeprom_params iwl1000_eeprom_params = {
74 .regulatory_bands = {
75 EEPROM_REG_BAND_1_CHANNELS,
76 EEPROM_REG_BAND_2_CHANNELS,
77 EEPROM_REG_BAND_3_CHANNELS,
78 EEPROM_REG_BAND_4_CHANNELS,
79 EEPROM_REG_BAND_5_CHANNELS,
80 EEPROM_REG_BAND_24_HT40_CHANNELS,
81 EEPROM_REGULATORY_BAND_NO_HT40,
82 }
83};
84
85#define IWL_DEVICE_1000 \
86 .fw_name_pre = IWL1000_FW_PRE, \
87 .ucode_api_max = IWL1000_UCODE_API_MAX, \
88 .ucode_api_ok = IWL1000_UCODE_API_OK, \
89 .ucode_api_min = IWL1000_UCODE_API_MIN, \
90 .device_family = IWL_DEVICE_FAMILY_1000, \
91 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
92 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
93 .nvm_ver = EEPROM_1000_EEPROM_VERSION, \
94 .nvm_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
95 .base_params = &iwl1000_base_params, \
96 .eeprom_params = &iwl1000_eeprom_params, \
97 .led_mode = IWL_LED_BLINK
98
99const struct iwl_cfg iwl1000_bgn_cfg = {
100 .name = "Intel(R) Centrino(R) Wireless-N 1000 BGN",
101 IWL_DEVICE_1000,
102 .ht_params = &iwl1000_ht_params,
103};
104
105const struct iwl_cfg iwl1000_bg_cfg = {
106 .name = "Intel(R) Centrino(R) Wireless-N 1000 BG",
107 IWL_DEVICE_1000,
108};
109
110#define IWL_DEVICE_100 \
111 .fw_name_pre = IWL100_FW_PRE, \
112 .ucode_api_max = IWL100_UCODE_API_MAX, \
113 .ucode_api_ok = IWL100_UCODE_API_OK, \
114 .ucode_api_min = IWL100_UCODE_API_MIN, \
115 .device_family = IWL_DEVICE_FAMILY_100, \
116 .max_inst_size = IWLAGN_RTC_INST_SIZE, \
117 .max_data_size = IWLAGN_RTC_DATA_SIZE, \
118 .nvm_ver = EEPROM_1000_EEPROM_VERSION, \
119 .nvm_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
120 .base_params = &iwl1000_base_params, \
121 .eeprom_params = &iwl1000_eeprom_params, \
122 .led_mode = IWL_LED_RF_STATE, \
123 .rx_with_siso_diversity = true
124
125const struct iwl_cfg iwl100_bgn_cfg = {
126 .name = "Intel(R) Centrino(R) Wireless-N 100 BGN",
127 IWL_DEVICE_100,
128 .ht_params = &iwl1000_ht_params,
129};
130
131const struct iwl_cfg iwl100_bg_cfg = {
132 .name = "Intel(R) Centrino(R) Wireless-N 100 BG",
133 IWL_DEVICE_100,
134};
135
136MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_OK));
137MODULE_FIRMWARE(IWL100_MODULE_FIRMWARE(IWL100_UCODE_API_OK));
138