1# STM32 LTDC display driver configuration options 2 3# Copyright (c) 2022 Byte-Lab d.o.o. <dev@byte-lab.com> 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig STM32_LTDC 7 bool "STM32 LCD-TFT display controller driver" 8 default y 9 depends on DT_HAS_ST_STM32_LTDC_ENABLED 10 select USE_STM32_HAL_LTDC 11 select CACHE_MANAGEMENT if CPU_HAS_DCACHE 12 select PINCTRL 13 help 14 Enable driver for STM32 LCT-TFT display controller periheral. 15 16if STM32_LTDC 17 18choice STM32_LTDC_PIXEL_FORMAT 19 prompt "Color pixel format" 20 default STM32_LTDC_RGB565 21 depends on STM32_LTDC 22 help 23 Specify the color pixel format for the STM32 LCD-TFT display controller. 24 25config STM32_LTDC_ARGB8888 26 bool "ARGB8888" 27 help 28 One pixel consists of 8-bit alpha, 8-bit red, 8-bit green and 8-bit blue value 29 (4 bytes per pixel) 30 31config STM32_LTDC_RGB888 32 bool "RGB888" 33 help 34 One pixel consists of 8-bit red, 8-bit green and 8-bit blue value 35 (3 bytes per pixel) 36 37config STM32_LTDC_RGB565 38 bool "RGB565" 39 help 40 One pixel consists of 5-bit red, 6-bit green and 5-bit blue value 41 (2 bytes per pixel) 42 43endchoice 44 45config STM32_LTDC_FB_NUM 46 int "Frame buffer number" 47 default 1 48 range 0 2 49 help 50 STM32 LTDC frame buffer number config: 51 - 0 frame buffer maintained by application, must write with full screen pixels. 52 - 1 single frame buffer in stm32 ltdc driver. 53 - 2 double frame buffer in stm32 ltdc driver. 54 55config STM32_LTDC_DISABLE_FMC_BANK1 56 bool "Disable FMC bank1 for STM32F7/H7 series" 57 depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32F7X 58 default y 59 help 60 Disable FMC bank1 if not used to prevent speculative read accesses. 61 Refer to AN4861 "4.6 Special recommendations for Cortex-M7 (STM32F7/H7)". 62 63endif # STM32_LTDC 64