Skip to content

Commit b5f0336

Browse files
thenguyenyfjhedberg
authored andcommitted
drivers: display: add support for GLCDC on Renesas RA family
First commit to add support for Graphics LCD Controller on Renesas RA Signed-off-by: The Nguyen <[email protected]>
1 parent 27c8320 commit b5f0336

File tree

7 files changed

+570
-0
lines changed

7 files changed

+570
-0
lines changed

drivers/display/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ zephyr_library_sources_ifdef(CONFIG_GC9X01X display_gc9x01x.c)
3131
zephyr_library_sources_ifdef(CONFIG_LED_STRIP_MATRIX display_led_strip_matrix.c)
3232
zephyr_library_sources_ifdef(CONFIG_DISPLAY_RENESAS_LCDC display_renesas_lcdc.c)
3333
zephyr_library_sources_ifdef(CONFIG_NT35510 display_nt35510.c)
34+
zephyr_library_sources_ifdef(CONFIG_RENESAS_RA_GLCDC display_renesas_ra.c)
3435

3536
zephyr_library_sources_ifdef(CONFIG_MICROBIT_DISPLAY
3637
mb_display.c

drivers/display/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ source "drivers/display/Kconfig.gc9x01x"
4848
source "drivers/display/Kconfig.led_strip_matrix"
4949
source "drivers/display/Kconfig.renesas_lcdc"
5050
source "drivers/display/Kconfig.nt35510"
51+
source "drivers/display/Kconfig.renesas_ra"
5152

5253
endif # DISPLAY

drivers/display/Kconfig.renesas_ra

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Renesas RA Family
2+
3+
# Copyright (c) 2024 Renesas Electronics Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config RENESAS_RA_GLCDC
7+
bool "Renesas display controller driver"
8+
default y
9+
depends on DT_HAS_RENESAS_RA_GLCDC_ENABLED
10+
select USE_RA_FSP_DISPLAY
11+
help
12+
Enable Renesas display controller.
13+
14+
if RENESAS_RA_GLCDC
15+
16+
config RENESAS_RA_GLCDC_FB_NUM
17+
int "Frame buffer number"
18+
default 2
19+
range 0 2
20+
help
21+
RENESAS RA GLCDC frame buffer number config:
22+
- 0 frame buffer maintained by application, must write with full screen pixels.
23+
- 1 single frame buffer in RENESAS RA GLCDC driver.
24+
- 2 double frame buffer in RENESAS RA GLCDC driver.
25+
26+
if LVGL
27+
28+
# Force display buffers to be aligned to cache line size (64 bytes)
29+
config LV_Z_VDB_ALIGN
30+
default 64
31+
32+
endif # LVGL
33+
34+
endif # RENESAS_RA_GLCDC

0 commit comments

Comments
 (0)