diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-06 05:50:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-11-04 07:14:20 -0500 |
commit | f91b55ab72a913a8a61e377a7766772a20f0d96b (patch) | |
tree | a572b4b120875fad21b0c1543efb10e3cd06e8aa /arch/arm/plat-omap | |
parent | 4073a53b36ff993f7c4d158d1cf30d93c7d12add (diff) |
SERIAL: omap: move driver private definitions and structures to driver
struct uart_omap_port and struct uart_omap_dma, and associated
definitions are private to the driver, so there's no point them sitting
in an include file under arch/arm. Move them into the driver itself.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-serial.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h index 1957a8516e93..8642e9d57b0c 100644 --- a/arch/arm/plat-omap/include/plat/omap-serial.h +++ b/arch/arm/plat-omap/include/plat/omap-serial.h | |||
@@ -30,35 +30,9 @@ | |||
30 | */ | 30 | */ |
31 | #define OMAP_SERIAL_NAME "ttyO" | 31 | #define OMAP_SERIAL_NAME "ttyO" |
32 | 32 | ||
33 | #define OMAP_MODE13X_SPEED 230400 | ||
34 | |||
35 | #define OMAP_UART_SCR_TX_EMPTY 0x08 | ||
36 | |||
37 | /* WER = 0x7F | ||
38 | * Enable module level wakeup in WER reg | ||
39 | */ | ||
40 | #define OMAP_UART_WER_MOD_WKUP 0X7F | ||
41 | |||
42 | /* Enable XON/XOFF flow control on output */ | ||
43 | #define OMAP_UART_SW_TX 0x04 | ||
44 | |||
45 | /* Enable XON/XOFF flow control on input */ | ||
46 | #define OMAP_UART_SW_RX 0x04 | ||
47 | |||
48 | #define OMAP_UART_SYSC_RESET 0X07 | 33 | #define OMAP_UART_SYSC_RESET 0X07 |
49 | #define OMAP_UART_TCR_TRIG 0X0F | ||
50 | #define OMAP_UART_SW_CLR 0XF0 | ||
51 | #define OMAP_UART_FIFO_CLR 0X06 | 34 | #define OMAP_UART_FIFO_CLR 0X06 |
52 | 35 | ||
53 | #define OMAP_UART_DMA_CH_FREE -1 | ||
54 | |||
55 | #define OMAP_MAX_HSUART_PORTS 6 | ||
56 | |||
57 | #define MSR_SAVE_FLAGS UART_MSR_ANY_DELTA | ||
58 | |||
59 | #define UART_ERRATA_i202_MDR1_ACCESS BIT(0) | ||
60 | #define UART_ERRATA_i291_DMA_FORCEIDLE BIT(1) | ||
61 | |||
62 | struct omap_uart_port_info { | 36 | struct omap_uart_port_info { |
63 | bool dma_enabled; /* To specify DMA Mode */ | 37 | bool dma_enabled; /* To specify DMA Mode */ |
64 | unsigned int uartclk; /* UART clock rate */ | 38 | unsigned int uartclk; /* UART clock rate */ |
@@ -77,30 +51,4 @@ struct omap_uart_port_info { | |||
77 | void (*enable_wakeup)(struct device *, bool); | 51 | void (*enable_wakeup)(struct device *, bool); |
78 | }; | 52 | }; |
79 | 53 | ||
80 | struct uart_omap_dma { | ||
81 | u8 uart_dma_tx; | ||
82 | u8 uart_dma_rx; | ||
83 | int rx_dma_channel; | ||
84 | int tx_dma_channel; | ||
85 | dma_addr_t rx_buf_dma_phys; | ||
86 | dma_addr_t tx_buf_dma_phys; | ||
87 | unsigned int uart_base; | ||
88 | /* | ||
89 | * Buffer for rx dma.It is not required for tx because the buffer | ||
90 | * comes from port structure. | ||
91 | */ | ||
92 | unsigned char *rx_buf; | ||
93 | unsigned int prev_rx_dma_pos; | ||
94 | int tx_buf_size; | ||
95 | int tx_dma_used; | ||
96 | int rx_dma_used; | ||
97 | spinlock_t tx_lock; | ||
98 | spinlock_t rx_lock; | ||
99 | /* timer to poll activity on rx dma */ | ||
100 | struct timer_list rx_timer; | ||
101 | unsigned int rx_buf_size; | ||
102 | unsigned int rx_poll_rate; | ||
103 | unsigned int rx_timeout; | ||
104 | }; | ||
105 | |||
106 | #endif /* __OMAP_SERIAL_H__ */ | 54 | #endif /* __OMAP_SERIAL_H__ */ |