aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
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/mach-omap2
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/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index b3f3284bf6ba..78ca7e8fc10b 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -33,6 +33,7 @@
33#include <plat/dma.h> 33#include <plat/dma.h>
34#include <plat/omap_hwmod.h> 34#include <plat/omap_hwmod.h>
35#include <plat/omap_device.h> 35#include <plat/omap_device.h>
36#include <plat/omap-pm.h>
36 37
37#include "prm2xxx_3xxx.h" 38#include "prm2xxx_3xxx.h"
38#include "pm.h" 39#include "pm.h"
@@ -478,6 +479,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
478 omap_up.dma_enabled = uart->dma_enabled; 479 omap_up.dma_enabled = uart->dma_enabled;
479 omap_up.uartclk = OMAP24XX_BASE_BAUD * 16; 480 omap_up.uartclk = OMAP24XX_BASE_BAUD * 16;
480 omap_up.flags = UPF_BOOT_AUTOCONF; 481 omap_up.flags = UPF_BOOT_AUTOCONF;
482 omap_up.get_context_loss_count = omap_pm_get_dev_context_loss_count;
481 483
482 pdata = &omap_up; 484 pdata = &omap_up;
483 pdata_size = sizeof(struct omap_uart_port_info); 485 pdata_size = sizeof(struct omap_uart_port_info);