summaryrefslogtreecommitdiff
path: root/examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-07-18 13:12:11 -0700
committerStefan Agner <stefan@agner.ch>2016-08-09 14:53:37 -0700
commitcd6c66301a83dde9ad4eaf675459a0348f4732cf (patch)
treeb979a88a80abded65470b80d88c351b5bc11ff9c /examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c
parent21d6d84123de8e6e2ebdf5543b530403951b3059 (diff)
resync with FreeRTOS_iMX7D_1.0.1 GAColibri_iMX7_M4_FreeRTOS_V1.0.1_20160810
Diffstat (limited to 'examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c')
-rw-r--r--examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c b/examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c
index d36d4f8..87a693d 100644
--- a/examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c
+++ b/examples/imx7d_sdb_m4/demo_apps/low_power_imx7d/rand_wfi/hardware_init.c
@@ -56,6 +56,10 @@ void hardware_init(void)
CCM_BASE_PTR->PLL_CTRL[i].PLL_CTRL = ccmClockNeededRun;
}
+
+ /* Enable clock gate for wakeup mix*/
+ CCM_ControlGate(CCM, BOARD_SIM_WAKEUP_CCGR, ccmClockNeededAll);
+
/* initialize debug uart */
dbg_uart_init();