u-boot/arch/arm/mach-imx/mx7
Matthias Schiffer 975f4117d5 ARM: mx7: psci: fix suspend/resume e10133 workaround
The e10133 workaround was broken in two places:

- The code intended to temporarily mask all interrupts in GPC_IMRx_CORE0.
  While the old register values were saved, the actual masking was
  missing.
- imx_udelay() expects the system counter to run at its base frequency,
  but the system counter is switched to a lower frequency earlier in
  psci_system_suspend(), leading to a much longer delay than intended.
  Replace the call with an equivalent loop (linux-imx 5.15 does the same)

This fixes the SoC hanging forever when there was already a wakeup IRQ
pending while suspending.

Fixes: 57b620255e ("imx: mx7: add system suspend/resume support")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
2022-11-07 22:45:04 +01:00
..
clock.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clock_slice.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr.c ARM: imx: ddr: Add deskew register programming 2020-08-17 17:55:49 +02:00
Kconfig Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
Makefile imx: mx7: add system suspend/resume support 2018-09-04 08:47:23 +02:00
psci-mx7.c ARM: mx7: psci: fix suspend/resume e10133 workaround 2022-11-07 22:45:04 +01:00
psci-suspend.S imx: mx7: add system suspend/resume support 2018-09-04 08:47:23 +02:00
snvs.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
soc.c video: Rename CONFIG_DM_VIDEO to CONFIG_VIDEO 2022-10-30 20:07:17 +01:00