21 lines
1007 B
CMake
21 lines
1007 B
CMake
# Copyright 2023 NXP
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_SPI mipi_dbi_spi.c)
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_SMARTBOND mipi_dbi_smartbond.c)
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_NXP_LCDIC mipi_dbi_nxp_lcdic.c)
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_NXP_FLEXIO_LCDIF mipi_dbi_nxp_flexio_lcdif.c)
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_STM32_FMC mipi_dbi_stm32_fmc.c)
|
|
# Data bus width is used by the SDK driver and processes it as a compile time option
|
|
if(CONFIG_MIPI_DBI_NXP_FLEXIO_LCDIF)
|
|
dt_chosen(flexio0_lcd PROPERTY "zephyr,display")
|
|
dt_prop(data_bus_width PATH "${flexio0_lcd}" PROPERTY "mipi-mode")
|
|
# Values for mipi-mode property are defined inside dt-bindings/mipi_dbi/mipi_dbi.h.
|
|
# We pass a define to the SDK driver if we are using 8-bit mode.
|
|
if((data_bus_width EQUAL 8) OR (data_bus_width EQUAL 5))
|
|
zephyr_compile_definitions(FLEXIO_MCULCD_DATA_BUS_WIDTH=8)
|
|
endif()
|
|
zephyr_compile_definitions(FLEXIO_MCULCD_LEGACY_GPIO_FUNC=0)
|
|
endif()
|