2023-09-09 10:09:45 +08:00
|
|
|
# Copyright 2020-2023 NXP
|
2021-03-31 19:46:34 +08:00
|
|
|
# Copyright (c) 2021 Basalte bv
|
2023-06-16 20:15:05 +08:00
|
|
|
# Copyright (c) 2023, ithinx GmbH
|
|
|
|
# Copyright (c) 2023, Tonies GmbH
|
2021-03-31 19:46:34 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-07-22 21:06:05 +08:00
|
|
|
if DT_HAS_NXP_IMX_FLEXSPI_ENABLED
|
2021-03-31 19:46:34 +08:00
|
|
|
|
2023-06-16 20:15:05 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_W956A8MBYA
|
|
|
|
bool "MCUX FlexSPI Winbond W956A8MBYA HyperRAM driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_IMX_FLEXSPI_W956A8MBYA_ENABLED
|
|
|
|
select MEMC_MCUX_FLEXSPI
|
|
|
|
|
2022-12-21 06:54:08 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_S27KS0641
|
|
|
|
bool "MCUX FlexSPI Cypress S27KS0641 HyperRAM driver"
|
2022-07-22 21:06:05 +08:00
|
|
|
default y
|
2022-12-21 06:54:08 +08:00
|
|
|
depends on DT_HAS_NXP_IMX_FLEXSPI_S27KS0641_ENABLED
|
2021-03-31 19:50:03 +08:00
|
|
|
select MEMC_MCUX_FLEXSPI
|
|
|
|
|
2022-12-21 07:04:09 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_APS6408L
|
|
|
|
bool "MCUX FlexSPI AP Memory APS6408L pSRAM driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_IMX_FLEXSPI_APS6408L_ENABLED
|
|
|
|
select MEMC_MCUX_FLEXSPI
|
|
|
|
|
2024-03-23 00:58:27 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_IS66WVQ8M4
|
|
|
|
bool "MCUX FlexSPI ISSI IS66WVQ8M4 pSRAM driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_IMX_FLEXSPI_IS66WVQ8M4_ENABLED
|
|
|
|
select MEMC_MCUX_FLEXSPI
|
|
|
|
|
2024-10-16 00:58:46 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_APS6404L
|
|
|
|
bool "MCUX FlexSPI AP Memory APS6404L pSRAM driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_IMX_FLEXSPI_APS6404L_ENABLED
|
|
|
|
select MEMC_MCUX_FLEXSPI
|
|
|
|
|
2024-05-10 01:14:19 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_INIT_PRIORITY
|
|
|
|
int "MCUX FLEXSPI MEMC driver initialization priority"
|
|
|
|
default MEMC_INIT_PRIORITY
|
|
|
|
help
|
|
|
|
Initialization priority for FlexSPI MEMC driver. In cases where the
|
|
|
|
flash driver must initialize before the MEMC RAM driver,
|
|
|
|
initialization priorities can be set such that
|
|
|
|
MEMC_MCUX_FLEXSPI_INIT_PRIORITY < FLASH_INIT_PRIORITY <
|
|
|
|
MEMC_INIT_PRIORITY
|
|
|
|
|
2024-05-10 01:15:49 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI_INIT_XIP
|
|
|
|
bool "Initialize FLEXSPI when using device for XIP"
|
|
|
|
help
|
|
|
|
Initialize the FLEXSPI device even when using it for XIP. If this
|
|
|
|
Kconfig is enabled, the user must ensure that the pin control
|
|
|
|
state used does not reconfigure the pins used to interface with
|
|
|
|
the flash device used for XIP, and that the configuration settings
|
|
|
|
used for the FLEXSPI are compatible with those needed for XIP from
|
|
|
|
the flash device.
|
|
|
|
|
2021-03-31 19:46:34 +08:00
|
|
|
config MEMC_MCUX_FLEXSPI
|
|
|
|
bool
|
2023-04-19 22:41:53 +08:00
|
|
|
select PINCTRL
|
2021-03-31 19:46:34 +08:00
|
|
|
|
2024-08-10 04:33:18 +08:00
|
|
|
# Avoid RWW hazards by defaulting logging to disabled
|
|
|
|
choice MEMC_LOG_LEVEL_CHOICE
|
|
|
|
default MEMC_LOG_LEVEL_OFF if FLASH_MCUX_FLEXSPI_XIP
|
|
|
|
endchoice
|
|
|
|
|
2023-09-09 10:09:45 +08:00
|
|
|
endif # DT_HAS_NXP_IMX_FLEXSPI_ENABLED
|
|
|
|
|
|
|
|
|
|
|
|
if DT_HAS_NXP_FLEXRAM_ENABLED
|
|
|
|
|
|
|
|
config MEMC_NXP_FLEXRAM
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
|
|
|
config MEMC_NXP_FLEXRAM_MAGIC_ADDR_API
|
|
|
|
bool "NXP FlexRAM magic addr API"
|
|
|
|
help
|
|
|
|
Enable API to use flexRAM magic address functionality
|
|
|
|
|
|
|
|
config MEMC_NXP_FLEXRAM_ERROR_INTERRUPT
|
|
|
|
bool "NXP FlexRAM error interrupt"
|
|
|
|
help
|
|
|
|
Allow flexram to generate error interrupts
|
|
|
|
|
|
|
|
endif # DT_HAS_NXP_FLEXRAM_ENABLED
|