mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
arm, da850: enable the correct uart in arch_cpu_init()
in arch_cpu_init() uart2 is fix enabled, without reference the setting from CONFIG_SYS_NS16550_COM1. Use the setting from CONFIG_SYS_NS16550_COM1 for enabling the console. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Tom Rini <tom.rini@gmail.com> Cc: Christian Riesch <christian.riesch@omicron.at>
This commit is contained in:
parent
7f442e36f1
commit
9c8deaeeb7
1 changed files with 4 additions and 0 deletions
|
@ -299,7 +299,11 @@ int arch_cpu_init(void)
|
|||
*/
|
||||
writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
|
||||
DAVINCI_UART_PWREMU_MGMT_UTRST),
|
||||
#if (CONFIG_SYS_NS16550_COM1 == DAVINCI_UART0_BASE)
|
||||
&davinci_uart0_ctrl_regs->pwremu_mgmt);
|
||||
#else
|
||||
&davinci_uart2_ctrl_regs->pwremu_mgmt);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYS_DA850_DDR_INIT)
|
||||
da850_ddr_setup();
|
||||
|
|
Loading…
Add table
Reference in a new issue