From: Gabriel Valcazar <gabriel.valcazar@digi.com>
Date: Fri, 29 Jan 2021 11:21:07 +0100
Subject: [PATCH] imx8mm: Disable M4 debug console

The Cortex-M4 uses the UART4 as debug console, and it is
shared with the Cortex-A53.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
---
 plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
index 8702d5160a45..8ffeed204e90 100644
--- a/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
+++ b/plat/imx/imx8m/imx8mm/imx8mm_bl31_setup.c
@@ -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, D1R | D1W),*/
 	RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),
 	RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),
 
