quark_se_ss: power_mgmt: Fix a bug in call to sleep instruction
When sleep instruction is called with interrupts enabled, the interrupt priority threshold bits need to be set. Only interrupts with equal or higher priority will wake the sleep. Currently it is set to 0 unintentionally and only priority 0 interrupt can wake the sleep. Jira: ZEP-1349 Change-Id: I927e259345cc37c5ecc4dfdcde996dd16443e61b Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
This commit is contained in:
parent
4a09593714
commit
87a2b02189
1 changed files with 2 additions and 1 deletions
|
@ -20,12 +20,13 @@
|
|||
#include <power.h>
|
||||
#include <soc_power.h>
|
||||
#include <init.h>
|
||||
#include <kernel_structs.h>
|
||||
|
||||
#include "ss_power_states.h"
|
||||
|
||||
#define SLEEP_MODE_CORE_OFF (0x0)
|
||||
#define SLEEP_MODE_CORE_TIMERS_RTC_OFF (0x60)
|
||||
#define ENABLE_INTERRUPTS BIT(4)
|
||||
#define ENABLE_INTERRUPTS (BIT(4) | _ARC_V2_STATUS32_E(_ARC_V2_DEF_IRQ_LEVEL))
|
||||
|
||||
#define ARC_SS1 (SLEEP_MODE_CORE_OFF | ENABLE_INTERRUPTS)
|
||||
#define ARC_SS2 (SLEEP_MODE_CORE_TIMERS_RTC_OFF | ENABLE_INTERRUPTS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue