From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NduUf-0004sq-Tl for barebox@lists.infradead.org; Sat, 06 Feb 2010 23:55:22 +0000 Date: Sun, 7 Feb 2010 00:54:56 +0100 From: Matthias Kaehlcke Message-ID: <20100206235456.GD15617@darwin> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] edb93xx: Enable UART1 To: barebox@lists.infradead.org edb93xx: according to the datasheet UART1 needs to be enabled explicitly Signed-off-by: Matthias Kaehlcke --- 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 add88e1..6316988 100644 --- a/board/edb93xx/edb93xx.c +++ b/board/edb93xx/edb93xx.c @@ -32,6 +32,8 @@ #include #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; -- 1.6.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox