From 57d04d3ff592e99c8059dce418e92d1d00ac43a0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 10 Oct 2013 18:41:42 -0600 Subject: [PATCH] SAMA5 LCDC: Default resolution if now RGB565; Add option to select a different output resolution than the sofware resolution (needs to the 24BPP for this LCD). --- arch/arm/src/sama5/Kconfig | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/sama5/Kconfig b/arch/arm/src/sama5/Kconfig index aa55042d72..6b051d355b 100644 --- a/arch/arm/src/sama5/Kconfig +++ b/arch/arm/src/sama5/Kconfig @@ -326,6 +326,24 @@ config SAMA5_LCDC_BACKCOLOR hex "Background color" default 0x0 +choice + prompt "Output resolution" + default SAMA5_LCDC_OUTPUT_24BPP + +config SAMA5_LCDC_OUTPUT_12BPP + bool "12BPP" + +config SAMA5_LCDC_OUTPUT_16BPP + bool "16BPP" + +config SAMA5_LCDC_OUTPUT_18BPP + bool "18BPP" + +config SAMA5_LCDC_OUTPUT_24BPP + bool "24BPP" + +endchoice # Output resolution + choice prompt "Frame buffer allocation strategy" default SAMA5_LCDC_FBALLOCATED @@ -391,7 +409,7 @@ endchoice # Base layer rotation choice prompt "Base layer color format" - default SAMA5_LCDC_BASE_RGB888P + default SAMA5_LCDC_BASE_RGB565 config SAMA5_LCDC_BASE_RGB444 bool "12 bpp RGB 444" @@ -480,7 +498,7 @@ endchoice # Overlay 1 rotation choice prompt "Overlay 1 color format" - default SAMA5_LCDC_OVR1_RGB888P + default SAMA5_LCDC_OVR1_RGB565 config SAMA5_LCDC_OVR1_RGB444 bool "12 bpp RGB 444" @@ -570,7 +588,7 @@ endchoice # Overlay 2 rotation choice prompt "Overlay 2 layer color format" - default SAMA5_LCDC_OVR2_RGB888P + default SAMA5_LCDC_OVR2_RGB565 config SAMA5_LCDC_OVR2_RGB444 bool "12 bpp RGB 444" @@ -660,7 +678,7 @@ endchoice # HEO layer rotation choice prompt "HEO layer color format" - default SAMA5_LCDC_HEO_RGB888P + default SAMA5_LCDC_HEO_RGB565 config SAMA5_LCDC_HEO_RGB444 bool "12 bpp RGB 444" @@ -742,7 +760,7 @@ endchoice # Hardware cursor rotation choice prompt "Hardware cursor layer color format" - default SAMA5_LCDC_HCR_RGB888P + default SAMA5_LCDC_HCR_RGB565 config SAMA5_LCDC_HCR_RGB444 bool "12 bpp RGB 444"