boards: add support for SMARTDMA when using RM67162 display shield
Add support for using SMARTDMA when using RM67162 display shield with Zephyr, so that the DMA engine can be leveraged for improved performance when using the MIPI DSI in command mode. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
36ad0b10b3
commit
40a52eb486
|
@ -467,3 +467,14 @@ zephyr_udc0: &usbhs {
|
|||
&sram1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Enable smartDMA controller */
|
||||
&smartdma {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Add smartDMA to mipi DSI */
|
||||
&mipi_dsi {
|
||||
dmas = <&smartdma>;
|
||||
dma-names = "smartdma";
|
||||
};
|
||||
|
|
|
@ -11,9 +11,17 @@ config INPUT
|
|||
config INPUT_FT5336_INTERRUPT
|
||||
default y
|
||||
|
||||
if MIPI_DSI_MCUX_2L
|
||||
# Enable color swap in driver
|
||||
|
||||
config MIPI_DSI_MCUX_2L_SWAP16
|
||||
default y
|
||||
|
||||
endif # MIPI_DSI_MCUX_2L
|
||||
|
||||
# Swap 16 bit color setting for LVGL, to send high byte first
|
||||
config LV_COLOR_16_SWAP
|
||||
default y
|
||||
default y if !MIPI_DSI_MCUX_2L_SWAP16
|
||||
|
||||
config LV_Z_VDB_SIZE
|
||||
default 16
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# Enable DMA, so that DSI MCUX will use SMARTDMA
|
||||
CONFIG_DMA=y
|
Loading…
Reference in a new issue