Skip to content

Commit d10c442

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 3928523 commit d10c442

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
@@ -162,6 +162,20 @@ config LV_Z_USE_OSAL
162162
Use the Zephyr LVGL OSAL to enable parallel rendering
163163
pipelines.
164164

165+
config LV_USE_PXP
166+
bool
167+
168+
config LV_USE_GPU_NXP_PXP
169+
bool
170+
default y if LV_USE_PXP
171+
172+
config LV_Z_PXP_INTERRUPT_PRIORITY
173+
int "PXP interrupt priority"
174+
depends on LV_USE_PXP
175+
default 3
176+
help
177+
Sets the interrupt priority for PXP
178+
165179
rsource "Kconfig.memory"
166180
rsource "Kconfig.input"
167181
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)