9
0
Fork 0

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>
This commit is contained in:
Matthias Kaehlcke 2010-02-07 00:54:56 +01:00 committed by Sascha Hauer
parent 0c116854b7
commit 796bb21f59
1 changed files with 8 additions and 0 deletions

View File

@ -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;