From 1f27a456cd73502d0a54b1807317616f9224d5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Fri, 15 Feb 2019 14:42:39 +0100 Subject: [PATCH] kconfig: flash: Move mcux code into it's own file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleanup the Kconfig code for the flash driver. Platform-specific options should be in their own Kconfig files to be consistent and to not pollute the common configuration. To this end we move the mcux options into it's own file. Signed-off-by: Sebastian Bøe --- drivers/flash/Kconfig | 12 +----------- drivers/flash/Kconfig.mcux | 11 +++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 drivers/flash/Kconfig.mcux diff --git a/drivers/flash/Kconfig b/drivers/flash/Kconfig index 7d8a66972b0..cf8058ecf7e 100644 --- a/drivers/flash/Kconfig +++ b/drivers/flash/Kconfig @@ -66,17 +66,7 @@ config SOC_FLASH_NRF_UICR Enable operations on UICR. Once enabled UICR are written or read as ordinary flash memory. Erase is possible for whole UICR at once. -config SOC_FLASH_MCUX - bool "MCUX flash shim driver" - depends on HAS_MCUX - select FLASH_HAS_PAGE_LAYOUT - select FLASH_HAS_DRIVER_ENABLED - help - Enables the MCUX flash shim driver. - WARNING: This driver will disable the system interrupts for - the duration of the flash erase/write operations. This will - have an impact on the overall system performance - whether - this is acceptable or not will depend on the use case. +source "drivers/flash/Kconfig.mcux" source "drivers/flash/Kconfig.nios2_qspi" diff --git a/drivers/flash/Kconfig.mcux b/drivers/flash/Kconfig.mcux new file mode 100644 index 00000000000..68e233da5c7 --- /dev/null +++ b/drivers/flash/Kconfig.mcux @@ -0,0 +1,11 @@ +config SOC_FLASH_MCUX + bool "MCUX flash shim driver" + depends on HAS_MCUX + select FLASH_HAS_PAGE_LAYOUT + select FLASH_HAS_DRIVER_ENABLED + help + Enables the MCUX flash shim driver. + WARNING: This driver will disable the system interrupts for + the duration of the flash erase/write operations. This will + have an impact on the overall system performance - whether + this is acceptable or not will depend on the use case.