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:
parent
29cfc72bd9
commit
018fdf06a2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue