diff options
author | NeilBrown <neilb@suse.de> | 2012-07-29 20:30:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 15:10:43 -0400 |
commit | 9574f36fb801035f6ab0fbb1b53ce2c12c17d100 (patch) | |
tree | feb4794a8c1a54b5fb0e3024b836e93f2a39f36e /arch/arm/plat-omap | |
parent | a92098a1cb7ec08c86d1b97d1831d8edaf26b1a2 (diff) |
OMAP/serial: Add support for driving a GPIO as DTR.
OMAP hardware doesn't provide a phyisical DTR line, but
some configurations may need a DTR line which tracks whether
the device is open or not.
So allow a gpio to be configured as the DTR line.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-serial.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h index 1a52725ffcf2..52d3de45745f 100644 --- a/arch/arm/plat-omap/include/plat/omap-serial.h +++ b/arch/arm/plat-omap/include/plat/omap-serial.h | |||
@@ -69,6 +69,9 @@ struct omap_uart_port_info { | |||
69 | unsigned int dma_rx_timeout; | 69 | unsigned int dma_rx_timeout; |
70 | unsigned int autosuspend_timeout; | 70 | unsigned int autosuspend_timeout; |
71 | unsigned int dma_rx_poll_rate; | 71 | unsigned int dma_rx_poll_rate; |
72 | int DTR_gpio; | ||
73 | int DTR_inverted; | ||
74 | int DTR_present; | ||
72 | 75 | ||
73 | int (*get_context_loss_count)(struct device *); | 76 | int (*get_context_loss_count)(struct device *); |
74 | void (*set_forceidle)(struct platform_device *); | 77 | void (*set_forceidle)(struct platform_device *); |
@@ -131,6 +134,10 @@ struct uart_omap_port { | |||
131 | u32 errata; | 134 | u32 errata; |
132 | u8 wakeups_enabled; | 135 | u8 wakeups_enabled; |
133 | 136 | ||
137 | int DTR_gpio; | ||
138 | int DTR_inverted; | ||
139 | int DTR_active; | ||
140 | |||
134 | struct pm_qos_request pm_qos_request; | 141 | struct pm_qos_request pm_qos_request; |
135 | u32 latency; | 142 | u32 latency; |
136 | u32 calc_latency; | 143 | u32 calc_latency; |