summaryrefslogtreecommitdiff
path: root/board/edb93xx/edb93xx.c
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini-list@gnudd.com>2010-02-06 20:54:05 +0100
committerTom Rix <Tom.Rix@windriver.com>2010-02-12 12:31:54 -0600
commit39a9142203e610bf2b1a216085e374277fd28f9f (patch)
tree16a41002380b66116e56f7f06792b317e5d97451 /board/edb93xx/edb93xx.c
parent822bd70db49773b4d57eaa484dca83386a6b3479 (diff)
downloadu-boot-imx-39a9142203e610bf2b1a216085e374277fd28f9f.zip
u-boot-imx-39a9142203e610bf2b1a216085e374277fd28f9f.tar.gz
u-boot-imx-39a9142203e610bf2b1a216085e374277fd28f9f.tar.bz2
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>
Diffstat (limited to 'board/edb93xx/edb93xx.c')
-rw-r--r--board/edb93xx/edb93xx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/edb93xx/edb93xx.c b/board/edb93xx/edb93xx.c
index 4df2246..dde30ff 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;