You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.1 KiB
22 lines
1.1 KiB
# Copyright 2023,2025 NXP |
|
# |
|
# SPDX-License-Identifier: Apache-2.0 |
|
|
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_SPI mipi_dbi_spi.c) |
|
zephyr_sources_ifdef(CONFIG_MIPI_DBI_BITBANG mipi_dbi_bitbang.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_NXP_DCNANO_LCDIF mipi_dbi_nxp_dcnano_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()
|
|
|