soc: fsl: handle RCPM errata A-008646 on SoC LS1021A
authorBiwen Li <biwen.li@nxp.com>
Mon, 2 Nov 2020 07:26:50 +0000 (15:26 +0800)
committerLi Yang <leoyang.li@nxp.com>
Tue, 24 Nov 2020 01:16:02 +0000 (19:16 -0600)
commite95f287deed2454b8cad5b27859271db30130b2b
tree1783fd39d2e482f08c0c7506aa543b8fa82c5935
parent3d1d8f2943e23bd329b63548cdcc915b3657c4d2
soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

Hardware issue:
- Reading register RCPM_IPPDEXPCR1 always return zero, this causes
  system firmware could not get correct information and wrongly do
  clock gating for all wakeup source IP during system suspend. Then
  those IPs will never get chance to wake system.

Workaround:
- Copy register RCPM_IPPDEXPCR1's setting to register SCFG_SPARECR8
  to allow system firmware's psci method read it and do things accordingly.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/rcpm.c