summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-10 18:41:42 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-10 18:41:42 -0600
commit2bb075d288f994ebc065f0323c1ad18f6e23807c (patch)
treebd56d510024b260f78e4dd068f474319edae4ee7
parentfd46bd34ed0574a99ab37a344739c6657c434555 (diff)
downloadnuttx-2bb075d288f994ebc065f0323c1ad18f6e23807c.tar.gz
nuttx-2bb075d288f994ebc065f0323c1ad18f6e23807c.tar.bz2
nuttx-2bb075d288f994ebc065f0323c1ad18f6e23807c.zip
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).
-rw-r--r--nuttx/arch/arm/src/sama5/Kconfig28
-rw-r--r--nuttx/configs/sama5d3x-ek/nx/defconfig16
2 files changed, 33 insertions, 11 deletions
diff --git a/nuttx/arch/arm/src/sama5/Kconfig b/nuttx/arch/arm/src/sama5/Kconfig
index aa55042d7..6b051d355 100644
--- a/nuttx/arch/arm/src/sama5/Kconfig
+++ b/nuttx/arch/arm/src/sama5/Kconfig
@@ -327,6 +327,24 @@ config SAMA5_LCDC_BACKCOLOR
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"
diff --git a/nuttx/configs/sama5d3x-ek/nx/defconfig b/nuttx/configs/sama5d3x-ek/nx/defconfig
index 93f46910d..85a582144 100644
--- a/nuttx/configs/sama5d3x-ek/nx/defconfig
+++ b/nuttx/configs/sama5d3x-ek/nx/defconfig
@@ -175,7 +175,11 @@ CONFIG_SAMA5_MPDDRC=y
#
CONFIG_SAMA5_LCDC_BACKLIGHT=y
CONFIG_SAMA5_LCDC_DEFBACKLIGHT=0xf0
-CONFIG_SAMA5_LCDC_BACKCOLOR=0x007b68ee
+CONFIG_SAMA5_LCDC_BACKCOLOR=0x7b5d
+# CONFIG_SAMA5_LCDC_OUTPUT_12BPP is not set
+# CONFIG_SAMA5_LCDC_OUTPUT_16BPP is not set
+# CONFIG_SAMA5_LCDC_OUTPUT_18BPP is not set
+CONFIG_SAMA5_LCDC_OUTPUT_24BPP=y
# CONFIG_SAMA5_LCDC_FBALLOCATED is not set
CONFIG_SAMA5_LCDC_FBFIXED=y
# CONFIG_SAMA5_LCDC_FBPREALLOCATED is not set
@@ -192,14 +196,14 @@ CONFIG_SAMA5_LCDC_BASE_ROT0=y
# CONFIG_SAMA5_LCDC_BASE_RGB444 is not set
# CONFIG_SAMA5_LCDC_BASE_ARGB4444 is not set
# CONFIG_SAMA5_LCDC_BASE_RGBA4444 is not set
-# CONFIG_SAMA5_LCDC_BASE_RGB565 is not set
+CONFIG_SAMA5_LCDC_BASE_RGB565=y
# CONFIG_SAMA5_LCDC_BASE_TRGB1555 is not set
# CONFIG_SAMA5_LCDC_BASE_RGB666 is not set
# CONFIG_SAMA5_LCDC_BASE_RGB666P is not set
# CONFIG_SAMA5_LCDC_BASE_TRGB1666 is not set
# CONFIG_SAMA5_LCDC_BASE_TRGBP is not set
# CONFIG_SAMA5_LCDC_BASE_RGB888 is not set
-CONFIG_SAMA5_LCDC_BASE_RGB888P=y
+# CONFIG_SAMA5_LCDC_BASE_RGB888P is not set
# CONFIG_SAMA5_LCDC_BASE_TRGB1888 is not set
# CONFIG_SAMA5_LCDC_BASE_ARGB8888 is not set
# CONFIG_SAMA5_LCDC_BASE_RGBA8888 is not set
@@ -469,8 +473,8 @@ CONFIG_NX_DISABLE_1BPP=y
CONFIG_NX_DISABLE_2BPP=y
CONFIG_NX_DISABLE_4BPP=y
CONFIG_NX_DISABLE_8BPP=y
-CONFIG_NX_DISABLE_16BPP=y
-# CONFIG_NX_DISABLE_24BPP is not set
+# CONFIG_NX_DISABLE_16BPP is not set
+CONFIG_NX_DISABLE_24BPP=y
CONFIG_NX_DISABLE_32BPP=y
CONFIG_NX_PACKEDMSFIRST=y
@@ -624,7 +628,7 @@ CONFIG_EXAMPLES_NX_VPLANE=0
CONFIG_EXAMPLES_NX_DEVNO=0
CONFIG_EXAMPLES_NX_DEFAULT_COLORS=y
CONFIG_EXAMPLES_NX_DEFAULT_FONT=y
-CONFIG_EXAMPLES_NX_BPP=24
+CONFIG_EXAMPLES_NX_BPP=16
# CONFIG_EXAMPLES_NX_RAWWINDOWS is not set
# CONFIG_EXAMPLES_NX_EXTERNINIT is not set
# CONFIG_EXAMPLES_NXCONSOLE is not set