diff options
Diffstat (limited to 'src/soc/intel/cannonlake/lpc.c')
-rw-r--r-- | src/soc/intel/cannonlake/lpc.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/soc/intel/cannonlake/lpc.c b/src/soc/intel/cannonlake/lpc.c index 84a2138efd..c058065043 100644 --- a/src/soc/intel/cannonlake/lpc.c +++ b/src/soc/intel/cannonlake/lpc.c @@ -30,6 +30,7 @@ #include <intelblocks/pcr.h> #include <reg_script.h> #include <soc/iomap.h> +#include <soc/irq.h> #include <soc/lpc.h> #include <soc/pci_devs.h> #include <soc/pcr_ids.h> @@ -145,17 +146,16 @@ static void pch_enable_ioapic(const struct device *dev) void soc_pch_pirq_init(const struct device *dev) { - const config_t *config = dev->chip_info; uint8_t pch_interrupt_routing[MAX_PXRC_CONFIG]; - pch_interrupt_routing[0] = config->pirqa_routing; - pch_interrupt_routing[1] = config->pirqb_routing; - pch_interrupt_routing[2] = config->pirqc_routing; - pch_interrupt_routing[3] = config->pirqd_routing; - pch_interrupt_routing[4] = config->pirqe_routing; - pch_interrupt_routing[5] = config->pirqf_routing; - pch_interrupt_routing[6] = config->pirqg_routing; - pch_interrupt_routing[7] = config->pirqh_routing; + pch_interrupt_routing[0] = PCH_IRQ11; + pch_interrupt_routing[1] = PCH_IRQ10; + pch_interrupt_routing[2] = PCH_IRQ11; + pch_interrupt_routing[3] = PCH_IRQ11; + pch_interrupt_routing[4] = PCH_IRQ11; + pch_interrupt_routing[5] = PCH_IRQ11; + pch_interrupt_routing[6] = PCH_IRQ11; + pch_interrupt_routing[7] = PCH_IRQ11; itss_irq_init(pch_interrupt_routing); #if defined(__SIMPLE_DEVICE__) @@ -173,16 +173,16 @@ void soc_pch_pirq_init(const struct device *dev) switch (int_pin) { case 1: /* INTA# */ - int_line = config->pirqa_routing; + int_line = PCH_IRQ11; break; case 2: /* INTB# */ - int_line = config->pirqb_routing; + int_line = PCH_IRQ10; break; case 3: /* INTC# */ - int_line = config->pirqc_routing; + int_line = PCH_IRQ11; break; case 4: /* INTD# */ - int_line = config->pirqd_routing; + int_line = PCH_IRQ11; break; } |