Skip to content

Commit 07291fb

Browse files
thenguyenyfjhedberg
authored andcommitted
tests: display: add support test GLCDC on ek_ra8d1
This commit to add support to build tests/drivers/display on ek_ra8d1 Signed-off-by: The Nguyen <[email protected]>
1 parent 3bb3a96 commit 07291fb

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
mainmenu "Display Read Write Test"
5+
6+
source "Kconfig.zephyr"
7+
8+
config DISPLAY_BUFFER_USE_GENERIC_SECTION
9+
bool "Place the display buffer in a specific memory section"
10+
help
11+
Place the display buffer in a specific memory section.
12+
13+
config DISPLAY_BUFFER_ALIGNMENT
14+
int "Display buffer memory alignment"
15+
default 32
16+
help
17+
Specific display buffer alignment.
18+
19+
if DISPLAY_BUFFER_USE_GENERIC_SECTION
20+
21+
config DISPLAY_BUFFER_SECTION
22+
string "Memory section to place Display Buffer"
23+
help
24+
Specific memory section to place the display buffer.
25+
26+
endif # DISPLAY_BUFFER_USE_GENERIC_SECTION
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DISPLAY_BUFFER_USE_GENERIC_SECTION=y
5+
CONFIG_DISPLAY_BUFFER_SECTION=".sdram"
6+
CONFIG_DISPLAY_BUFFER_ALIGNMENT=64

tests/drivers/display/display_read_write/src/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ LOG_MODULE_DECLARE(display_api, CONFIG_DISPLAY_LOG_LEVEL);
1414
static const struct device *dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
1515
static const uint32_t display_width = DT_PROP(DT_CHOSEN(zephyr_display), width);
1616
static const uint32_t display_height = DT_PROP(DT_CHOSEN(zephyr_display), height);
17+
#ifdef CONFIG_DISPLAY_BUFFER_USE_GENERIC_SECTION
18+
Z_GENERIC_SECTION(CONFIG_DISPLAY_BUFFER_SECTION)
19+
#endif
1720
static uint8_t disp_buffer[DT_PROP(DT_CHOSEN(zephyr_display), width) *
18-
DT_PROP(DT_CHOSEN(zephyr_display), height) * 4];
21+
DT_PROP(DT_CHOSEN(zephyr_display), height) * 4]
22+
__aligned(CONFIG_DISPLAY_BUFFER_ALIGNMENT);
1923
static struct display_capabilities cfg;
2024
static uint8_t bpp;
2125
static bool is_tiled;

tests/drivers/display/display_read_write/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ tests:
6969
# presence of the arduino_spi DT nodelabel
7070
platform_allow:
7171
- mimxrt685_evk/mimxrt685s/cm33
72+
drivers.display.read_write.rtkmipilcdb00000be:
73+
tags:
74+
- shield
75+
extra_args:
76+
- SHIELD=rtkmipilcdb00000be
77+
platform_allow:
78+
- ek_ra8d1

0 commit comments

Comments
 (0)