Commit d2cebade authored by Fabian Blatz's avatar Fabian Blatz Committed by Benjamin Cabé
Browse files

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: default avatarFabian Blatz <fabianblatz@gmail.com>
parent 3e6eab3c
Loading
Loading
Loading
Loading
+14 −0
Changes for modules/lvgl/Kconfig: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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"
+17 −0
Changes for modules/lvgl/include/lvgl_support.h: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * 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_ */