iwlwifi: gen2: support nmi triggering from host
authorLiad Kaufman <liad.kaufman@intel.com>
Tue, 28 Feb 2017 15:15:47 +0000 (17:15 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 19:51:12 +0000 (22:51 +0300)
For gen2 there is a new register.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-io.c
drivers/net/wireless/intel/iwlwifi/iwl-prph.h

index 0f893ae6e715b52c96a1886cca445a3612afd434..9c8b09cf1f7bb89d9895b22bfca58aff95b2334d 100644 (file)
@@ -246,6 +246,9 @@ void iwl_force_nmi(struct iwl_trans *trans)
                               DEVICE_SET_NMI_VAL_DRV);
                iwl_write_prph(trans, DEVICE_SET_NMI_REG,
                               DEVICE_SET_NMI_VAL_HW);
+       } else if (trans->cfg->gen2) {
+               iwl_write_prph(trans, UREG_NIC_SET_NMI_DRIVER,
+                              DEVICE_SET_NMI_8000_VAL);
        } else {
                iwl_write_prph(trans, DEVICE_SET_NMI_8000_REG,
                               DEVICE_SET_NMI_8000_VAL);
index f832e58e0ef99fc24e529ff4d93d5ca2b4b3c085..306bc967742ee9a7b5629bab00f20cab77309fa1 100644 (file)
 #define DEVICE_SET_NMI_VAL_DRV BIT(7)
 #define DEVICE_SET_NMI_8000_REG 0x00a01c24
 #define DEVICE_SET_NMI_8000_VAL 0x1000000
+#define UREG_NIC_SET_NMI_DRIVER 0x00a05c10
 
 /* Shared registers (0x0..0x3ff, via target indirect or periphery */
 #define SHR_BASE       0x00a10000