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-03 20:01:50 -0800
committerStefan Agner <stefan.agner@toradex.com>2017-03-03 20:01:50 -0800
commitba2d7f9f1cbc230b354fddab1dc444d82ec44cee (patch)
tree30b950d9123bf3ebd086ca60d9c35bee854739f1 /examples/imx7_colibri_m4/low_power_demo/hardware_init.c
parentc8ea6f4a7541f848b4ca6720c9f5a8d3d1fc8958 (diff)
LPM mode working
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.c5
1 files changed, 4 insertions, 1 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 aa077b5..a15b4e2 100644
--- a/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
+++ b/examples/imx7_colibri_m4/low_power_demo/hardware_init.c
@@ -44,7 +44,7 @@ void hardware_init(void)
/*
* In order to wakeup M4 from LPM, some PLLCTRLs need to be set to "NeededRun"
- */
+ *//*
CCM_BASE_PTR->PLL_CTRL[0].PLL_CTRL = ccmClockNeededRun;
CCM_BASE_PTR->PLL_CTRL[6].PLL_CTRL = ccmClockNeededRun;
CCM_BASE_PTR->PLL_CTRL[7].PLL_CTRL = ccmClockNeededRun;
@@ -56,6 +56,7 @@ void hardware_init(void)
CCM_BASE_PTR->PLL_CTRL[13].PLL_CTRL = ccmClockNeededRun;
CCM_BASE_PTR->PLL_CTRL[14].PLL_CTRL = ccmClockNeededRun;
CCM_BASE_PTR->PLL_CTRL[15].PLL_CTRL = ccmClockNeededRun;
+*/
/* Enable clock gate for wakeup mix*/
CCM_ControlGate(CCM, BOARD_SIM_WAKEUP_CCGR, ccmClockNeededAll);
@@ -78,6 +79,8 @@ void hardware_init(void)
/* Configure ecspi pin IOMUX */
configure_ecspi_pins(BOARD_ECSPI_BASEADDR);
+ /* RDC MU*/
+ RDC_SetPdapAccess(RDC, BOARD_MU_RDC_PDAP, 3 << (BOARD_DOMAIN_ID * 2), false, false);
/* Enable MU clock*/
CCM_ControlGate(CCM, BOARD_MU_CCM_CCGR, ccmClockNeededAll);
}