]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(imx8): add support for debug uart on lpuart1
authorMarkus Niebel <Markus.Niebel@tq-group.com>
Tue, 2 Mar 2021 17:44:25 +0000 (18:44 +0100)
committerAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 17 Apr 2023 12:43:27 +0000 (14:43 +0200)
Needed for TQMa8Xx on MBa8Xx. With this changes it is
possible to build:

$ make PLAT=imx8qx IMX_DEBUG_UART=1 DEBUG_CONSOLE=1 bl31

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Change-Id: If380845b254f30fe919ebb33c86130597c4b8ad3

plat/imx/imx8qx/imx8qx_bl31_setup.c
plat/imx/imx8qx/include/platform_def.h

index 1da8d296cd42806c95967cb8e251d9207088a0ba..13e80fb3713b41417af62d47b1164de64806ab29 100644 (file)
@@ -51,6 +51,16 @@ static entry_point_info_t bl33_image_ep_info;
 #define IMX_PAD_UART_RX                        SC_P_UART0_RX
 #define IMX_PAD_UART_TX                        SC_P_UART0_TX
 
+#elif defined(IMX_USE_UART1)
+#define UART_PAD_CTRL  (PADRING_IFMUX_EN_MASK | PADRING_GP_EN_MASK | \
+                       (SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
+                       (SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
+                       (SC_PAD_28FDSOI_DSE_DV_LOW << PADRING_DSE_SHIFT) | \
+                       (SC_PAD_28FDSOI_PS_PD << PADRING_PULL_SHIFT))
+#define IMX_RES_UART                   SC_R_UART_1
+#define IMX_PAD_UART_RX                        SC_P_UART1_RX
+#define IMX_PAD_UART_TX                        SC_P_UART1_TX
+
 /*
  * On Toradex Colibri i.MX8QXP UART3 on the FLEXCAN2.
  * Use custom pad control for this
index b880e1bc73b858017876bd58e11b3a595a069403..29f6f7c7fe6f5644f7f2cbbd2259cdd5ede491d0 100644 (file)
@@ -41,6 +41,8 @@
 
 #if defined(IMX_USE_UART0)
 #define IMX_BOOT_UART_BASE             0x5a060000
+#elif defined(IMX_USE_UART1)
+#define IMX_BOOT_UART_BASE             0x5a070000
 #elif defined(IMX_USE_UART3)
 #define IMX_BOOT_UART_BASE             0x5a090000
 #else