From 44d72c6545ddd9e98f04bfc25059443e07dc0a42 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 19 Dec 2014 13:58:39 -0600 Subject: [PATCH] stm32: Add configuration option for ltdc This adds the following ltdc configuration options: - dither support - cmap support, is this the right place for CONFIG_FB_CMAP? - support for extended ltdc interface Signed-off-by: Marco Krahl --- arch/arm/src/stm32/Kconfig | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig index 47044851fb..0a3f971fc1 100644 --- a/arch/arm/src/stm32/Kconfig +++ b/arch/arm/src/stm32/Kconfig @@ -3587,6 +3587,12 @@ if STM32_LTDC menu "LTDC Configuration" +config STM32_LTDC_INTERFACE + bool "LTDC interface support" + default n + ---help--- + Enable the ltdc interface to support ltdc layer control. + config STM32_LTDC_BACKLIGHT bool "Backlight support" default y @@ -3602,6 +3608,34 @@ config STM32_LTDC_BACKCOLOR This is the background color that will be used as the LTDC background layer color. It is an RGB888 format value. +config STM32_LTDC_DITHER + bool "Dither support" + default n + +config STM32_LTDC_DITHER_RED + depends on STM32_LTDC_DITHER + int "Dither red width" + range 0 7 + default 2 + ---help--- + This is the dither red width. + +config STM32_LTDC_DITHER_GREEN + depends on STM32_LTDC_DITHER + int "Dither green width" + range 0 7 + default 2 + ---help--- + This is the dither green width. + +config STM32_LTDC_DITHER_BLUE + depends on STM32_LTDC_DITHER + int "Dither blue width" + range 0 7 + default 2 + ---help--- + This is the dither blue width. + config STM32_LTDC_FB_BASE hex "Framebuffer memory start address" ---help--- @@ -3681,6 +3715,15 @@ endchoice # Layer 2 color format endif # STM32_LTDC_L2 +if STM32_LTDC_L1_L8 || STM32_LTDC_L2_L8 + +config FB_CMAP + bool "Enable color map support" + default y + ---help--- + Enabling color map suport is neccessary for ltdc L8 format. + +endif endmenu endif # STM32_LTDC