feat(dev): add nuttx lcd driver (#4377)

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee
2023-07-17 14:03:33 +08:00
committed by GitHub
parent b78d4dc04b
commit 2cdd41345a
6 changed files with 314 additions and 0 deletions

32
Kconfig
View File

@@ -1220,6 +1220,38 @@ menu "LVGL configuration"
depends on LV_USE_LINUX_FBDEV && LV_LINUX_FBDEV_CUSTOM_BUFFER
default 60
config LV_USE_NUTTX_LCD
bool "Use NuttX LCD device"
default n
choice
prompt "NuttX LCD buffer size"
depends on LV_USE_NUTTX_LCD
default LV_NUTTX_LCD_SINGLE_BUFFER
config LV_NUTTX_LCD_SINGLE_BUFFER
bool "One screen-sized buffer"
config LV_NUTTX_LCD_DOUBLE_BUFFER
bool "Two screen-sized buffer"
config LV_NUTTX_LCD_CUSTOM_BUFFER
bool "Custom-sized buffer"
endchoice
config LV_NUTTX_LCD_BUFFER_COUNT
int
depends on LV_USE_NUTTX_LCD
default 0 if LV_NUTTX_LCD_CUSTOM_BUFFER
default 1 if LV_NUTTX_LCD_SINGLE_BUFFER
default 2 if LV_NUTTX_LCD_DOUBLE_BUFFER
config LV_NUTTX_LCD_BUFFER_SIZE
int "Custom partial buffer size (in number of rows)"
depends on LV_USE_NUTTX_LCD && LV_NUTTX_LCD_CUSTOM_BUFFER
default 60
config LV_USE_LINUX_DRM
bool "Use Linux DRM device"
default n