提交 952c855f 编写于 作者: B Bill Gatliff 提交者: Russell King

[ARM] 4937/1: [CSB637] Convert to new-style UART initialization

Converts the CSB637 to the new-style UART initialization API.
Signed-off-by: NBill Gatliff <bgat@billgatliff.com>
Acked-by: NAndrew Victor <linux@maxim.org.za>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 c8fc1916
......@@ -40,17 +40,6 @@
#include "generic.h"
/*
* Serial port configuration.
* 0 .. 3 = USART0 .. USART3
* 4 = DBGU
*/
static struct at91_uart_config __initdata csb637_uart_config = {
.console_tty = 0, /* ttyS0 */
.nr_tty = 2,
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
};
static void __init csb637_map_io(void)
{
/* Initialize processor: 3.6864 MHz crystal */
......@@ -59,8 +48,11 @@ static void __init csb637_map_io(void)
/* Setup the LEDs */
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
/* Setup the serial ports and console */
at91_init_serial(&csb637_uart_config);
/* DBGU on ttyS0 */
at91_register_uart(0, 0, 0);
/* make console=ttyS0 the default */
at91_set_serial_console(0);
}
static void __init csb637_init_irq(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册