提交 a57f8dac 编写于 作者: T Thomas Betker 提交者: Jonathan Cameron

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: NHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: NThomas Betker <thomas.betker@rohde-schwarz.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 0d2f6fd3
...@@ -857,6 +857,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev, ...@@ -857,6 +857,7 @@ static int xadc_read_raw(struct iio_dev *indio_dev,
case XADC_REG_VCCINT: case XADC_REG_VCCINT:
case XADC_REG_VCCAUX: case XADC_REG_VCCAUX:
case XADC_REG_VREFP: case XADC_REG_VREFP:
case XADC_REG_VREFN:
case XADC_REG_VCCBRAM: case XADC_REG_VCCBRAM:
case XADC_REG_VCCPINT: case XADC_REG_VCCPINT:
case XADC_REG_VCCPAUX: case XADC_REG_VCCPAUX:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册