Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcf6640f authored by Wey-Yi Guy's avatar Wey-Yi Guy
Browse files

iwlagn: PAPD read for 2000 series devices



For 2000 series NICs, disable OTP refresh in order to read correct
PAPD table from high OTP block

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent a2b76b3b
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -98,6 +98,8 @@ static void iwl2000_nic_config(struct iwl_priv *priv)
		iwl_set_bit(priv, CSR_GP_DRIVER_REG,
		iwl_set_bit(priv, CSR_GP_DRIVER_REG,
			    CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER);
			    CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER);


	if (priv->cfg->disable_otp_refresh)
		iwl_write_prph(priv, APMG_ANALOG_SVR_REG, 0x80000010);
}
}


static struct iwl_sensitivity_ranges iwl2000_sensitivity = {
static struct iwl_sensitivity_ranges iwl2000_sensitivity = {
@@ -409,7 +411,8 @@ static struct iwl_bt_params iwl2030_bt_params = {
	.need_dc_calib = true,					\
	.need_dc_calib = true,					\
	.need_temp_offset_calib = true,				\
	.need_temp_offset_calib = true,				\
	.led_mode = IWL_LED_RF_STATE,				\
	.led_mode = IWL_LED_RF_STATE,				\
	.iq_invert = true					\
	.iq_invert = true,					\
	.disable_otp_refresh = true				\


struct iwl_cfg iwl2000_2bgn_cfg = {
struct iwl_cfg iwl2000_2bgn_cfg = {
	.name = "2000 Series 2x2 BGN",
	.name = "2000 Series 2x2 BGN",
+2 −0
Original line number Original line Diff line number Diff line
@@ -331,6 +331,7 @@ struct iwl_ht_params {
 * @rx_with_siso_diversity: 1x1 device with rx antenna diversity
 * @rx_with_siso_diversity: 1x1 device with rx antenna diversity
 * @internal_wimax_coex: internal wifi/wimax combo device
 * @internal_wimax_coex: internal wifi/wimax combo device
 * @iq_invert: I/Q inversion
 * @iq_invert: I/Q inversion
 * @disable_otp_refresh: disable OTP refresh current limit
 *
 *
 * We enable the driver to be backward compatible wrt API version. The
 * We enable the driver to be backward compatible wrt API version. The
 * driver specifies which APIs it supports (with @ucode_api_max being the
 * driver specifies which APIs it supports (with @ucode_api_max being the
@@ -381,6 +382,7 @@ struct iwl_cfg {
	const bool rx_with_siso_diversity;
	const bool rx_with_siso_diversity;
	const bool internal_wimax_coex;
	const bool internal_wimax_coex;
	const bool iq_invert;
	const bool iq_invert;
	const bool disable_otp_refresh;
};
};


/***************************
/***************************