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:
parent
7a217f1015
commit
fa3753c466
@ -100,6 +100,7 @@ config P14201_FRAMEBUFFER
|
|||||||
|
|
||||||
All pixel writes must be aligned to byte boundaries.
|
All pixel writes must be aligned to byte boundaries.
|
||||||
The latter limitation effectively reduces the 128x96 disply to 64x96.
|
The latter limitation effectively reduces the 128x96 disply to 64x96.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config LCD_NOKIA6100
|
config LCD_NOKIA6100
|
||||||
@ -203,6 +204,7 @@ config NOKIA6100_RGBORD
|
|||||||
---help---
|
---help---
|
||||||
Display RGB order, 0 or 1, Default: 0
|
Display RGB order, 0 or 1, Default: 0
|
||||||
Required LCD driver settings:
|
Required LCD driver settings:
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config LCD_MIO283QT2
|
config LCD_MIO283QT2
|
||||||
@ -283,7 +285,6 @@ config LCD_UG2864HSWEG01
|
|||||||
Required SPI driver settings:
|
Required SPI driver settings:
|
||||||
SPI_CMDDATA - Include support for cmd/data selection.
|
SPI_CMDDATA - Include support for cmd/data selection.
|
||||||
|
|
||||||
|
|
||||||
config LCD_UG2832HSWEG04
|
config LCD_UG2832HSWEG04
|
||||||
bool "UG-2832HSWEG04 OLED Display Module"
|
bool "UG-2832HSWEG04 OLED Display Module"
|
||||||
default n
|
default n
|
||||||
@ -540,6 +541,124 @@ config LCD_RLANDSCAPE
|
|||||||
|
|
||||||
endchoice
|
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"
|
comment "Alphanumeric/Segment LCD Devices"
|
||||||
|
|
||||||
config LCD_LCD1602
|
config LCD_LCD1602
|
||||||
|
@ -79,6 +79,10 @@ ifeq ($(CONFIG_LCD_SHARP_MEMLCD),y)
|
|||||||
CSRCS += memlcd.c
|
CSRCS += memlcd.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_LCD_ILI9341),y)
|
||||||
|
CSRCS += ili9341.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Include LCD driver build support
|
# Include LCD driver build support
|
||||||
|
|
||||||
DEPPATH += --dep-path lcd
|
DEPPATH += --dep-path lcd
|
||||||
|
Loading…
Reference in New Issue
Block a user