mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-01-25 03:15:17 +00:00
edb93xx: enable the uart in devicecfg register
printf goes to uart1, but it will block forever waiting for busy to go off unless the uart is enabled first. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
This commit is contained in:
parent
ce262f9838
commit
fba8bfd7a8
1 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,12 @@ int board_init(void)
|
|||
value |= SYSCON_PWRCNT_UART_BAUD;
|
||||
writel(value, &syscon->pwrcnt);
|
||||
|
||||
/* Enable the uart in devicecfg */
|
||||
value = readl(&syscon->devicecfg);
|
||||
value |= 1<<18 /* U1EN */;
|
||||
writel(0xAA, &syscon->sysswlock);
|
||||
writel(value, &syscon->devicecfg);
|
||||
|
||||
/* Machine number, as defined in linux/arch/arm/tools/mach-types */
|
||||
gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue