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 <the.nguyen.yf@renesas.com>
This commit is contained in:
The Nguyen 2024-11-19 16:37:16 +07:00 committed by Johan Hedberg
parent 3bb3a9626f
commit 07291fb6aa
4 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,26 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
mainmenu "Display Read Write Test"
source "Kconfig.zephyr"
config DISPLAY_BUFFER_USE_GENERIC_SECTION
bool "Place the display buffer in a specific memory section"
help
Place the display buffer in a specific memory section.
config DISPLAY_BUFFER_ALIGNMENT
int "Display buffer memory alignment"
default 32
help
Specific display buffer alignment.
if DISPLAY_BUFFER_USE_GENERIC_SECTION
config DISPLAY_BUFFER_SECTION
string "Memory section to place Display Buffer"
help
Specific memory section to place the display buffer.
endif # DISPLAY_BUFFER_USE_GENERIC_SECTION

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0
CONFIG_DISPLAY_BUFFER_USE_GENERIC_SECTION=y
CONFIG_DISPLAY_BUFFER_SECTION=".sdram"
CONFIG_DISPLAY_BUFFER_ALIGNMENT=64

View file

@ -14,8 +14,12 @@ LOG_MODULE_DECLARE(display_api, CONFIG_DISPLAY_LOG_LEVEL);
static const struct device *dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
static const uint32_t display_width = DT_PROP(DT_CHOSEN(zephyr_display), width);
static const uint32_t display_height = DT_PROP(DT_CHOSEN(zephyr_display), height);
#ifdef CONFIG_DISPLAY_BUFFER_USE_GENERIC_SECTION
Z_GENERIC_SECTION(CONFIG_DISPLAY_BUFFER_SECTION)
#endif
static uint8_t disp_buffer[DT_PROP(DT_CHOSEN(zephyr_display), width) *
DT_PROP(DT_CHOSEN(zephyr_display), height) * 4];
DT_PROP(DT_CHOSEN(zephyr_display), height) * 4]
__aligned(CONFIG_DISPLAY_BUFFER_ALIGNMENT);
static struct display_capabilities cfg;
static uint8_t bpp;
static bool is_tiled;

View file

@ -69,3 +69,10 @@ tests:
# presence of the arduino_spi DT nodelabel
platform_allow:
- mimxrt685_evk/mimxrt685s/cm33
drivers.display.read_write.rtkmipilcdb00000be:
tags:
- shield
extra_args:
- SHIELD=rtkmipilcdb00000be
platform_allow:
- ek_ra8d1