b2f1f64f57
Enable UART on the DSP from the i.MX8MP target: - add corresponding nodes in dtsi and dts; - create a dts overlay for uart; - add a config fragment for uart and console configuration. So, in order to compile an application and enable UART a user must run west build using DTC_OVERLAY_FILE and CONF_FILE. Here's an example for hello_world: west build -p always -b nxp_adsp_imx8m samples/hello_world/ -DDTC_OVERLAY_FILE="boards/xtensa/nxp_adsp_imx8m/ nxp_adsp_imx8m_uart.overlay" -DCONF_FILE="boards/xtensa/nxp_adsp_imx8m/ nxp_adsp_imx8m_uart.conf" For other applications, like SOF, where we don't need UART, we simply run: west build -p always -b nxp_adsp_imx8m ../modules/audio/sof/ -- -DTOOLCHAIN=/opt/zephyr-sdk-0.15.2/xtensa-nxp_imx8m_adsp_zephyr-elf/ bin/xtensa-nxp_imx8m_adsp_zephyr-elf -DINIT_CONFIG=imx8m_defconfig The nxp_adsp_imx8m is using the nxp_imx_iuart driver. For now, is used in poll mode. Next step is to enable the interrupt controller in DSP and use the interrupt driver UART. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> |
||
---|---|---|
.. | ||
common | ||
imx8 | ||
imx8m | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.defconfig | ||
Kconfig.soc |