diff options
author | Matthias Kaehlcke <matthias@kaehlcke.net> | 2010-02-07 00:54:56 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-02-08 14:42:06 +0100 |
commit | 796bb21f59b655034ea590d3a53c4cddca479dc9 (patch) | |
tree | 806a1fd2fe7093654d74ac3340c322efa910bd08 /board | |
parent | 0c116854b75604aa2319e47eca1be6cb7bc22933 (diff) | |
download | barebox-796bb21f59b655034ea590d3a53c4cddca479dc9.tar.gz barebox-796bb21f59b655034ea590d3a53c4cddca479dc9.tar.xz |
edb93xx: Enable UART1
edb93xx: according to the datasheet UART1 needs to be enabled explicitly
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/edb93xx/edb93xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/edb93xx/edb93xx.c b/board/edb93xx/edb93xx.c index add88e1de9..b0078a5227 100644 --- a/board/edb93xx/edb93xx.c +++ b/board/edb93xx/edb93xx.c @@ -32,6 +32,8 @@ #include <mach/ep93xx-regs.h> #include "edb93xx.h" +#define DEVCFG_U1EN (1 << 18) + /* * Up to 32MiB NOR type flash, connected to * CS line 6, data width is 16 bit @@ -164,6 +166,12 @@ static int edb93xx_console_init(void) value |= SYSCON_PWRCNT_UART_BAUD; writel(value, &syscon->pwrcnt); + /* Enable UART1 */ + value = readl(&syscon->devicecfg); + value |= DEVCFG_U1EN; + writel(0xAA, &syscon->sysswlock); + writel(value, &syscon->devicecfg); + register_device(&edb93xx_serial_device); return 0; |