summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu-panel.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2011-04-12 18:14:22 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:07 -0800
commit10c023773e43732835d237b08838f85b8b929830 (patch)
tree8ade584b99a0374322227391ec85523ed934d3c7 /arch/arm/mach-tegra/board-cardhu-panel.c
parentee2c42400237c637c1616016b37a90d2e6e01dd5 (diff)
arm: tegra: cardhu: hdmi: use hotplug_init
use FB_BLANK_POWERDOWN on hdmi device in earlysuspend to cause tegra_dc_disable. use new hotplug_init / postsuspend callbacks to manage +5V hdmi power pin. this pin should be enabled whenever the device is active, and off when the device is suspended. bug 812083 bug 811523 Original-Change-Id: I6e8a2ae2683c79d5271aef9580df68c11628c823 Reviewed-on: http://git-master/r/27571 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Tested-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Original-Change-Id: I6d98bdd58c90e02085d13bf29f2046baf144722e Rebase-Id: Ra8e3c0247a16fdcba0c2a0a8795b2b1e6e9155bb
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-cardhu-panel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c
index b667fbe2508b..6279fc341c24 100644
--- a/arch/arm/mach-tegra/board-cardhu-panel.c
+++ b/arch/arm/mach-tegra/board-cardhu-panel.c
@@ -1048,14 +1048,16 @@ struct early_suspend cardhu_panel_early_suspender;
static void cardhu_panel_early_suspend(struct early_suspend *h)
{
- if (num_registered_fb > 0)
- fb_blank(registered_fb[0], FB_BLANK_POWERDOWN);
+ unsigned i;
+ for (i = 0; i < num_registered_fb; i++)
+ fb_blank(registered_fb[i], FB_BLANK_POWERDOWN);
}
static void cardhu_panel_late_resume(struct early_suspend *h)
{
- if (num_registered_fb > 0)
- fb_blank(registered_fb[0], FB_BLANK_UNBLANK);
+ unsigned i;
+ for (i = 0; i < num_registered_fb; i++)
+ fb_blank(registered_fb[i], FB_BLANK_UNBLANK);
}
#endif