imx: mx7: add gpc initialization for low power mode
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 8 Aug 2018 01:17:49 +0000 (09:17 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Sep 2018 06:47:23 +0000 (08:47 +0200)
commitb059837850e466d033b09d279743166e352519d1
tree1ecaa98e59be749a53df1a789115817f59ab9ffd
parent11e52bca84e65a35d10830c306dab37dc5621a3d
imx: mx7: add gpc initialization for low power mode

Add i.MX7D GPC initialization for low power mode
support like system suspend/resume from linux kernel:

 - Pending IOMUXC IRQ to workaround GPC state machine issue;
 - Mask all GPC interrupts for M4/C0/C1;
 - Configure SCU timing;
 - Configure time slot ack;
 - Configure C0/C1 power up/down timing;
 - Configure wakeup source mechanism;
 - Disable DSM/RBC related settings.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm/mach-imx/mx7/soc.c