Skip to content

Commit 085666f

Browse files
committed
modules: lvgl: Add support for NXP PXP engine
Adds support for the NXP PXP engine. LVGL changed the Kconfig symbol from LV_USE_GPU_NXP_PXP to LV_USE_PXP, but hal_nxp still relies on LV_USE_GPU_NXP_PXP, so add a temporary symbol for it. Additionally the drawing engines need to invalidate ranges in the dcache, the method needs to be provided via a lvgl_support.h file. Signed-off-by: Fabian Blatz <[email protected]>
1 parent e357d75 commit 085666f

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

modules/lvgl/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,20 @@ config LV_Z_USE_OSAL
143143
Use the Zephyr LVGL OSAL to enable parallel rendering
144144
pipelines.
145145

146+
config LV_USE_PXP
147+
bool
148+
149+
config LV_USE_GPU_NXP_PXP
150+
bool
151+
default y if LV_USE_PXP
152+
153+
config LV_Z_PXP_INTERRUPT_PRIORITY
154+
int "PXP interrupt priority"
155+
depends on LV_USE_PXP
156+
default 3
157+
help
158+
Sets the interrupt priority for PXP
159+
146160
rsource "Kconfig.memory"
147161
rsource "Kconfig.input"
148162
rsource "Kconfig.shell"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2023 Fabian Blatz <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_
8+
#define ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_
9+
10+
#include <zephyr/cache.h>
11+
12+
static ALWAYS_INLINE void DEMO_CleanInvalidateCacheByAddr(void *addr, uint16_t size)
13+
{
14+
sys_cache_data_invd_range(addr, size);
15+
}
16+
17+
#endif /* ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_ */

0 commit comments

Comments
 (0)