rivers: enable usage of ili9341

This enables build and configuration of the ili9341 lcd interface driver.

Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
This commit is contained in:
Gregory Nutt 2014-10-20 15:27:56 -06:00
parent 7a217f1015
commit fa3753c466
2 changed files with 124 additions and 1 deletions

View File

@ -100,6 +100,7 @@ config P14201_FRAMEBUFFER
All pixel writes must be aligned to byte boundaries.
The latter limitation effectively reduces the 128x96 disply to 64x96.
endif
config LCD_NOKIA6100
@ -203,6 +204,7 @@ config NOKIA6100_RGBORD
---help---
Display RGB order, 0 or 1, Default: 0
Required LCD driver settings:
endif
config LCD_MIO283QT2
@ -283,7 +285,6 @@ config LCD_UG2864HSWEG01
Required SPI driver settings:
SPI_CMDDATA - Include support for cmd/data selection.
config LCD_UG2832HSWEG04
bool "UG-2832HSWEG04 OLED Display Module"
default n
@ -540,6 +541,124 @@ config LCD_RLANDSCAPE
endchoice
config LCD_ILI9341
bool "ILI9341 LCD Single Chip Driver"
default n
---help---
LCD Single Chip Driver, ILI9341, ILI Technology Corp. Used
with the STM32F429i Discovery Board.
Required LCD driver settings:
LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
LCD_MAXPOWER should be 1: 0=off, 1=on
config LCD_ILI9341_NINTERFACES
int "Number of supported display driver"
range 1 2
default 1
depends on LCD_ILI9341
---help---
Define the number of supported displays driven by a ili9341 LCD Single
Chip Driver.
config LCD_ILI9341_IFACE0
bool "(1) LCD Display"
depends on LCD_ILI9341_NINTERFACES = 1 || LCD_ILI9341_NINTERFACES = 2
---help---
Configure first LCD Display.
if LCD_ILI9341_IFACE0
choice
prompt "LCD Orientation"
default LCD_ILI9341_IFACE0_LANDSCAPE
---help---
Configure display orientation.
config LCD_ILI9341_IFACE0_LANDSCAPE
bool "Landscape orientation"
---help---
Define for "landscape" orientation support.
config LCD_ILI9341_IFACE0_PORTRAIT
bool "Portrait orientation"
---help---
Define for "portrait" orientation support.
config LCD_ILI9341_IFACE0_RLANDSCAPE
bool "Reverse landscape orientation"
---help---
Define for "reverse landscape" orientation support.
config LCD_ILI9341_IFACE0_RPORTRAIT
bool "Reverse portrait display"
---help---
Define for "reverse portrait" orientation support.
endchoice
choice
prompt "Color format"
default LCD_ILI9341_IFACE0_RGB565
---help---
LCD color format.
config LCD_ILI9341_IFACE0_RGB565
bool "16 bpp RGB565 color format"
---help---
16 bpp RGB565 color format
endchoice
endif
config LCD_ILI9341_IFACE1
bool "(2) LCD Display"
depends on LCD_ILI9341_NINTERFACES = 2
---help---
Configure second LCD Display.
if LCD_ILI9341_IFACE1
choice
prompt "LCD Orientation"
default LCD_ILI9341_IFACE1_LANDSCAPE
---help---
Configure display orientation.
config LCD_ILI9341_IFACE1_LANDSCAPE
bool "Landscape orientation"
---help---
Define for "landscape" orientation support.
config LCD_ILI9341_IFACE1_PORTRAIT
bool "Portrait orientation"
---help---
Define for "portrait" orientation support.
config LCD_ILI9341_IFACE1_RLANDSCAPE
bool "Reverse landscape orientation"
---help---
Define for "reverse landscape" orientation support.
config LCD_ILI9341_IFACE1_RPORTRAIT
bool "Reverse portrait display"
---help---
Define for "reverse portrait" orientation support.
endchoice
choice
prompt "Color format"
default LCD_ILI9341_IFACE1_RGB565
---help---
LCD color format.
config LCD_ILI9341_IFACE1_RGB565
bool "16 bpp RGB565 color format"
---help---
16 bpp RGB565 color format
endchoice
endif
comment "Alphanumeric/Segment LCD Devices"
config LCD_LCD1602

View File

@ -79,6 +79,10 @@ ifeq ($(CONFIG_LCD_SHARP_MEMLCD),y)
CSRCS += memlcd.c
endif
ifeq ($(CONFIG_LCD_ILI9341),y)
CSRCS += ili9341.c
endif
# Include LCD driver build support
DEPPATH += --dep-path lcd