Commit bc4d95995c4ef85f03266050d88172d610a92be4
Committed by
Satyanarayana Sandhya
1 parent
4e5280660d
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
3 other branches
ARM: OMAP2+: AM33xx: Enable loss of context callback for lcd
This patch adds context loss related platform data for lcd. This allows lcd driver to check for the loss of context and depending upon the status it will decide whether to restore or not. Signed-off-by: ShankarMurthy, Akshay <akshay.s@ti.com>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/board-am335xevm.c
... | ... | @@ -56,6 +56,7 @@ |
56 | 56 | #include <asm/hardware/asp.h> |
57 | 57 | |
58 | 58 | #include <plat/omap_device.h> |
59 | +#include <plat/omap-pm.h> | |
59 | 60 | #include <plat/irqs.h> |
60 | 61 | #include <plat/board.h> |
61 | 62 | #include <plat/common.h> |
... | ... | @@ -1064,6 +1065,8 @@ |
1064 | 1065 | pr_err("LCDC not supported on this evm (%d)\n",evm_id); |
1065 | 1066 | return; |
1066 | 1067 | } |
1068 | + | |
1069 | + lcdc_pdata->get_context_loss_count = omap_pm_get_dev_context_loss_count; | |
1067 | 1070 | |
1068 | 1071 | if (am33xx_register_lcdc(lcdc_pdata)) |
1069 | 1072 | pr_info("Failed to register LCDC device\n"); |