diff options
author | gregory hermant <gregory.hermant@calao-systems.com> | 2012-08-03 12:00:26 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-03 15:51:25 +0200 |
commit | 93cd86f6e67d12af761997b63c77838f40a928e6 (patch) | |
tree | df06e722761f06f022577ad601f82a94d0e4fbd9 | |
parent | 894b2ee9129513906fb547c15189e0eca7e7b43a (diff) | |
download | barebox-93cd86f6e67d12af761997b63c77838f40a928e6.tar.gz barebox-93cd86f6e67d12af761997b63c77838f40a928e6.tar.xz |
Enable pull-up on Rx serial ports for the CALAO MB-QIL-A9260
This patch prevents to stop the autoboot randomly for the CALAO MB-QIL-A9260.
Indeed on this board, there's no pull-up on the RX inputs for the DBGU, COM1 & COM2 serial port.
With pull-up enabled, there's no longer unwanted character received from these console (CONFIG_CONSOLE_ACTIVATE_ALL=y).
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/boards/qil-a9260/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boards/qil-a9260/init.c b/arch/arm/boards/qil-a9260/init.c index ee204fb860..6b1ed85609 100644 --- a/arch/arm/boards/qil-a9260/init.c +++ b/arch/arm/boards/qil-a9260/init.c @@ -192,11 +192,17 @@ device_initcall(qil_a9260_devices_init); static int qil_a9260_console_init(void) { at91_register_uart(0, 0); + at91_set_A_periph(AT91_PIN_PB14, 1); /* Enable pull-up on DRXD */ + at91_register_uart(1, ATMEL_UART_CTS | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | ATMEL_UART_RI); + at91_register_uart(2, ATMEL_UART_CTS | ATMEL_UART_RTS); + at91_set_A_periph(AT91_PIN_PB7, 1); /* Enable pull-up on RXD1 */ + at91_register_uart(3, ATMEL_UART_CTS | ATMEL_UART_RTS); + at91_set_A_periph(AT91_PIN_PB9, 1); /* Enable pull-up on RXD2 */ return 0; } |