Blackfin: bfin_serial.h: turn default port wrappers into stubs
[deliverable/linux.git] / arch / blackfin / mach-bf561 / include / mach / bfin_serial_5xx.h
1 /*
2 * Copyright 2006-2009 Analog Devices Inc.
3 *
4 * Licensed under the GPL-2 or later.
5 */
6
7 #include <asm/dma.h>
8 #include <asm/portmux.h>
9
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
20 struct bfin_serial_res {
21 unsigned long uart_base_addr;
22 int uart_irq;
23 int uart_status_irq;
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
34 struct bfin_serial_res bfin_serial_resource[] = {
35 {
36 0xFFC00400,
37 IRQ_UART_RX,
38 IRQ_UART_ERROR,
39 #ifdef CONFIG_SERIAL_BFIN_DMA
40 CH_UART_TX,
41 CH_UART_RX,
42 #endif
43 #ifdef CONFIG_SERIAL_BFIN_CTSRTS
44 CONFIG_UART0_CTS_PIN,
45 CONFIG_UART0_RTS_PIN,
46 #endif
47 }
48 };
49
50 #define DRIVER_NAME "bfin-uart"
51
52 #include <asm/bfin_serial.h>
This page took 0.037869 seconds and 5 git commands to generate.