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 <fabianblatz@gmail.com>
This commit is contained in:
Fabian Blatz 2024-07-27 20:31:15 +02:00 committed by Benjamin Cabé
commit d2cebade85
2 changed files with 31 additions and 0 deletions

View file

@ -162,6 +162,20 @@ config LV_Z_USE_OSAL
Use the Zephyr LVGL OSAL to enable parallel rendering
pipelines.
config LV_USE_PXP
bool
config LV_USE_GPU_NXP_PXP
bool
default y if LV_USE_PXP
config LV_Z_PXP_INTERRUPT_PRIORITY
int "PXP interrupt priority"
depends on LV_USE_PXP
default 3
help
Sets the interrupt priority for PXP
rsource "Kconfig.memory"
rsource "Kconfig.input"
rsource "Kconfig.shell"

View file

@ -0,0 +1,17 @@
/*
* Copyright 2023 Fabian Blatz <fabianblatz@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_
#define ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_
#include <zephyr/cache.h>
static ALWAYS_INLINE void DEMO_CleanInvalidateCacheByAddr(void *addr, uint16_t size)
{
sys_cache_data_invd_range(addr, size);
}
#endif /* ZEPHYR_MODULES_LVGL_LVGL_SUPPORT_H_ */