diff options
author | Robin Gong <b38343@freescale.com> | 2015-08-25 13:16:13 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:01:33 -0600 |
commit | 882fbdd053f83788b8a656099ff37777beb0c5d0 (patch) | |
tree | 263a5360bcda36ff051b18af447eb5259ac97be2 | |
parent | 93e6cc2c0d5d74e8069e22faeeb1ef7f780e8453 (diff) |
MLK-11407-1 ARM: imx: gpc: enable PU bypass
enable PU bypass support on i.mx6 family.
Signed-off-by: Robin Gong <b38343@freescale.com>
-rw-r--r-- | arch/arm/mach-imx/gpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 99164e253a31..1d4f87258756 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -618,6 +618,7 @@ static int imx_gpc_probe(struct platform_device *pdev) { struct regulator *pu_reg; int ret; + u32 bypass = 0; /* bail out if DT too old and doesn't provide the necessary info */ if (!of_property_read_bool(pdev->dev.of_node, "#power-domain-cells")) @@ -632,6 +633,11 @@ static int imx_gpc_probe(struct platform_device *pdev) return ret; } + of_property_read_u32(pdev->dev.of_node, "fsl,ldo-bypass", &bypass); + /* We only bypass pu since arm and soc has been set in u-boot */ + if (bypass) + regulator_allow_bypass(pu_reg, true); + return imx_gpc_genpd_init(&pdev->dev, pu_reg); } |