Skip to content

Commit

Permalink
iio: adc: adrv9009_conv: Remove DAC Core settings from the ADC TPL Core
Browse files Browse the repository at this point in the history
This drops the need for overlapping memory regions. The DAC TPL
Core driver already sets the RATE and the data format. So this is
no longer necessary.

Signed-off-by: Michael Hennerich <[email protected]>
  • Loading branch information
mhennerich committed Jun 15, 2022
1 parent 3b57537 commit 7fc0b99
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/iio/adc/adrv9009_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,6 @@ static int adrv9009_post_setup(struct iio_dev *indio_dev)
conv->indio_dev = indio_dev;
axiadc_write(st, ADI_REG_CNTRL, 0);

if (has_tx_and_en(conv->phy)) {
unsigned tmp;

tmp = axiadc_read(st, 0x4048);
tmp &= ~BIT(5);
axiadc_write(st, 0x4048, tmp);
axiadc_write(st, 0x404c, 3); /* RATE */
}

for (i = 0; i < num_chan; i++) {
axiadc_write(st, ADI_REG_CHAN_CNTRL_1(i),
ADI_DCFILT_OFFSET(0));
Expand All @@ -199,7 +190,6 @@ static int adrv9009_post_setup(struct iio_dev *indio_dev)
ADI_ENABLE | ADI_IQCOR_ENB);
}


return 0;
}

Expand Down

0 comments on commit 7fc0b99

Please sign in to comment.