From 33117ec6012fa78765209593e9ab1f4a07812d83 Mon Sep 17 00:00:00 2001 From: Bora Guvendik Date: Mon, 10 Apr 2017 15:49:02 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/19236 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/include/soc/itss.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/soc/intel/apollolake/include') 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_ */ -- cgit v1.2.3