9
0
Fork 0

mini2440: Configure debug UART pins very early

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 <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Juergen Beisert 2011-02-16 19:13:37 +01:00 committed by Sascha Hauer
parent 29cfc72bd9
commit 018fdf06a2
1 changed files with 9 additions and 0 deletions

View File

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