blob: f3fa4bd99e5c37e0d75d10540daa71e3119916cf [file] [log] [blame]
# MIMXRT595-EVK board
# Copyright 2022-2023, NXP
# SPDX-License-Identifier: Apache-2.0
if BOARD_MIMXRT595_EVK
config BOARD
default "mimxrt595_evk_cm33"
config FLASH_MCUX_FLEXSPI_MX25UM51345G
default y if FLASH
choice FLASH_MCUX_FLEXSPI_XIP_MEM_TARGET
default FLASH_MCUX_FLEXSPI_XIP_MEM_SRAM
endchoice
config FXOS8700_DRDY_INT1
default y
depends on FXOS8700_TRIGGER
if DISPLAY
# Enable MIPI display driver
config MIPI_DSI
default y
# Use external framebuffer memory for the LCDIF framebuffer
config MCUX_DCNANO_LCDIF_EXTERNAL_FB_MEM
default y
# Use FlexSPI2 base address for framebuffer (pSRAM is present on this bus)
config MCUX_DCNANO_LCDIF_EXTERNAL_FB_ADDR
# Move DCNANO framebuffer if LVGL framebuffers are also in PSRAM
default 0x38400000 if LV_Z_VBD_CUSTOM_SECTION
default 0x38000000
# M33 core and LCDIF both access FlexSPI2 through the same cache,
# so coherency does not need to be managed.
config MCUX_DCNANO_LCDIF_MAINTAIN_CACHE
depends on !MCUX_DCNANO_LCDIF_EXTERNAL_FB_MEM
endif # DISPLAY
config KSCAN
default y if LVGL
if LVGL
# LVGL should allocate buffers equal to size of display
config LV_Z_VDB_SIZE
default 100
# Enable double buffering
config LV_Z_DOUBLE_VDB
default y
# Force full refresh. This prevents memory copy associated with partial
# display refreshes, which is not necessary for the eLCDIF driver
config LV_Z_FULL_REFRESH
default y
config LV_Z_DPI
default 128
config LV_Z_BITS_PER_PIXEL
default 16
# Force display buffers to be aligned for DCNANO LCDIF (128 byte alignment)
config LV_Z_VDB_ALIGN
default 128
# LVGL display buffers will be too large for internal SRAM, locate in
# custom section within PSRAM
config LV_Z_VBD_CUSTOM_SECTION
default y
config LV_Z_POINTER_KSCAN
default y
config LV_Z_VDB_SIZE
default 16
config LV_Z_DPI
default 128
choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
endif # LVGL
if PM
# Turn on Device Level Power Management as we wish
# to reconfigure the FlexSPI pins for power savings
# when transitioning the SoC to Deep Low Power modes.
config PM_DEVICE
default y
endif # PM
endif # BOARD_MIMXRT595_EVK