iwlwifi: allow different csr flags for different device families
authorGolan Ben Ami <golan.ben.ami@intel.com>
Sun, 22 Oct 2017 12:58:26 +0000 (15:58 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Jul 2018 10:16:13 +0000 (13:16 +0300)
commitc8f1b51e506dec74e671ed61f67e639754da322f
tree9046aa5818836dd9dc4d0c494ee4e3396c10b1de
parent33708052993ceed27a67669a5badf2efb2841bd0
iwlwifi: allow different csr flags for different device families

Different device families may have different flag values
for passing a message to the fw (i.e. SW_RESET).
In order to keep the code readable, and avoid conditioning
upon the family, store a value for each flag, which indicates
the bit that needs to be enabled.

Additionally, support 22560 device csr flags and addresses.

Signed-off-by: Golan Ben Ami <golan.ben.ami@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h