From 63cb86f1b395ec5a714801f8ab08d650082fc518 Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Fri, 24 May 2019 14:26:51 +0200 Subject: [PATCH] drivers: move cavs kconfigs to separate file Signed-off-by: Janusz Jankowski --- src/drivers/Kconfig | 110 +-------------------------------- src/drivers/intel/cavs/Kconfig | 109 ++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+), 109 deletions(-) create mode 100644 src/drivers/intel/cavs/Kconfig diff --git a/src/drivers/Kconfig b/src/drivers/Kconfig index a0fc9bd57..c523f4aac 100644 --- a/src/drivers/Kconfig +++ b/src/drivers/Kconfig @@ -1,114 +1,6 @@ menu "Drivers" -config CAVS_DMIC - bool "Intel cAVS DMIC driver" - depends on CAVS - default n - help - Select this to enable Intel cAVS DMIC driver. The DMIC driver provides - as DAI the SoC direct attach digital microphones interface. - -if CAVS_DMIC - -choice - prompt "FIR decimation coefficients set" - default CAVS_DMIC_FIR_FULL - -config CAVS_DMIC_FIR_FULL - bool "Full set" - select CAVS_DMIC_FIR_DECIMATE_BY_2 - select CAVS_DMIC_FIR_DECIMATE_BY_3 - select CAVS_DMIC_FIR_DECIMATE_BY_4 - select CAVS_DMIC_FIR_DECIMATE_BY_5 - select CAVS_DMIC_FIR_DECIMATE_BY_6 - select CAVS_DMIC_FIR_DECIMATE_BY_8 - help - This option adds to previous all currently defined FIR - coefficients sets to support sample rates 8 - 96 kHz with - several microphone clock rates. The tables increase the size - of the driver so this option should not be used in minimal - systems. - -config CAVS_DMIC_FIR_LOW_MEMORY - bool "Small set" - select CAVS_DMIC_FIR_DECIMATE_BY_2 - select CAVS_DMIC_FIR_DECIMATE_BY_6 - help - This option is used to minimize driver footprint but - preserve support for 48 kHz and 16 kHz sample rates - at typical 2.4 MHz microphone clock rate. The option - enables decimation factors 2 and 6. - -config CAVS_DMIC_FIR_CUSTOM - bool "Custom set" - help - This option is used to select each supported decimation - factor. - -endchoice - -menu "Decimation factors" - visible if CAVS_DMIC_FIR_CUSTOM - -config CAVS_DMIC_FIR_DECIMATE_BY_2 - bool "FIR decimate by 2" - default n - help - This includes FIR coefficients to decimate by 2 - into the build. - -config CAVS_DMIC_FIR_DECIMATE_BY_3 - bool "FIR decimate by 3" - default n - help - This includes FIR coefficients to decimate by 3 - into the build. - -config CAVS_DMIC_FIR_DECIMATE_BY_4 - bool "FIR decimate by 4" - default n - help - This includes FIR coefficients to decimate by 4 - into the build. - -config CAVS_DMIC_FIR_DECIMATE_BY_5 - bool "FIR decimate by 5" - default n - help - This includes FIR coefficients to decimate by 5 - into the build. - -config CAVS_DMIC_FIR_DECIMATE_BY_6 - bool "FIR decimate by 6" - default n - help - This includes FIR coefficients to decimate by 6 - into the build. - -config CAVS_DMIC_FIR_DECIMATE_BY_8 - bool "FIR decimate by 8" - default n - help - This includes FIR coefficients to decimate by 8 - into the build. - -endmenu # "Decimation factors" - -endif # CAVS_DMIC - -config CAVS_SSP - bool "Intel cAVS SSP driver" - depends on CAVS - default n - help - Select this to enable Intel cAVS Synchronous Serial Port (SSP) driver. - -config CAVS_SOUNDWIRE - bool "Intel cAVS SoundWire driver" - depends on CAVS - default n - help - Select this to enable Intel cAVS SoundWire driver. +source "src/drivers/intel/cavs/Kconfig" config DW_DMA bool "Designware DMA driver" diff --git a/src/drivers/intel/cavs/Kconfig b/src/drivers/intel/cavs/Kconfig new file mode 100644 index 000000000..3697063ef --- /dev/null +++ b/src/drivers/intel/cavs/Kconfig @@ -0,0 +1,109 @@ +config CAVS_DMIC + bool "Intel cAVS DMIC driver" + depends on CAVS + default n + help + Select this to enable Intel cAVS DMIC driver. The DMIC driver provides + as DAI the SoC direct attach digital microphones interface. + +if CAVS_DMIC + +choice + prompt "FIR decimation coefficients set" + default CAVS_DMIC_FIR_FULL + +config CAVS_DMIC_FIR_FULL + bool "Full set" + select CAVS_DMIC_FIR_DECIMATE_BY_2 + select CAVS_DMIC_FIR_DECIMATE_BY_3 + select CAVS_DMIC_FIR_DECIMATE_BY_4 + select CAVS_DMIC_FIR_DECIMATE_BY_5 + select CAVS_DMIC_FIR_DECIMATE_BY_6 + select CAVS_DMIC_FIR_DECIMATE_BY_8 + help + This option adds to previous all currently defined FIR + coefficients sets to support sample rates 8 - 96 kHz with + several microphone clock rates. The tables increase the size + of the driver so this option should not be used in minimal + systems. + +config CAVS_DMIC_FIR_LOW_MEMORY + bool "Small set" + select CAVS_DMIC_FIR_DECIMATE_BY_2 + select CAVS_DMIC_FIR_DECIMATE_BY_6 + help + This option is used to minimize driver footprint but + preserve support for 48 kHz and 16 kHz sample rates + at typical 2.4 MHz microphone clock rate. The option + enables decimation factors 2 and 6. + +config CAVS_DMIC_FIR_CUSTOM + bool "Custom set" + help + This option is used to select each supported decimation + factor. + +endchoice + +menu "Decimation factors" + visible if CAVS_DMIC_FIR_CUSTOM + +config CAVS_DMIC_FIR_DECIMATE_BY_2 + bool "FIR decimate by 2" + default n + help + This includes FIR coefficients to decimate by 2 + into the build. + +config CAVS_DMIC_FIR_DECIMATE_BY_3 + bool "FIR decimate by 3" + default n + help + This includes FIR coefficients to decimate by 3 + into the build. + +config CAVS_DMIC_FIR_DECIMATE_BY_4 + bool "FIR decimate by 4" + default n + help + This includes FIR coefficients to decimate by 4 + into the build. + +config CAVS_DMIC_FIR_DECIMATE_BY_5 + bool "FIR decimate by 5" + default n + help + This includes FIR coefficients to decimate by 5 + into the build. + +config CAVS_DMIC_FIR_DECIMATE_BY_6 + bool "FIR decimate by 6" + default n + help + This includes FIR coefficients to decimate by 6 + into the build. + +config CAVS_DMIC_FIR_DECIMATE_BY_8 + bool "FIR decimate by 8" + default n + help + This includes FIR coefficients to decimate by 8 + into the build. + +endmenu # "Decimation factors" + +endif # CAVS_DMIC + +config CAVS_SSP + bool "Intel cAVS SSP driver" + depends on CAVS + default n + help + Select this to enable Intel cAVS Synchronous Serial Port (SSP) driver. + +config CAVS_SOUNDWIRE + bool "Intel cAVS SoundWire driver" + depends on CAVS + default n + help + Select this to enable Intel cAVS SoundWire driver.