Skip to content

Commit

Permalink
modules: lvgl: Add support for NXP PXP engine
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
faxe1008 committed Jan 3, 2025
1 parent 3928523 commit d10c442
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/lvgl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
17 changes: 17 additions & 0 deletions modules/lvgl/include/lvgl_support.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright 2023 Fabian Blatz <[email protected]>
*
* 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_ */

0 comments on commit d10c442

Please sign in to comment.