[U-Boot] OMAP 4 Duovero change console UART port

Daniel Malmquist malmqui at kth.se
Thu Aug 22 18:06:33 CEST 2013


Hi again!

I managed to solve the issue. There is actually a bug in the "arch/arm/cpu/armv7/omap-common/clocks-common.c" code.

Under setup_clocks_for_console(void) it initializes UART 3 twice but it skips UART 4.

	clrsetbits_le32(&prcm->cm_l4per_uart3_clkctrl,
			MODULE_CLKCTRL_MODULEMODE_MASK,
			MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN <<
			MODULE_CLKCTRL_MODULEMODE_SHIFT);

	clrsetbits_le32(&prcm->cm_l4per_uart3_clkctrl,
			MODULE_CLKCTRL_MODULEMODE_MASK,
			MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN <<
			MODULE_CLKCTRL_MODULEMODE_SHIFT);

should be

	clrsetbits_le32(&prcm->cm_l4per_uart3_clkctrl,
			MODULE_CLKCTRL_MODULEMODE_MASK,
			MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN <<
			MODULE_CLKCTRL_MODULEMODE_SHIFT);

	clrsetbits_le32(&prcm->cm_l4per_uart4_clkctrl,
			MODULE_CLKCTRL_MODULEMODE_MASK,
			MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN <<
			MODULE_CLKCTRL_MODULEMODE_SHIFT);


Also, like stated before, UART4_BASE was missing from  "arch/arm/include/asm/arch-omap4/omap.h":

#define UART4_BASE              (OMAP44XX_L4_PER_BASE + 0x6e000)

Regards
Daniel Malmquist



22 aug 2013 kl. 09:16 skrev Daniel Malmquist <malmqui at kth.se>
:

> Hi!
> 
> Thanks for the quick reply :)
> 
> However, I did try this as well with no luck.
> 
> Daniel
> ________________________________________
> Från: Mats Kärrman [Mats.Karrman at tritech.se]
> Skickat: den 22 augusti 2013 09:14
> Till: Daniel Malmquist; u-boot at lists.denx.de
> Ämne: RE: OMAP 4 Duovero change console UART port
> 
> Hi!
> 
> Look in drivers/serial/serial_ns16550.c
> 
> Changing ..COM3 to UART_BASE4 seems a bit unorthodox, Try changing to:
> 
> #define CONFIG_SYS_NS16550_COM4         UART4_BASE      << COM4!!!
> #define CONFIG_CONS_INDEX 4
> 
> BR // Mats
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



More information about the U-Boot mailing list