From: Alessandro Rubini Date: Sat, 6 Feb 2010 19:54:05 +0000 (+0100) Subject: edb93xx: enable the uart in devicecfg register X-Git-Tag: v2010.09-rc1~28^2~7^2~26^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fba8bfd7a8ac1f16dbc603177115d37dbc9549a6;p=u-boot 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 --- diff --git a/board/edb93xx/edb93xx.c b/board/edb93xx/edb93xx.c index 4df2246bd7..dde30ffdc2 100644 --- a/board/edb93xx/edb93xx.c +++ b/board/edb93xx/edb93xx.c @@ -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;