diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/omap-serial.h')
| -rw-r--r-- | arch/arm/plat-omap/include/plat/omap-serial.h | 54 | 
1 files changed, 10 insertions, 44 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h index 1a52725ffcf..f4a4cd01479 100644 --- a/arch/arm/plat-omap/include/plat/omap-serial.h +++ b/arch/arm/plat-omap/include/plat/omap-serial.h @@ -18,11 +18,9 @@  #define __OMAP_SERIAL_H__  #include <linux/serial_core.h> -#include <linux/platform_device.h> +#include <linux/device.h>  #include <linux/pm_qos.h> -#include <plat/mux.h> -  #define DRIVER_NAME	"omap_uart"  /* @@ -42,10 +40,10 @@  #define OMAP_UART_WER_MOD_WKUP	0X7F  /* Enable XON/XOFF flow control on output */ -#define OMAP_UART_SW_TX		0x04 +#define OMAP_UART_SW_TX		0x8  /* Enable XON/XOFF flow control on input */ -#define OMAP_UART_SW_RX		0x04 +#define OMAP_UART_SW_RX		0x2  #define OMAP_UART_SYSC_RESET	0X07  #define OMAP_UART_TCR_TRIG	0X0F @@ -54,7 +52,7 @@  #define OMAP_UART_DMA_CH_FREE	-1 -#define OMAP_MAX_HSUART_PORTS	4 +#define OMAP_MAX_HSUART_PORTS	6  #define MSR_SAVE_FLAGS		UART_MSR_ANY_DELTA @@ -69,11 +67,14 @@ struct omap_uart_port_info {  	unsigned int		dma_rx_timeout;  	unsigned int		autosuspend_timeout;  	unsigned int		dma_rx_poll_rate; +	int			DTR_gpio; +	int			DTR_inverted; +	int			DTR_present;  	int (*get_context_loss_count)(struct device *); -	void (*set_forceidle)(struct platform_device *); -	void (*set_noidle)(struct platform_device *); -	void (*enable_wakeup)(struct platform_device *, bool); +	void (*set_forceidle)(struct device *); +	void (*set_noidle)(struct device *); +	void (*enable_wakeup)(struct device *, bool);  };  struct uart_omap_dma { @@ -102,39 +103,4 @@ struct uart_omap_dma {  	unsigned int		rx_timeout;  }; -struct uart_omap_port { -	struct uart_port	port; -	struct uart_omap_dma	uart_dma; -	struct platform_device	*pdev; - -	unsigned char		ier; -	unsigned char		lcr; -	unsigned char		mcr; -	unsigned char		fcr; -	unsigned char		efr; -	unsigned char		dll; -	unsigned char		dlh; -	unsigned char		mdr1; -	unsigned char		scr; - -	int			use_dma; -	/* -	 * Some bits in registers are cleared on a read, so they must -	 * be saved whenever the register is read but the bits will not -	 * be immediately processed. -	 */ -	unsigned int		lsr_break_flag; -	unsigned char		msr_saved_flags; -	char			name[20]; -	unsigned long		port_activity; -	u32			context_loss_cnt; -	u32			errata; -	u8			wakeups_enabled; - -	struct pm_qos_request	pm_qos_request; -	u32			latency; -	u32			calc_latency; -	struct work_struct	qos_work; -}; -  #endif /* __OMAP_SERIAL_H__ */  |