summaryrefslogtreecommitdiff
path: root/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-06 18:07:20 -0800
committerStefan Agner <stefan.agner@toradex.com>2017-03-06 18:25:28 -0800
commit18465a98c5c94c3100cba3f596ce384970f966d0 (patch)
tree63ed2928effe085aa567b1b1d11378cf9ae24b40 /examples/imx7_colibri_m4/low_power_demo/hardware_init.c
parent64164f0de9eb54c016e5caccc9f5ec3a90d30a01 (diff)
use OCRAM
But remove EPD OCRAM, since this is not clocked during suspend. Use TCM instead.
Diffstat (limited to 'examples/imx7_colibri_m4/low_power_demo/hardware_init.c')
-rw-r--r--examples/imx7_colibri_m4/low_power_demo/hardware_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imx7_colibri_m4/low_power_demo/hardware_init.c b/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
index ce23c34..a721220 100644
--- a/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
+++ b/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
@@ -42,6 +42,10 @@ void hardware_init(void)
/* Enable clock gate for wakeup mix*/
CCM_ControlGate(CCM, BOARD_SIM_WAKEUP_CCGR, ccmClockNeededAll);
+
+ /* Enable clock gate for OCRAM */
+ CCM_ControlGate(CCM, ccmCcgrGateOcram, ccmClockNeededAll);
+
/* In this demo, we need to share board GPIO without RDC SEMAPHORE */
RDC_SetPdapAccess(RDC, rdcPdapGpio1, 0xFF, false, false);
RDC_SetPdapAccess(RDC, rdcPdapGpio4, 0xFF, false, false);