[PATCH 12/20] mini2440: Configure debug UART pins very early
Juergen Beisert
jbe at pengutronix.de
Wed Feb 16 13:13:37 EST 2011
From: Juergen Beisert <juergen at kreuzholzen.de>
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 at kreuzholzen.de>
---
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
More information about the barebox
mailing list