From 44ef021bc5868f3e2ee2deb3fcf03f976e12f925 Mon Sep 17 00:00:00 2001 From: Michal Lenc Date: Mon, 27 May 2024 13:14:34 +0200 Subject: [PATCH] analog: add configuration option to set DAC FIFO size DAC driver uses CONFIG_DAC_FIFOSIZE, but this is not configurable from Kconfig. This adds the missing option and allows to set DAC FIFO size from the configuration. Signed-off-by: Michal Lenc --- drivers/analog/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/analog/Kconfig b/drivers/analog/Kconfig index a95be948d1..c7a5f0885b 100644 --- a/drivers/analog/Kconfig +++ b/drivers/analog/Kconfig @@ -245,6 +245,16 @@ config DAC if DAC +config DAC_FIFOSIZE + int "DAC buffer size" + default 8 + range 1 255 + ---help--- + This variable defines the size of the DAC ring buffer that is used + to queue sent DAC data until they can be retrieved by the + controller. This size is limited to 255 to fit uint8_t type used + in DAC driver. + config DAC_AD5410 bool "AD5410 support" default n