Blackfin: bfin_serial.h: turn default port wrappers into stubs
[deliverable/linux.git] / arch / blackfin / mach-bf561 / include / mach / bfin_serial_5xx.h
CommitLineData
5be36d22 1/*
96f1050d 2 * Copyright 2006-2009 Analog Devices Inc.
5be36d22 3 *
96f1050d 4 * Licensed under the GPL-2 or later.
5be36d22
GY
5 */
6
1394f032 7#include <asm/dma.h>
c58c2140 8#include <asm/portmux.h>
1394f032 9
1394f032
BW
10#ifdef CONFIG_BFIN_UART0_CTSRTS
11# define CONFIG_SERIAL_BFIN_CTSRTS
12# ifndef CONFIG_UART0_CTS_PIN
13# define CONFIG_UART0_CTS_PIN -1
14# endif
15# ifndef CONFIG_UART0_RTS_PIN
16# define CONFIG_UART0_RTS_PIN -1
17# endif
18#endif
19
1394f032
BW
20struct bfin_serial_res {
21 unsigned long uart_base_addr;
22 int uart_irq;
d307d36a 23 int uart_status_irq;
1394f032
BW
24#ifdef CONFIG_SERIAL_BFIN_DMA
25 unsigned int uart_tx_dma_channel;
26 unsigned int uart_rx_dma_channel;
27#endif
28#ifdef CONFIG_SERIAL_BFIN_CTSRTS
29 int uart_cts_pin;
30 int uart_rts_pin;
31#endif
32};
33
34struct bfin_serial_res bfin_serial_resource[] = {
9c8f1729 35 {
1394f032
BW
36 0xFFC00400,
37 IRQ_UART_RX,
d307d36a 38 IRQ_UART_ERROR,
1394f032
BW
39#ifdef CONFIG_SERIAL_BFIN_DMA
40 CH_UART_TX,
41 CH_UART_RX,
42#endif
97d4b35f 43#ifdef CONFIG_SERIAL_BFIN_CTSRTS
1394f032
BW
44 CONFIG_UART0_CTS_PIN,
45 CONFIG_UART0_RTS_PIN,
46#endif
9c8f1729 47 }
1394f032
BW
48};
49
c58c2140 50#define DRIVER_NAME "bfin-uart"
b1524e29
MF
51
52#include <asm/bfin_serial.h>
This page took 0.375756 seconds and 5 git commands to generate.