]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad9467: add new chip_info variables
authorNuno Sa <nuno.sa@analog.com>
Thu, 4 Jul 2024 09:25:22 +0000 (11:25 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Jul 2024 19:31:11 +0000 (20:31 +0100)
commitbdc87f98cab780a6edfa658f20d9f95ad7e7efea
treee72397db6f7a28b51d97e8025c2f73184d72655c
parent7394a155dd1215ce20fd2a562ff537929b0f86d5
iio: adc: ad9467: add new chip_info variables

Add new variables to the per chip info structure:

* test_points: Number of valid test points for calibration;
* has_dco_invert: Supports inverting DCO (Data clock output) polarity;
* dco_en: Specicic mask to enable DCO delays.

This is in preparation for supporting new parts with subtle differences
in how to configure the hardware.

Note that with the new test_points variable, we also add a new
calib_map_size to 'struct ad9467_state' so we know our map size
depending on how many test points we have and if we can run the
calibration in the inverted state or not.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-2-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad9467.c