]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra210: set initial io dpd state from DT
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 1 Jun 2015 07:19:59 +0000 (12:49 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 9 Jun 2015 05:39:55 +0000 (22:39 -0700)
Set initial IO pad DPD state from DT instead of setting
it from board files. IO PAD DPD configuration is supported from
DT.

bug 1648039

Change-Id: I89b553f9edcf42e24c4ac2e3b4896bafec52d593
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 92873ee4a3e1f24a9c9765c87d1243058ca22a46)
Reviewed-on: http://git-master/r/754577

arch/arm64/boot/dts/tegra210-common.dtsi
arch/arm64/boot/dts/tegra210-hawkeye-p2290-common.dtsi
arch/arm64/mach-tegra/board-t210ref.c

index dd4177207f091d51ec5c781e9ad9c893bf22982e..9328ec67051a0297c46ea2282e72fde07faf8e95 100644 (file)
                status = "okay";
        };
 
+       pmc@7000e400 {
+               io-pad-defaults {
+                       pex-bias {
+                               nvidia,deep-power-down-enable;
+                       };
+
+                       pex-clk1 {
+                               nvidia,deep-power-down-enable;
+                       };
+
+                       pex-clk2 {
+                               nvidia,deep-power-down-enable;
+                       };
+               };
+       };
+
        extcon {
                id_gpio_extcon: extcon@0 {
                        compatible = "extcon-gpio";
index 2afcda4dc98dbc8ac7573ae208f641dac91d7d56..cadabd5563482ca567b848634646234837160831 100644 (file)
        pmc@7000e400 {
                nvidia,invert-interrupt;
                io-pad-defaults {
+                       pex-bias {
+                               nvidia,deep-power-down-enable;
+                       };
+
+                       pex-clk1 {
+                               nvidia,deep-power-down-enable;
+                       };
+
+                       pex-clk2 {
+                               nvidia,deep-power-down-enable;
+                       };
                        audio-hv {
                                nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
                        };
index af9eed7b1373b103c1e0e0d0e128f5b0333c4c61..a212865c86941fa2a5d09822b26eb58f8e9da694 100644 (file)
@@ -227,22 +227,6 @@ static void __init tegra_t210ref_early_init(void)
                tegra_soc_device_init("odin");
 }
 
-static struct tegra_io_dpd pexbias_io = {
-       .name                   = "PEX_BIAS",
-       .io_dpd_reg_index       = 0,
-       .io_dpd_bit             = 4,
-};
-static struct tegra_io_dpd pexclk1_io = {
-       .name                   = "PEX_CLK1",
-       .io_dpd_reg_index       = 0,
-       .io_dpd_bit             = 5,
-};
-static struct tegra_io_dpd pexclk2_io = {
-       .name                   = "PEX_CLK2",
-       .io_dpd_reg_index       = 0,
-       .io_dpd_bit             = 6,
-};
-
 static struct tegra_suspend_platform_data t210ref_suspend_data = {
        .cpu_timer      = 1700,
        .cpu_off_timer  = 300,
@@ -279,10 +263,6 @@ static void __init tegra_t210ref_late_init(void)
        tegra_fb_copy_or_clear();
 
        /* put PEX pads into DPD mode to save additional power */
-       tegra_io_dpd_enable(&pexbias_io);
-       tegra_io_dpd_enable(&pexclk1_io);
-       tegra_io_dpd_enable(&pexclk2_io);
-
        t210ref_camera_init();
 }