PMUFW: Core: Clear DONT_SLEEP bit during initialization

DONT_SLEEP bit in PMU GLobal control register, if set,  wakes up the
microblaze from sleep state. This makes the "sleep" instruction
ineffective by making the MB to toggle between sleep and wake states
in the core loop. So this bit is cleared to prevent such a situation
and ensure that MB wakes up only in case of an interrupt event.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
This commit is contained in:
Jyotheeswar Reddy 2015-08-06 11:02:30 -07:00 committed by Nava kishore Manne
parent 4ae20ca9bf
commit b3ce29e2a1
2 changed files with 4 additions and 1 deletions

View file

@ -51,6 +51,9 @@ XStatus XPfw_CoreInit(u32 Options)
XPfw_InterruptInit();
/* Clear the DONT_SLEEP bit */
XPfw_RMW32(PMU_GLOBAL_GLOBAL_CNTRL,
PMU_GLOBAL_GLOBAL_CNTRL_DONT_SLEEP_MASK, 0U);
CorePtr->ModCount = (u8)0U;

View file

@ -1,4 +1,4 @@
#ifndef ZYNQMP_XPFW_VERSION__H_
#define ZYNQMP_XPFW_VERSION__H_
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-17-g29451ae9733a"
#define ZYNQMP_XPFW_VERSION "2015.3-rc1-19-g232f40177e69"
#endif