Hi @StevenMedusa and @gustavo.tx,
is the solution with patching the file imx8mm_bl31_setup.c
still valid for BSPv6.0?
I used this disable-uart4.patch
:
diff --git a/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
index 8702d5160..c5bb66040 100644
--- a/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
+++ b/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
@@ -61,7 +61,7 @@ static const struct imx_rdc_cfg rdc[] = {
RDC_MDAn(RDC_MDA_M4, DID1),
/* peripherals domain permission */
- RDC_PDAPn(RDC_PDAP_UART4, D1R | D1W),
+ RDC_PDAPn(RDC_PDAP_UART4, D0R | D0W),
RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),
RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),
@@ -108,7 +108,7 @@ static const struct imx_rdc_cfg rdc[] = {
RDC_MDAn(RDC_MDA_M4, DID1),
/* peripherals domain permission */
- RDC_PDAPn(RDC_PDAP_UART4, D1R | D1W),
+ RDC_PDAPn(RDC_PDAP_UART4, D0R | D0W),
RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),
RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),
and this layers/meta-custom/recipes-bsp/imx-atf/imx-atf_%.bbappend
:
FILESEXTRAPATHS:prepend := "${THISDIR}/files/:"
SRC_URI:append = " file://disable-uart4.patch"
When I call bitbake imx-atf -c compile
I see in build/tmp/work/verdin_imx8mm-tdx-linux/imx-atf/2.6+gitAUTOINC+c6a19b1a35-r0/git/plat/imx/imx8m/imx8mm_bl31_setup.c
that the patch is used successfully. Nevertheless I get a kernel panic on bootup, when UART_4 is enabled in the default device tree.
Best regards,
Markus