Skip to contentSkip to conversation

MPC8360E-MDS: configure and enable second UART

PATCH New Anton Vorontsov 2 participants 2 messages Nov 14, 2007 – Nov 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MPC8360E-MDS: configure and enable second UART

Despite user manual, BCSR9.7 is negated (high) on HRST, so UART2 is disabled. Fix that and configure QE pins properly.

---
 board/freescale/mpc8360emds/mpc8360emds.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
board/freescale/mpc8360emds/mpc8360emds.c +8 -0
index e050cd4..538a556 100644
@@ -87,6 +87,11 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
 	{0,  1, 3, 0, 2}, /* MDIO */
 	{0,  2, 1, 0, 1}, /* MDC */
 
+	{5,  0, 1, 0, 2}, /* UART2_SOUT */
+	{5,  1, 2, 0, 3}, /* UART2_CTS */
+	{5,  2, 1, 0, 1}, /* UART2_RTS */
+	{5,  3, 2, 0, 2}, /* UART2_SIN */
+
 	{0,  0, 0, 0, QE_IOP_TAB_END}, /* END of table */
 };
 
@@ -106,6 +111,9 @@ int board_early_init_f(void)
 	    immr->sysconf.spridr == SPR_8360E_REV21)
 		bcsr[0xe] = 0x30;
 
+	/* Enable second UART */
+	bcsr[0x9] &= ~0x01;
+
 	return 0;
 }
 
Signature · 1 line
1.5.2.2
#1 lore raw

PATCH 1/1 MPC8360E-MDS: configure and enable second UART

Quoted 4 lines · On Wed, 14 Nov 2007 18:54:53 +0300 Anton Vorontsov <[email protected]>…

Despite user manual, BCSR9.7 is negated (high) on HRST, so UART2 is disabled. Fix that and configure QE pins properly.

applied to mpc83xx branch of u-boot-mpc83xx, thanks.

Kim