aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorGovindraj.R <govindraj.raja@ti.com>2011-10-11 09:41:27 -0400
committerKevin Hilman <khilman@ti.com>2011-12-14 19:05:22 -0500
commitec3bebc6ec64aac23500e6b8ef5c0aaaeda735cf (patch)
tree8d47117285aecdb37e65f1fc72b3070f45444433 /arch/arm/plat-omap
parent32212897eeb8c2b2b3c74dbd44d842963084d808 (diff)
ARM: OMAP2+: UART: Get context loss count to context restore
Avoid unconditional context restore every time we gate uart clocks. Check whether context loss happened based on which we can context restore uart regs from uart_port structure. Signed-off-by: Govindraj.R <govindraj.raja@ti.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> (for drivers/tty changes) Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/omap-serial.h3
1 files changed, 3 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 5b913c71cd7f..348c9ead6edb 100644
--- a/arch/arm/plat-omap/include/plat/omap-serial.h
+++ b/arch/arm/plat-omap/include/plat/omap-serial.h
@@ -62,6 +62,8 @@ struct omap_uart_port_info {
62 bool dma_enabled; /* To specify DMA Mode */ 62 bool dma_enabled; /* To specify DMA Mode */
63 unsigned int uartclk; /* UART clock rate */ 63 unsigned int uartclk; /* UART clock rate */
64 upf_t flags; /* UPF_* flags */ 64 upf_t flags; /* UPF_* flags */
65
66 int (*get_context_loss_count)(struct device *);
65}; 67};
66 68
67struct uart_omap_dma { 69struct uart_omap_dma {
@@ -114,6 +116,7 @@ struct uart_omap_port {
114 unsigned char msr_saved_flags; 116 unsigned char msr_saved_flags;
115 char name[20]; 117 char name[20];
116 unsigned long port_activity; 118 unsigned long port_activity;
119 u32 context_loss_cnt;
117}; 120};
118 121
119#endif /* __OMAP_SERIAL_H__ */ 122#endif /* __OMAP_SERIAL_H__ */