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 <michallenc@seznam.cz>
This commit is contained in:
Michal Lenc 2024-05-27 13:14:34 +02:00 committed by Xiang Xiao
parent 0fc2e74b04
commit 44ef021bc5
1 changed files with 10 additions and 0 deletions

View File

@ -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