diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-11-14 14:09:25 -0800 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-11-14 14:09:25 -0800 |
commit | 4a5389d6a62ecfd44c65bbdf7c8f7cd07b3cf1cf (patch) | |
tree | 9d73ec6490939f7bd1c9a294c4f6f50d148b9af3 /examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c | |
parent | 1dd1ebb712a8e0af2d140edf88363ecb73050d25 (diff) |
examples/imx7_colibri_m4: synchronize with SDB
Synchronize examples with latest versions from the imx7d_sdb_m4 board.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c')
-rw-r--r-- | examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c b/examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c index c9a5084..dd3e27b 100644 --- a/examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c +++ b/examples/imx7_colibri_m4/demo_apps/low_power_imx7d/common/lpm_mcore.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Freescale Semiconductor, Inc. + * Copyright (c) 2015-2016, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -412,11 +412,15 @@ const char* LPM_MCORE_GetPowerStatusString(void) } /* - * Check if A7 LPM Driver is ready + * Check if A7 LPM Driver is ready, an "Once Ready, Always Ready" logic is used */ uint32_t LPM_MCORE_CheckPeerReady(void) { - return (MU_GetFlags(MUB) & MU_SR_Fn(1)); + static uint32_t a7_ready = 0; + if (!a7_ready) { + a7_ready = MU_GetFlags(MUB) & MU_SR_Fn(1); + } + return a7_ready; } /* |