Skip to content

Commit

Permalink
drivers: ad9361: fix fast lock addressing
Browse files Browse the repository at this point in the history
Charge Pump Current value is 6 bits wide, therefore the VCO Bias Tcf
value for profile6 needs to be shifted with 6 bits instead of 3.

Fixes: c44c35b ("drivers/iio/adc/ad9361: Add Fastlock Profile Support")
Signed-off-by: Antoniu Miclaus <[email protected]>
  • Loading branch information
amiclaus authored and nunojsa committed Mar 27, 2023
1 parent 8d14c0d commit abad355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/ad9361.c
Original file line number Diff line number Diff line change
Expand Up @@ -4572,7 +4572,7 @@ static int ad9361_fastlock_store(struct ad9361_rf_phy *phy, bool tx, u32 profile
/* Wide BW option: N = 1
* Set init and steady state values to the same - let user space handle it
*/
val[6] = (x << 3) | y;
val[6] = (x << 6) | y;
val[7] = y;

x = ad9361_spi_readf(spi, REG_RX_LOOP_FILTER_3 + offs, LOOP_FILTER_R3(~0));
Expand Down

0 comments on commit abad355

Please sign in to comment.