Skip to content

Commit a57f8da

Browse files
tbetker-rsjic23
authored andcommitted
iio: adc: xilinx: Fix VREFN scale
The scaling factor for VREFN is 3.0/4096 (not 1.0/4096), just as for VREFP. This is not immediately obvious from the specification (Xilinx UG480), but has been confirmed by Xilinx support. Suggested-by: Hartmut Knaack <[email protected]> Signed-off-by: Thomas Betker <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 0d2f6fd commit a57f8da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/adc/xilinx-xadc-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev,
857857
case XADC_REG_VCCINT:
858858
case XADC_REG_VCCAUX:
859859
case XADC_REG_VREFP:
860+
case XADC_REG_VREFN:
860861
case XADC_REG_VCCBRAM:
861862
case XADC_REG_VCCPINT:
862863
case XADC_REG_VCCPAUX:

0 commit comments

Comments
 (0)