diff options
author | Leifu Zhao <leifu.zhao@intel.com> | 2020-04-24 18:59:12 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-15 19:20:48 +0000 |
commit | 45a7c5cf8ff59a917bd7dda6ccd3f14dbab2c4dd (patch) | |
tree | e6a355c05fc0ae6f6bf5a21ffcbb2ddd9d500d33 /core/minute-ia/interrupts.c | |
parent | c828740d6050fc40cf1b881374679ebf0e4b5666 (diff) | |
download | chrome-ec-45a7c5cf8ff59a917bd7dda6ccd3f14dbab2c4dd.tar.gz |
ish: enable IPAPG for ish 5.4 on tgl rvp platform
Enable ip accessible power gating for ish 5.4 on tgl rvp platform.
BUG=b:154891699
BRANCH=none
TEST=ISH can successfully enter into IPAPG on tgl rvp.
Change-Id: Iee30124a0928389f4c75dffff065fab7a5a2d970
Signed-off-by: Leifu Zhao <leifu.zhao@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2164091
Reviewed-by: Leifu Zhao <leifu.zhao@intel.corp-partner.google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Leifu Zhao <leifu.zhao@intel.corp-partner.google.com>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Auto-Submit: Leifu Zhao <leifu.zhao@intel.corp-partner.google.com>
Diffstat (limited to 'core/minute-ia/interrupts.c')
-rw-r--r-- | core/minute-ia/interrupts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/minute-ia/interrupts.c b/core/minute-ia/interrupts.c index 3dbb4f85fe..cb79eb119b 100644 --- a/core/minute-ia/interrupts.c +++ b/core/minute-ia/interrupts.c @@ -438,6 +438,13 @@ void call_irq_service_routine(uint32_t irq) CPRINTS("IRQ %d routine not found!", irq); } +void lapic_restore(void) +{ + LAPIC_ESR_REG = 0; + APIC_SPURIOUS_INT = LAPIC_SPURIOUS_INT_VECTOR | APIC_ENABLE_BIT; + APIC_LVT_ERROR = LAPIC_LVT_ERROR_VECTOR; +} + void init_interrupts(void) { unsigned entry; |