1# Copyright 2020-2023 NXP
2# Copyright (c) 2021 Basalte bv
3# Copyright (c) 2023, ithinx GmbH
4# Copyright (c) 2023, Tonies GmbH
5# SPDX-License-Identifier: Apache-2.0
6
7if DT_HAS_NXP_IMX_FLEXSPI_ENABLED
8
9config MEMC_MCUX_FLEXSPI_W956A8MBYA
10	bool "MCUX FlexSPI Winbond W956A8MBYA HyperRAM driver"
11	default y
12	depends on DT_HAS_NXP_IMX_FLEXSPI_W956A8MBYA_ENABLED
13	select MEMC_MCUX_FLEXSPI
14
15config MEMC_MCUX_FLEXSPI_S27KS0641
16	bool "MCUX FlexSPI Cypress S27KS0641 HyperRAM driver"
17	default y
18	depends on DT_HAS_NXP_IMX_FLEXSPI_S27KS0641_ENABLED
19	select MEMC_MCUX_FLEXSPI
20
21config MEMC_MCUX_FLEXSPI_APS6408L
22	bool "MCUX FlexSPI AP Memory APS6408L pSRAM driver"
23	default y
24	depends on DT_HAS_NXP_IMX_FLEXSPI_APS6408L_ENABLED
25	select MEMC_MCUX_FLEXSPI
26
27config MEMC_MCUX_FLEXSPI_IS66WVQ8M4
28	bool "MCUX FlexSPI ISSI IS66WVQ8M4 pSRAM driver"
29	default y
30	depends on DT_HAS_NXP_IMX_FLEXSPI_IS66WVQ8M4_ENABLED
31	select MEMC_MCUX_FLEXSPI
32
33config MEMC_MCUX_FLEXSPI_INIT_PRIORITY
34	int "MCUX FLEXSPI MEMC driver initialization priority"
35	default MEMC_INIT_PRIORITY
36	help
37	  Initialization priority for FlexSPI MEMC driver. In cases where the
38	  flash driver must initialize before the MEMC RAM driver,
39	  initialization priorities can be set such that
40	  MEMC_MCUX_FLEXSPI_INIT_PRIORITY < FLASH_INIT_PRIORITY <
41	  MEMC_INIT_PRIORITY
42
43config MEMC_MCUX_FLEXSPI_INIT_XIP
44	bool "Initialize FLEXSPI when using device for XIP"
45	help
46	  Initialize the FLEXSPI device even when using it for XIP. If this
47	  Kconfig is enabled, the user must ensure that the pin control
48	  state used does not reconfigure the pins used to interface with
49	  the flash device used for XIP, and that the configuration settings
50	  used for the FLEXSPI are compatible with those needed for XIP from
51	  the flash device.
52
53config MEMC_MCUX_FLEXSPI
54	bool
55	select PINCTRL
56
57endif # DT_HAS_NXP_IMX_FLEXSPI_ENABLED
58
59
60if DT_HAS_NXP_FLEXRAM_ENABLED
61
62config MEMC_NXP_FLEXRAM
63	bool
64	default y
65
66config MEMC_NXP_FLEXRAM_MAGIC_ADDR_API
67	bool "NXP FlexRAM magic addr API"
68	help
69	  Enable API to use flexRAM magic address functionality
70
71config MEMC_NXP_FLEXRAM_ERROR_INTERRUPT
72	bool "NXP FlexRAM error interrupt"
73	help
74	  Allow flexram to generate error interrupts
75
76endif # DT_HAS_NXP_FLEXRAM_ENABLED
77