summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@gmail.com>2020-03-05 22:10:41 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2021-01-12 13:46:40 +0100
commit7f1187ba31cc1624f7dadd98998e010cb229926a (patch)
tree02340302a2ebebde596e96477592f298d3bb91d3
parent784846da875b35f1e9360d3d11f3e6f88a1d23c9 (diff)
plat: imx8mp: provide uart base as build optiontoradex_imx_5.4.70_2.3.0
Some boards (f.e. Verdin i.MX8M Plus) use different UART base address for serial debug output, so make this value configurable (as a build option). Related-to: ELB-3208 Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Change-Id: I988492ccecbc3f64a5153b381c4a97b8a0181f52 (cherry picked from commit 60a23af2e57931161169c2981bf19af3847c533c) (cherry picked from commit bbfc87c96dec60dda19438b7d6ecd2a5f4431380)
-rw-r--r--plat/imx/imx8m/imx8mp/include/platform_def.h1
-rw-r--r--plat/imx/imx8m/imx8mp/platform.mk3
2 files changed, 3 insertions, 1 deletions
diff --git a/plat/imx/imx8m/imx8mp/include/platform_def.h b/plat/imx/imx8m/imx8mp/include/platform_def.h
index d32789c5..dc5e6627 100644
--- a/plat/imx/imx8m/imx8mp/include/platform_def.h
+++ b/plat/imx/imx8m/imx8mp/include/platform_def.h
@@ -51,7 +51,6 @@
#define HAB_RVT_BASE U(0x00000900) /* HAB_RVT for i.MX8MM */
-#define IMX_BOOT_UART_BASE U(0x30890000)
#define IMX_BOOT_UART_CLK_IN_HZ 24000000 /* Select 24MHz oscillator */
#define PLAT_CRASH_UART_BASE IMX_BOOT_UART_BASE
diff --git a/plat/imx/imx8m/imx8mp/platform.mk b/plat/imx/imx8m/imx8mp/platform.mk
index c668ca70..f5a55948 100644
--- a/plat/imx/imx8m/imx8mp/platform.mk
+++ b/plat/imx/imx8m/imx8mp/platform.mk
@@ -66,3 +66,6 @@ $(eval $(call add_define,BL32_SIZE))
ifeq (${SPD},trusty)
BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
endif
+
+IMX_BOOT_UART_BASE ?= 0x30890000
+$(eval $(call add_define,IMX_BOOT_UART_BASE))