diff options
Diffstat (limited to 'arch/arm/mach-imx/pm-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/pm-imx6q.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/pm-imx6q.c b/arch/arm/mach-imx/pm-imx6q.c index aecd9f8037e0..9d47adc078aa 100644 --- a/arch/arm/mach-imx/pm-imx6q.c +++ b/arch/arm/mach-imx/pm-imx6q.c | |||
@@ -156,10 +156,16 @@ int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode) | |||
156 | } | 156 | } |
157 | 157 | ||
158 | /* | 158 | /* |
159 | * Unmask the always pending IOMUXC interrupt #32 as wakeup source to | 159 | * ERR007265: CCM: When improper low-power sequence is used, |
160 | * deassert dsm_request signal, so that we can ensure dsm_request | 160 | * the SoC enters low power mode before the ARM core executes WFI. |
161 | * is not asserted when we're going to write CLPCR register to set LPM. | 161 | * |
162 | * After setting up LPM bits, we need to mask this wakeup source. | 162 | * Software workaround: |
163 | * 1) Software should trigger IRQ #32 (IOMUX) to be always pending | ||
164 | * by setting IOMUX_GPR1_GINT. | ||
165 | * 2) Software should then unmask IRQ #32 in GPC before setting CCM | ||
166 | * Low-Power mode. | ||
167 | * 3) Software should mask IRQ #32 right after CCM Low-Power mode | ||
168 | * is set (set bits 0-1 of CCM_CLPCR). | ||
163 | */ | 169 | */ |
164 | iomuxc_irq_desc = irq_to_desc(32); | 170 | iomuxc_irq_desc = irq_to_desc(32); |
165 | imx_gpc_irq_unmask(&iomuxc_irq_desc->irq_data); | 171 | imx_gpc_irq_unmask(&iomuxc_irq_desc->irq_data); |
@@ -219,6 +225,8 @@ void __init imx6q_pm_init(void) | |||
219 | WARN_ON(!ccm_base); | 225 | WARN_ON(!ccm_base); |
220 | 226 | ||
221 | /* | 227 | /* |
228 | * This is for SW workaround step #1 of ERR007265, see comments | ||
229 | * in imx6q_set_lpm for details of this errata. | ||
222 | * Force IOMUXC irq pending, so that the interrupt to GPC can be | 230 | * Force IOMUXC irq pending, so that the interrupt to GPC can be |
223 | * used to deassert dsm_request signal when the signal gets | 231 | * used to deassert dsm_request signal when the signal gets |
224 | * asserted unexpectedly. | 232 | * asserted unexpectedly. |