2 * Copyright 2006-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
8 #include <asm/portmux.h>
10 #if defined(CONFIG_BFIN_UART0_CTSRTS) || defined(CONFIG_BFIN_UART1_CTSRTS)
11 # define CONFIG_SERIAL_BFIN_CTSRTS
13 # ifndef CONFIG_UART0_CTS_PIN
14 # define CONFIG_UART0_CTS_PIN -1
17 # ifndef CONFIG_UART0_RTS_PIN
18 # define CONFIG_UART0_RTS_PIN -1
21 # ifndef CONFIG_UART1_CTS_PIN
22 # define CONFIG_UART1_CTS_PIN -1
25 # ifndef CONFIG_UART1_RTS_PIN
26 # define CONFIG_UART1_RTS_PIN -1
30 struct bfin_serial_res
{
31 unsigned long uart_base_addr
;
34 #ifdef CONFIG_SERIAL_BFIN_DMA
35 unsigned int uart_tx_dma_channel
;
36 unsigned int uart_rx_dma_channel
;
38 #ifdef CONFIG_SERIAL_BFIN_CTSRTS
44 struct bfin_serial_res bfin_serial_resource
[] = {
45 #ifdef CONFIG_SERIAL_BFIN_UART0
50 #ifdef CONFIG_SERIAL_BFIN_DMA
54 #ifdef CONFIG_SERIAL_BFIN_CTSRTS
60 #ifdef CONFIG_SERIAL_BFIN_UART1
65 #ifdef CONFIG_SERIAL_BFIN_DMA
69 #ifdef CONFIG_SERIAL_BFIN_CTSRTS
77 #define DRIVER_NAME "bfin-uart"
79 #include <asm/bfin_serial.h>