From def3e2de5dcc49c85502f4fcb4a7367af9e9e90c Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Tue, 11 Jun 2019 11:16:46 +0200 Subject: [PATCH] drivers: group DW configs in one Kconfig file It is better to have company/family related features grouped. Signed-off-by: Janusz Jankowski --- Kconfig | 8 -------- src/drivers/Kconfig | 13 +------------ src/drivers/dw/Kconfig | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 src/drivers/dw/Kconfig diff --git a/Kconfig b/Kconfig index e332333a8..25196ae3e 100644 --- a/Kconfig +++ b/Kconfig @@ -61,18 +61,10 @@ config MEM_WND bool default n -config DW_SPI - bool - default n - config INTEL_IOMUX bool default n -config DW_GPIO - bool - default n - config HW_LLI bool default n diff --git a/src/drivers/Kconfig b/src/drivers/Kconfig index 828a79b5f..64b8848ac 100644 --- a/src/drivers/Kconfig +++ b/src/drivers/Kconfig @@ -4,17 +4,6 @@ menu "Drivers" source "src/drivers/intel/cavs/Kconfig" -config DW - bool - default n - help - This has to be selected if platform supports Designware features. - -config DW_DMA - bool "Designware DMA driver" - depends on DW - default n - help - Select this to enable support for the Designware DMA controller. +source "src/drivers/dw/Kconfig" endmenu # "Drivers" diff --git a/src/drivers/dw/Kconfig b/src/drivers/dw/Kconfig new file mode 100644 index 000000000..f6b77c0bf --- /dev/null +++ b/src/drivers/dw/Kconfig @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: BSD-3-Clause + +config DW + bool + default n + help + This has to be selected if platform supports Designware features. + +if DW + +config DW_DMA + bool "Designware DMA driver" + default n + help + Select this to enable support for the Designware DMA controller. + +config DW_SPI + bool + default n + +config DW_GPIO + bool + default n + +endif # DW