From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PocfC-0001Jj-N6 for barebox@lists.infradead.org; Sun, 13 Feb 2011 14:11:06 +0000 From: Juergen Beisert Date: Sun, 13 Feb 2011 15:10:46 +0100 Message-Id: <1297606252-802-10-git-send-email-jbe@pengutronix.de> In-Reply-To: <1297606252-802-1-git-send-email-jbe@pengutronix.de> References: <1297606252-802-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 09/15] mini2440: Configure debug UART pins very early To: barebox@lists.infradead.org Cc: Juergen Beisert From: Juergen Beisert This is required in order to enable booting from NAND and to avoid any visible garbage on the screen until the pins are really set. Signed-off-by: Juergen Beisert --- arch/arm/boards/mini2440/mini2440.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/mini2440/mini2440.c b/arch/arm/boards/mini2440/mini2440.c index 17496a4..46581cc 100644 --- a/arch/arm/boards/mini2440/mini2440.c +++ b/arch/arm/boards/mini2440/mini2440.c @@ -138,6 +138,15 @@ static struct device_d mini2440_serial_device = { static int mini2440_console_init(void) { + /* + * configure the UART1 right now, as barebox will + * start to send data immediately + */ + s3c_gpio_mode(GPH0_NCTS0); + s3c_gpio_mode(GPH1_NRTS0); + s3c_gpio_mode(GPH2_TXD0); + s3c_gpio_mode(GPH3_RXD0); + register_device(&mini2440_serial_device); return 0; } -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox