aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2017-03-23 00:53:23 -0400
committerShawn Guo <shawnguo@kernel.org>2017-03-24 01:43:10 -0400
commitfbb0b4402a7132cd11cc3e63b12f543654bd1785 (patch)
treeb33b3d9fe17017dad8e997efc2d3e872e1519587
parent6e6e339cc185fdd27d476764637b5b3b6738cf04 (diff)
soc: imx: gpc: keep PGC_X_CTRL name align with reference manual
Instead of GPC_PGC_PDN_OFFS, naming it as GPC_PGC_CTRL_OFFS which is defined in reference manual for better reading. Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--drivers/soc/imx/gpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
index afb02f9cc231..3c612487e0fd 100644
--- a/drivers/soc/imx/gpc.c
+++ b/drivers/soc/imx/gpc.c
@@ -21,7 +21,7 @@
21 21
22#define GPC_CNTR 0x000 22#define GPC_CNTR 0x000
23 23
24#define GPC_PGC_PDN_OFFS 0x0 24#define GPC_PGC_CTRL_OFFS 0x0
25#define GPC_PGC_PUPSCR_OFFS 0x4 25#define GPC_PGC_PUPSCR_OFFS 0x4
26#define GPC_PGC_PDNSCR_OFFS 0x8 26#define GPC_PGC_PDNSCR_OFFS 0x8
27#define GPC_PGC_SW2ISO_SHIFT 0x8 27#define GPC_PGC_SW2ISO_SHIFT 0x8
@@ -65,7 +65,7 @@ static int imx6_pm_domain_power_off(struct generic_pm_domain *genpd)
65 iso2sw = (val >> 8) & 0x3f; 65 iso2sw = (val >> 8) & 0x3f;
66 66
67 /* Gate off domain when powered down */ 67 /* Gate off domain when powered down */
68 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_PDN_OFFS, 68 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_CTRL_OFFS,
69 0x1, 0x1); 69 0x1, 0x1);
70 70
71 /* Request GPC to power down domain */ 71 /* Request GPC to power down domain */
@@ -101,7 +101,7 @@ static int imx6_pm_domain_power_on(struct generic_pm_domain *genpd)
101 clk_prepare_enable(pd->clk[i]); 101 clk_prepare_enable(pd->clk[i]);
102 102
103 /* Gate off domain when powered down */ 103 /* Gate off domain when powered down */
104 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_PDN_OFFS, 104 regmap_update_bits(pd->regmap, pd->reg_offs + GPC_PGC_CTRL_OFFS,
105 0x1, 0x1); 105 0x1, 0x1);
106 106
107 /* Read ISO and ISO2SW power up delays */ 107 /* Read ISO and ISO2SW power up delays */