Skip to content

Commit

Permalink
ad9361: fix FORCE_VCO_TUNE_ENABLE typo
Browse files Browse the repository at this point in the history
The author used FORCE_VCO_TUNE instead of FORCE_VCO_TUNE_ENABLE.

FORCE_VCO_TUNE is the 8th (MSB) of the VCO capacitor tune word.
FORCE_VCO_TUNE_ENABLE is the bit that forces or not the usage
of the VCO capacitor tune word.

Signed-off-by: Darius Berghe <darius.berghe@analog.com>
(cherry picked from commit f381142)
  • Loading branch information
buha authored and SRaus committed Jun 18, 2024
1 parent e06af68 commit 20e9045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iio/adc/ad9361.c
Original file line number Diff line number Diff line change
Expand Up @@ -4646,9 +4646,9 @@ static int ad9361_fastlock_prepare(struct ad9361_rf_phy *phy, bool tx,

/* Workaround: Exiting Fastlock Mode */
ad9361_spi_writef(phy->spi, REG_RX_FORCE_ALC + offs, FORCE_ALC_ENABLE, 1);
ad9361_spi_writef(phy->spi, REG_RX_FORCE_VCO_TUNE_1 + offs, FORCE_VCO_TUNE, 1);
ad9361_spi_writef(phy->spi, REG_RX_FORCE_VCO_TUNE_1 + offs, FORCE_VCO_TUNE_ENABLE, 1);
ad9361_spi_writef(phy->spi, REG_RX_FORCE_ALC + offs, FORCE_ALC_ENABLE, 0);
ad9361_spi_writef(phy->spi, REG_RX_FORCE_VCO_TUNE_1 + offs, FORCE_VCO_TUNE, 0);
ad9361_spi_writef(phy->spi, REG_RX_FORCE_VCO_TUNE_1 + offs, FORCE_VCO_TUNE_ENABLE, 0);

ad9361_trx_vco_cal_control(phy, tx, true);
ad9361_spi_writef(phy->spi, REG_ENSM_CONFIG_2, ready_mask, 0);
Expand Down

0 comments on commit 20e9045

Please sign in to comment.