summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/include
diff options
context:
space:
mode:
authorBora Guvendik <bora.guvendik@intel.com>2017-04-10 15:49:02 -0700
committerMartin Roth <martinroth@google.com>2017-04-28 16:30:57 +0200
commit33117ec6012fa78765209593e9ab1f4a07812d83 (patch)
treeb07c88d0b054ab29243379b801fae96c67267142 /src/soc/intel/apollolake/include
parentfcab4156c8fea9b48a251325a48ba3872b5abb14 (diff)
soc/intel/apollolake: Use ITSS common code
This patch uses common ITSS library to setup itss irq. Change-Id: Id265505cfc106668aea25ad93e114fe20736b700 Signed-off-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://review.coreboot.org/19236 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/apollolake/include')
-rw-r--r--src/soc/intel/apollolake/include/soc/itss.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/soc/intel/apollolake/include/soc/itss.h b/src/soc/intel/apollolake/include/soc/itss.h
index 2f47ec6259..e61f2d224a 100644
--- a/src/soc/intel/apollolake/include/soc/itss.h
+++ b/src/soc/intel/apollolake/include/soc/itss.h
@@ -16,14 +16,11 @@
#ifndef _SOC_APOLLOLAKE_ITSS_H_
#define _SOC_APOLLOLAKE_ITSS_H_
-#define GPIO_IRQ_START 50
-#define GPIO_IRQ_END 119
+#define GPIO_IRQ_START 50
+#define GPIO_IRQ_END ITSS_MAX_IRQ
-/* Set the interrupt polarity for provided IRQ to the APIC. */
-void itss_set_irq_polarity(int irq, int active_low);
-
-/* Snapshot and restore IRQ polarity settings for the inclusive range. */
-void itss_snapshot_irq_polarities(int start, int end);
-void itss_restore_irq_polarities(int start, int end);
+#define ITSS_MAX_IRQ 119
+#define IRQS_PER_IPC 32
+#define NUM_IPC_REGS ((ITSS_MAX_IRQ + IRQS_PER_IPC - 1)/IRQS_PER_IPC)
#endif /* _SOC_APOLLOLAKE_ITSS_H_ */