mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
wifi: iwlwifi: add mapping of a periphery register crf for WH RF
Add the support for prph register RF details and map it to get the RF ID of NIC. Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230921110727.ccfc4868111f.I94dd75fc82443facf571f2fe8e23c50e9053a35a@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
3aa80d3186
commit
c513228c47
@@ -452,6 +452,7 @@ enum {
|
||||
#define REG_CRF_ID_TYPE_FM 0x910
|
||||
#define REG_CRF_ID_TYPE_FMI 0x930
|
||||
#define REG_CRF_ID_TYPE_FMR 0x900
|
||||
#define REG_CRF_ID_TYPE_WHP 0xA10
|
||||
|
||||
#define HPM_DEBUG 0xA03440
|
||||
#define PERSISTENCE_BIT BIT(12)
|
||||
|
||||
@@ -1196,6 +1196,9 @@ static int map_crf_id(struct iwl_trans *iwl_trans)
|
||||
case REG_CRF_ID_TYPE_FMR:
|
||||
iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_FM << 12);
|
||||
break;
|
||||
case REG_CRF_ID_TYPE_WHP:
|
||||
iwl_trans->hw_rf_id = (IWL_CFG_RF_TYPE_WH << 12);
|
||||
break;
|
||||
default:
|
||||
ret = -EIO;
|
||||
IWL_ERR(iwl_trans,
|
||||
|
||||
Reference in New Issue
Block a user