Skip to content

Commit 80315a5

Browse files
committed
iio: adc: at91-sama5d2_adc: add support for DMA
Added support for DMA transfers. The implementation uses the user watermark to decide whether DMA will be used or not. For watermark 1, DMA will not be used. If watermark is bigger, DMA will be used. Sysfs attributes are created to indicate whether the DMA is used, with hwfifo_enabled, and the current DMA watermark is readable in hwfifo_watermark. Minimum and maximum values are in hwfifo_watermark_min and hwfifo_watermark_max. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 7fa53e8 commit 80315a5

2 files changed

Lines changed: 434 additions & 20 deletions

File tree

drivers/iio/adc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ config AT91_SAMA5D2_ADC
158158
tristate "Atmel AT91 SAMA5D2 ADC"
159159
depends on ARCH_AT91 || COMPILE_TEST
160160
depends on HAS_IOMEM
161+
depends on HAS_DMA
161162
select IIO_TRIGGERED_BUFFER
162163
help
163164
Say yes here to build support for Atmel SAMA5D2 ADC which is

0 commit comments

Comments
 (0)