]> git.sur5r.net Git - u-boot/commitdiff
edb93xx: enable the uart in devicecfg register
authorAlessandro Rubini <rubini-list@gnudd.com>
Sat, 6 Feb 2010 19:54:05 +0000 (20:54 +0100)
committerTom Rix <Tom.Rix@windriver.com>
Sun, 7 Feb 2010 21:05:56 +0000 (15:05 -0600)
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>
board/edb93xx/edb93xx.c

index 4df2246bd70f822a4b28406b19a51278fe6a2e62..dde30ffdc23d84edcd1c3aa2be084a065e716a2c 100644 (file)
@@ -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;