2
* Copyright 2007-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
defined(CONFIG_BFIN_UART2_CTSRTS) || defined(CONFIG_BFIN_UART3_CTSRTS)
12
# define CONFIG_SERIAL_BFIN_HARD_CTSRTS
15
struct bfin_serial_res {
16
unsigned long uart_base_addr;
19
#ifdef CONFIG_SERIAL_BFIN_DMA
20
unsigned int uart_tx_dma_channel;
21
unsigned int uart_rx_dma_channel;
23
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
29
struct bfin_serial_res bfin_serial_resource[] = {
30
#ifdef CONFIG_SERIAL_BFIN_UART0
35
#ifdef CONFIG_SERIAL_BFIN_DMA
39
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
45
#ifdef CONFIG_SERIAL_BFIN_UART1
50
#ifdef CONFIG_SERIAL_BFIN_DMA
54
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
60
#ifdef CONFIG_SERIAL_BFIN_UART2
65
#ifdef CONFIG_SERIAL_BFIN_DMA
69
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
75
#ifdef CONFIG_SERIAL_BFIN_UART3
80
#ifdef CONFIG_SERIAL_BFIN_DMA
84
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
92
#define DRIVER_NAME "bfin-uart"
94
#include <asm/bfin_serial.h>