zephyr/drivers/memc/Kconfig
Ioannis Karachalios 7c5c459440 drivers: memc: Fix various APS6404 device issues
This commit deals with fixing various issues that prevents
the device from being built. In specific:

1. Fix default timing macro definitions to build with
an MSPI controller, other than AMBIG.
Add macro definition for MSPI_PORT.
2. Timing settings should be applied only when MSPI_TIMING
is defined. Otherwise, the APS6404 initialization routine
will fail with -EIO.
3. Similarly, use MSPI_XIP and MSPI_SCRAMBLE to apply XIP
and SCRAMBLE device settings, respectively (optimization).
4. MEMC_INIT_PRIORITY is assigned higher priority than
MSPI_INIT_PRIORITY which results in compiler error as
APS6404 device initialization depends on its underlying
MSPI bus controller.
5. The 'acquire' subroutine should be compiled when PM_DEVICE
is used (suppress compiler warning).

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2024-11-08 13:56:31 -06:00

40 lines
763 B
Plaintext

# Memory controller configuration options
# Copyright (c) 2020 Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
menuconfig MEMC
bool "Memory controller drivers [EXPERIMENTAL]"
select EXPERIMENTAL
help
Add support for memory controllers
if MEMC
config MEMC_INIT_PRIORITY
int "Initialization priority"
default 80 if MSPI
default 0
help
Memory controllers initialization priority.
source "drivers/memc/Kconfig.stm32"
source "drivers/memc/Kconfig.mcux"
source "drivers/memc/Kconfig.sam"
source "drivers/memc/Kconfig.sifive"
source "drivers/memc/Kconfig.nxp_s32"
source "drivers/memc/Kconfig.smartbond"
source "drivers/memc/Kconfig.mspi"
module = MEMC
module-str = memc
source "subsys/logging/Kconfig.template.log_config"
endif