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
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";
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>;
};
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,
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();
}