(feat) Add basic mimxrt support.

AN
3mo ago
+28-2

I'm working on getting LVGL working cleanly on the NXP 1170 EVK with a LVGL v9 compatible driver in progress here: https://github.com/andrewleech/imxrt1170_display_driver

These minimal changes to the LVGL bindings files enables the build environment to enable port specific features more easily.


Summary by cubic

Add basic NXP i.MX RT (mimxrt) support with PXP acceleration and port-aware build rules. LVGL v9 now runs on the RT1170 EVK with PXP.

  • New Features
    • Detect the active port in micropython.mk; add a mimxrt block that sets LV_USE_PXP, LV_USE_DRAW_PXP, LV_USE_GPU_NXP_PXP, and LV_USE_GPU_NXP_PXP_AUTO_INIT via CFLAGS_USERMOD, and silences specific PXP driver warnings for a clean -Werror build.
    • Guard LV_DRAW_BUF_ALIGN, LV_USE_PXP, LV_USE_DRAW_PXP, and LV_USE_ROTATE_PXP with #ifndef in lv_conf.h so boards can override via build flags without redefinition warnings.
    • Add a submodules rule to initialize lvgl and pycparser from the port build with make submodules.