bfin_serial_5xx.h 962 字节
Newer Older
1
/*
2
 * Copyright 2006-2009 Analog Devices Inc.
3
 *
4
 * Licensed under the GPL-2 or later
5 6
 */

B
Bryan Wu 已提交
7
#include <asm/dma.h>
8
#include <asm/portmux.h>
B
Bryan Wu 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22

#ifdef CONFIG_BFIN_UART0_CTSRTS
# define CONFIG_SERIAL_BFIN_CTSRTS
# ifndef CONFIG_UART0_CTS_PIN
#  define CONFIG_UART0_CTS_PIN -1
# endif
# ifndef CONFIG_UART0_RTS_PIN
#  define CONFIG_UART0_RTS_PIN -1
# endif
#endif

struct bfin_serial_res {
	unsigned long	uart_base_addr;
	int		uart_irq;
S
Sonic Zhang 已提交
23
	int		uart_status_irq;
B
Bryan Wu 已提交
24 25 26 27 28 29 30 31 32 33 34
#ifdef CONFIG_SERIAL_BFIN_DMA
	unsigned int	uart_tx_dma_channel;
	unsigned int	uart_rx_dma_channel;
#endif
#ifdef CONFIG_SERIAL_BFIN_CTSRTS
	int		uart_cts_pin;
	int		uart_rts_pin;
#endif
};

struct bfin_serial_res bfin_serial_resource[] = {
35
	{
B
Bryan Wu 已提交
36
	0xFFC00400,
37 38
	IRQ_UART0_RX,
	IRQ_UART0_ERROR,
B
Bryan Wu 已提交
39
#ifdef CONFIG_SERIAL_BFIN_DMA
40 41
	CH_UART0_TX,
	CH_UART0_RX,
B
Bryan Wu 已提交
42
#endif
43
#ifdef CONFIG_SERIAL_BFIN_CTSRTS
B
Bryan Wu 已提交
44 45 46
	CONFIG_UART0_CTS_PIN,
	CONFIG_UART0_RTS_PIN,
#endif
47
	}
B
Bryan Wu 已提交
48 49
};

50
#define DRIVER_NAME "bfin-uart"
51 52

#include <asm/bfin_serial.h>