[U-Boot] u-boot using UART1

Wolfgang Denk wd at denx.de
Fri Jul 22 10:56:39 CEST 2011


Dear Nick Thompson,

In message <4E293329.9050009 at ge.com> you wrote:
>
> > Could you tell us how to modify u-boot to use UART1 for its console?
> 
> $ grep UART include/configs/da830evm.h
> #define CONFIG_SYS_NS16550_COM1 DAVINCI_UART2_BASE /* Base address of UART2 */
> #define CONFIG_SYS_NS16550_CLK  clk_get(DAVINCI_UART2_CLKID)
> #define CONFIG_CONS_INDEX       1               /* use UART0 for console */
> 
> Just change DAVINCI_UART2_BASE to DAVINCI_UART1_BASE.

Eventually it would be useful to also change the definition of
CONFIG_SYS_NS16550_CLK to refer to DAVINCI_UART1_CLKID

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Evil does seek to maintain power by suppressing the truth."
"Or by misleading the innocent."
	-- Spock and McCoy, "And The Children Shall Lead",
	   stardate 5029.5.


More information about the U-Boot mailing list