Commit 7f165fdf authored by Mukesh Sisodiya's avatar Mukesh Sisodiya Committed by Johannes Berg
Browse files

wifi: iwlwifi: Adding the code to get RF name for MsP device

parent f567b9b4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -348,6 +348,7 @@ enum {
#define CSR_HW_RF_ID_TYPE_HRCDB		(0x00109F00)
#define CSR_HW_RF_ID_TYPE_HRCDB		(0x00109F00)
#define CSR_HW_RF_ID_TYPE_GF		(0x0010D000)
#define CSR_HW_RF_ID_TYPE_GF		(0x0010D000)
#define CSR_HW_RF_ID_TYPE_GF4		(0x0010E000)
#define CSR_HW_RF_ID_TYPE_GF4		(0x0010E000)
#define CSR_HW_RF_ID_TYPE_MS		(0x00111000)


/* HW_RF CHIP STEP  */
/* HW_RF CHIP STEP  */
#define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF)
#define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF)
+4 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
/*
 * Copyright (C) 2017 Intel Deutschland GmbH
 * Copyright (C) 2017 Intel Deutschland GmbH
 * Copyright (C) 2018-2021 Intel Corporation
 * Copyright (C) 2018-2022 Intel Corporation
 */
 */
#include "iwl-trans.h"
#include "iwl-trans.h"
#include "iwl-prph.h"
#include "iwl-prph.h"
@@ -277,6 +277,9 @@ static void iwl_pcie_get_rf_name(struct iwl_trans *trans)
	case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_HRCDB):
	case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_HRCDB):
		pos = scnprintf(buf, buflen, "HRCDB");
		pos = scnprintf(buf, buflen, "HRCDB");
		break;
		break;
	case CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_MS):
		pos = scnprintf(buf, buflen, "MS");
		break;
	default:
	default:
		return;
		return;
	}
	}