soc: imx: gpc: fix PDN delay
authorSven Schmitt <Sven.Schmitt@mixed-mode.de>
Tue, 24 Jul 2018 09:46:03 +0000 (09:46 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 3 Sep 2018 04:25:06 +0000 (12:25 +0800)
imx6_pm_domain_power_off() reads iso and iso2sw from GPC_PGC_PUPSCR_OFFS
which stores the power up delays.
So use GPC_PGC_PDNSCR_OFFS for the correct delays.

Signed-off-by: Sven Schmitt <sven.schmitt@mixed-mode.de>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpc.c

index b3da635970ea70f56d98a4db94d234178cfa9a82..d160fc2a7b7a20a39d9710c2f5ac49a2737b1dda 100644 (file)
@@ -69,7 +69,7 @@ static int imx6_pm_domain_power_off(struct generic_pm_domain *genpd)
        u32 val;
 
        /* Read ISO and ISO2SW power down delays */
-       regmap_read(pd->regmap, pd->reg_offs + GPC_PGC_PUPSCR_OFFS, &val);
+       regmap_read(pd->regmap, pd->reg_offs + GPC_PGC_PDNSCR_OFFS, &val);
        iso = val & 0x3f;
        iso2sw = (val >> 8) & 0x3f;