1# Copyright 2023 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4# In order to safely access the PSRAM on port B of the RW FlexSPI peripheral,
5# the QSPI flash on port A must be configured by the application. Otherwise,
6# the PSRAM configuration will overwrite the LUT entries for the QSPI flash,
7# and the application will no longer be able to XIP from the flash.
8# To make sure the QSPI flash is configured, enable flash drivers.
9CONFIG_FLASH=y
10
11# Initialization priorities are critical here. The FlexSPI MEMC driver must
12# initialize first. Then, the QSPI flash driver must initialize to program
13# the LUT table for port A. Finally, the PSRAM driver can initialize and
14# program the LUT table for port B
15CONFIG_MEMC_MCUX_FLEXSPI_INIT_PRIORITY=0
16CONFIG_FLASH_INIT_PRIORITY=50
17CONFIG_MEMC_INIT_PRIORITY=60
18
19# This board has the PSRAM attached to the same FLEXSPI device as the flash
20# chip used for XIP, so we must explicitly enable the FLEXSPI MEMC driver
21# to reconfigure the flash device it is executing from
22CONFIG_MEMC_MCUX_FLEXSPI_INIT_XIP=y
23