drivers: flash: move FLASH_HAS_PAGE_LAYOUT Kconfig from arch
Keyword FLASH_HAS_PAGE_LAYOUT is related to flash and should
be declared in its Kconfig.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/arch/Kconfig b/arch/Kconfig
index 585e19d..6f14189 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -269,13 +269,6 @@
endmenu
-config FLASH_HAS_PAGE_LAYOUT
- bool
- default n
- help
- This option is enabled when the SoC flash driver supports
- retrieving the layout of flash memory pages.
-
#
# End hidden PM feature configs
#
diff --git a/drivers/flash/Kconfig b/drivers/flash/Kconfig
index 3055ffa..5242ba3 100644
--- a/drivers/flash/Kconfig
+++ b/drivers/flash/Kconfig
@@ -15,6 +15,13 @@
help
This option is enabled when any flash driver is enabled.
+config FLASH_HAS_PAGE_LAYOUT
+ bool
+ default n
+ help
+ This option is enabled when the SoC flash driver supports
+ retrieving the layout of flash memory pages.
+
menuconfig FLASH
bool
prompt "Flash hardware support"