drivers: flash/memc: Source logging kconfig last

Some flash/memc drivers like flexspi will want to default the
value of the log level to off to avoid RWW hazard while XIP,
to do this, the logging template must be sourced after the driver
kconfig files so that the default value from the driver is able
to be checked, since logging template introduces an unconditional
default otherwise.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-08-14 17:45:39 -05:00 committed by Alberto Escolar
commit 57d777b640
2 changed files with 8 additions and 8 deletions

View file

@ -86,10 +86,6 @@ menuconfig FLASH
if FLASH
module = FLASH
module-str = flash
source "subsys/logging/Kconfig.template.log_config"
config FLASH_JESD216_API
bool "Provide API to read JESD216 flash parameters"
depends on FLASH_JESD216
@ -239,4 +235,8 @@ source "drivers/flash/Kconfig.nrf_mram"
source "drivers/flash/Kconfig.numaker_rmc"
module = FLASH
module-str = flash
source "subsys/logging/Kconfig.template.log_config"
endif # FLASH

View file

@ -11,10 +11,6 @@ menuconfig MEMC
if MEMC
module = MEMC
module-str = memc
source "subsys/logging/Kconfig.template.log_config"
config MEMC_INIT_PRIORITY
int "Initialization priority"
default 0
@ -35,4 +31,8 @@ source "drivers/memc/Kconfig.smartbond"
source "drivers/memc/Kconfig.mspi"
module = MEMC
module-str = memc
source "subsys/logging/Kconfig.template.log_config"
endif