Commit 300f65b3 authored by Teo Hall's avatar Teo Hall

MLK-18199: Power up HSIO GPIO before first access

For correct PCIE operation the HSIO GPIO must also be powered.
Explicitly power it up to allow SCFW to keep track of used
resources.
Signed-off-by: 's avatarTeo Hall <teo.hall@nxp.com>
parent d5aa444f
......@@ -669,6 +669,11 @@
power-domains =<&pd_serdes1>;
};
};
pd_gpio: PD_HSIO_GPIO {
reg = <SC_R_HSIO_GPIO>;
#power-domain-cells = <0>;
power-domains =<&pd_hsio>;
};
};
pd_cm40: PD_CM40 {
......
......@@ -489,6 +489,12 @@ static void imx8qm_hsio_initialize(void)
printf("hsio_pcie1 Power up failed! (error = %d)\n", ret);
}
if (!power_domain_lookup_name("hsio_gpio", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("hsio_gpio Power up failed! (error = %d)\n", ret);
}
imx8_iomux_setup_multiple_pads(board_pcie_pins, ARRAY_SIZE(board_pcie_pins));
}
......
......@@ -269,6 +269,12 @@ static void imx8qm_hsio_initialize(void)
printf("hsio_pcie1 Power up failed! (error = %d)\n", ret);
}
if (!power_domain_lookup_name("hsio_gpio", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("hsio_gpio Power up failed! (error = %d)\n", ret);
}
imx8_iomux_setup_multiple_pads(board_pcie_pins, ARRAY_SIZE(board_pcie_pins));
}
......
......@@ -493,6 +493,11 @@ static void imx8qxp_hsio_initialize(void)
if (ret)
printf("hsio_pcie1 Power up failed! (error = %d)\n", ret);
}
if (!power_domain_lookup_name("hsio_gpio", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("hsio_gpio Power up failed! (error = %d)\n", ret);
}
imx8_iomux_setup_multiple_pads(board_pcie_pins, ARRAY_SIZE(board_pcie_pins));
}
......
......@@ -402,6 +402,12 @@ static void imx8qxp_hsio_initialize(void)
printf("hsio_pcie1 Power up failed! (error = %d)\n", ret);
}
if (!power_domain_lookup_name("hsio_gpio", &pd)) {
ret = power_domain_on(&pd);
if (ret)
printf("hsio_gpio Power up failed! (error = %d)\n", ret);
}
imx8_iomux_setup_multiple_pads(board_pcie_pins, ARRAY_SIZE(board_pcie_pins));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment