ARM: tegra12: loki: put DSIC/D into DPD mode
Terry Wang [Wed, 4 Dec 2013 15:20:44 +0000 (23:20 +0800)]
Put DSIC/D pads into DPD mode to save additional power for Loki.

Bug 1416110

Change-Id: Ibd5bd402658c6ce06c598150e0134a1ec773502b
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/337250
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-loki-panel.c

index a927904..82d44f0 100644 (file)
@@ -31,6 +31,7 @@
 #include <mach/irqs.h>
 #include <mach/dc.h>
 #include <mach/pinmux-t12.h>
+#include <mach/io_dpd.h>
 
 #include "board.h"
 #include "devices.h"
@@ -370,6 +371,16 @@ static struct platform_device loki_nvmap_device = {
                .platform_data = &loki_nvmap_data,
        },
 };
+static struct tegra_io_dpd dsic_io = {
+       .name                   = "DSIC",
+       .io_dpd_reg_index       = 1,
+       .io_dpd_bit             = 8,
+};
+static struct tegra_io_dpd dsid_io = {
+       .name                   = "DSID",
+       .io_dpd_reg_index       = 1,
+       .io_dpd_bit             = 9,
+};
 
 static void loki_panel_select(void)
 {
@@ -389,6 +400,8 @@ static void loki_panel_select(void)
        case 0x0:
        default:
                panel = &dsi_l_720p_5_loki;
+               tegra_io_dpd_enable(&dsic_io);
+               tegra_io_dpd_enable(&dsid_io);
                break;
        }
        if (panel) {