MLK-18318: mx7ulp: Enable QSPI interrupt as a wakeup source on MX7ULP
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 14 May 2018 16:46:58 +0000 (13:46 -0300)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:04 +0000 (00:56 -0700)
commit304c45c134ea03ffe65bb134d043c99becb76949
tree0f9346d68f37ab7c586dd40e1c117effcc81c92a
parent184cdd8bf9aacdfc0b7b95b219206202112b535e
MLK-18318: mx7ulp: Enable QSPI interrupt as a wakeup source on MX7ULP

MX7ULP needs to have the QSPI interrupt configured as a wakeup source
in the SIM_WKPU_WAKEUP_ENABLE register, otherwise the QSPI interrupts
do not wakeup the CPU from idle mode leading to poor performance in
Linux.

The SIM_WKPU_WAKEUP_ENABLE register only exists in B0 silicon, so
make sure to only write to this register in the B0 version (or greater).

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
(cherry picked from commit 1ab33446d6843f560fb6d14c781f6417225f8f3d)
(cherry picked from commit 8116f34387f8164dd72656fb8278e6df9fdf4c05)
(cherry picked from commit 3d64768b1b1064aed71974842a781b69ee34f8c9)
(cherry picked from commit 25b73de874e3b66e79a9f6bcb01714aeab7568a6)
(cherry picked from commit a704c61c8ffa0f8a2ad26c1cc3cdc549dcdb7487)
arch/arm/include/asm/arch-mx7ulp/imx-regs.h
board/freescale/mx7ulp_evk/mx7ulp_evk.c