diff options
author | Richard Zhu <r65037@freescale.com> | 2013-11-07 03:34:15 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:47:16 -0400 |
commit | 756392b774babc1a77410296e8401d435728d999 (patch) | |
tree | 92229ed2677da456743365dccf48b66eb564148c /arch | |
parent | 80eb095e9399da5b22d4a6c881c8d592e85c2ed2 (diff) |
ENGR00288563 Revert "ENGR00277654 imx: pcie: enable pcie lm errata when pcie is enabled"
switch to community upstreamed pcie driver.
Revert "ENGR00277654 imx: pcie: enable pcie lm errata when pcie is enabled"
This reverts commit 72524b16f5cb4e13c1a194dda4cc0c4f206e4e46.
Signed-off-by: Richard Zhu <r65037@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/pm-imx6.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 8ef90eed1a57..aa73979819b1 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c | |||
@@ -226,7 +226,7 @@ static int imx6_suspend_finish(unsigned long val) | |||
226 | 226 | ||
227 | static int imx6_pm_enter(suspend_state_t state) | 227 | static int imx6_pm_enter(suspend_state_t state) |
228 | { | 228 | { |
229 | struct regmap *g; | 229 | struct regmap *gpr; |
230 | 230 | ||
231 | /* | 231 | /* |
232 | * L2 can exit by 'reset' or Inband beacon (from remote EP) | 232 | * L2 can exit by 'reset' or Inband beacon (from remote EP) |
@@ -234,15 +234,13 @@ static int imx6_pm_enter(suspend_state_t state) | |||
234 | * So, toggle bit18 of GPR1, to fix errata | 234 | * So, toggle bit18 of GPR1, to fix errata |
235 | * "PCIe PCIe does not support L2 Power Down" | 235 | * "PCIe PCIe does not support L2 Power Down" |
236 | */ | 236 | */ |
237 | if (IS_ENABLED(CONFIG_PCIE_IMX)) { | 237 | gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); |
238 | g = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); | 238 | if (IS_ERR(gpr)) { |
239 | if (IS_ERR(g)) { | 239 | pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n"); |
240 | pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n"); | 240 | return PTR_ERR(gpr); |
241 | return PTR_ERR(g); | ||
242 | } | ||
243 | regmap_update_bits(g, IOMUXC_GPR1, IMX6Q_GPR1_PCIE_TEST_PD, | ||
244 | IMX6Q_GPR1_PCIE_TEST_PD); | ||
245 | } | 241 | } |
242 | regmap_update_bits(gpr, IOMUXC_GPR1, IMX6Q_GPR1_PCIE_TEST_PD, | ||
243 | IMX6Q_GPR1_PCIE_TEST_PD); | ||
246 | 244 | ||
247 | switch (state) { | 245 | switch (state) { |
248 | case PM_SUSPEND_STANDBY: | 246 | case PM_SUSPEND_STANDBY: |
@@ -286,10 +284,8 @@ static int imx6_pm_enter(suspend_state_t state) | |||
286 | * So, toggle bit18 of GPR1, to fix errata | 284 | * So, toggle bit18 of GPR1, to fix errata |
287 | * "PCIe PCIe does not support L2 Power Down" | 285 | * "PCIe PCIe does not support L2 Power Down" |
288 | */ | 286 | */ |
289 | if (IS_ENABLED(CONFIG_PCIE_IMX)) { | 287 | regmap_update_bits(gpr, IOMUXC_GPR1, IMX6Q_GPR1_PCIE_TEST_PD, |
290 | regmap_update_bits(g, IOMUXC_GPR1, IMX6Q_GPR1_PCIE_TEST_PD, | 288 | !IMX6Q_GPR1_PCIE_TEST_PD); |
291 | !IMX6Q_GPR1_PCIE_TEST_PD); | ||
292 | } | ||
293 | 289 | ||
294 | return 0; | 290 | return 0; |
295 | } | 291 | } |