• Beniamin Bia's avatar
    iio: adc: ad7606: Add support for software mode for ad7616 · f2a22e1e
    Beniamin Bia authored
    Support for ad7616 running in software was added. In order
    to activate the software mode, HW_RNGSEL pins must be pulled low.
    Oversampling and input ranges are now configured in corresponding
    registers. Ad7616 has multiple scale options when it is configured
    in software mode.
    Also, in order to support multiple devices in software mode, the spi
    calculation of registers address must be generic. Because
    the length of address and bit which specifies the read/write operation is
    different for every device, calculation of address was made generic.
    Signed-off-by: default avatarBeniamin Bia <beniamin.bia@analog.com>
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    f2a22e1e
ad7606.c 16.7 KB