File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
drivers/net/wireless/intel/iwlwifi Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 147
147
#define CSR_MAC_SHADOW_REG_CTL2 (CSR_BASE + 0x0AC)
148
148
#define CSR_MAC_SHADOW_REG_CTL2_RX_WAKE 0xFFFF
149
149
150
+ /* LTR control (since IWL_DEVICE_FAMILY_22000) */
151
+ #define CSR_LTR_LONG_VAL_AD (CSR_BASE + 0x0D4)
152
+ #define CSR_LTR_LONG_VAL_AD_NO_SNOOP_REQ 0x80000000
153
+ #define CSR_LTR_LONG_VAL_AD_NO_SNOOP_SCALE 0x1c000000
154
+ #define CSR_LTR_LONG_VAL_AD_NO_SNOOP_VAL 0x03ff0000
155
+ #define CSR_LTR_LONG_VAL_AD_SNOOP_REQ 0x00008000
156
+ #define CSR_LTR_LONG_VAL_AD_SNOOP_SCALE 0x00001c00
157
+ #define CSR_LTR_LONG_VAL_AD_SNOOP_VAL 0x000003ff
158
+ #define CSR_LTR_LONG_VAL_AD_SCALE_USEC 2
159
+
150
160
/* GIO Chicken Bits (PCI Express bus link power management) */
151
161
#define CSR_GIO_CHICKEN_BITS (CSR_BASE+0x100)
152
162
Original file line number Diff line number Diff line change @@ -252,6 +252,26 @@ int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans,
252
252
253
253
iwl_set_bit (trans , CSR_CTXT_INFO_BOOT_CTRL ,
254
254
CSR_AUTO_FUNC_BOOT_ENA );
255
+
256
+ if (trans -> trans_cfg -> device_family == IWL_DEVICE_FAMILY_AX210 ) {
257
+ /*
258
+ * The firmware initializes this again later (to a smaller
259
+ * value), but for the boot process initialize the LTR to
260
+ * ~250 usec.
261
+ */
262
+ u32 val = CSR_LTR_LONG_VAL_AD_NO_SNOOP_REQ |
263
+ u32_encode_bits (CSR_LTR_LONG_VAL_AD_SCALE_USEC ,
264
+ CSR_LTR_LONG_VAL_AD_NO_SNOOP_SCALE ) |
265
+ u32_encode_bits (250 ,
266
+ CSR_LTR_LONG_VAL_AD_NO_SNOOP_VAL ) |
267
+ CSR_LTR_LONG_VAL_AD_SNOOP_REQ |
268
+ u32_encode_bits (CSR_LTR_LONG_VAL_AD_SCALE_USEC ,
269
+ CSR_LTR_LONG_VAL_AD_SNOOP_SCALE ) |
270
+ u32_encode_bits (250 , CSR_LTR_LONG_VAL_AD_SNOOP_VAL );
271
+
272
+ iwl_write32 (trans , CSR_LTR_LONG_VAL_AD , val );
273
+ }
274
+
255
275
if (trans -> trans_cfg -> device_family >= IWL_DEVICE_FAMILY_AX210 )
256
276
iwl_write_umac_prph (trans , UREG_CPU_INIT_RUN , 1 );
257
277
else
You can’t perform that action at this time.
0 commit comments