sb,soc/intel: Use register_new_ioapic_gsi0()

Change-Id: I6b0e4021595fb160ae3bf798468f4505b460266f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55314
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2021-06-08 11:31:19 +03:00
parent c0457358f6
commit d165357ec3
10 changed files with 10 additions and 11 deletions

View file

@ -33,7 +33,7 @@ static void pch_enable_ioapic(struct device *dev)
/* PCH-LP has 40 redirection entries */
ioapic_set_max_vectors(VIO_APIC_VADDR, 40);
setup_ioapic(VIO_APIC_VADDR, 0x02);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void enable_hpet(struct device *dev)

View file

@ -387,7 +387,7 @@ void pch_enable_ioapic(void)
/* affirm full set of redirection table entries ("write once") */
ioapic_set_max_vectors(VIO_APIC_VADDR, PCH_REDIR_ETR);
setup_ioapic((void *)IO_APIC_ADDR, 0x02);
register_new_ioapic_gsi0((void *)IO_APIC_ADDR);
}
static const uint8_t pch_interrupt_routing[PIRQ_COUNT] = {

View file

@ -34,7 +34,7 @@ static void pch_enable_ioapic(struct device *dev)
/* affirm full set of redirection table entries ("write once") */
ioapic_set_max_vectors(VIO_APIC_VADDR, PCH_REDIR_ETR);
setup_ioapic((void *)IO_APIC_ADDR, IO_APIC0);
register_new_ioapic_gsi0((void *)IO_APIC_ADDR);
}
/* interrupt router lookup for internal devices */

View file

@ -44,7 +44,7 @@ static void pch_enable_ioapic(struct device *dev)
/* affirm full set of redirection table entries ("write once") */
ioapic_lock_max_vectors(VIO_APIC_VADDR);
setup_ioapic(VIO_APIC_VADDR, 0x02);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void pch_enable_serial_irqs(struct device *dev)

View file

@ -50,7 +50,7 @@ static void i82801dx_enable_ioapic(struct device *dev)
pci_write_config32(dev, GEN_CNTL, reg32);
printk(BIOS_DEBUG, "IOAPIC Southbridge enabled %x\n", reg32);
setup_ioapic(VIO_APIC_VADDR, 0x02);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
ioapic_set_boot_config(VIO_APIC_VADDR, true);
}

View file

@ -33,7 +33,7 @@
*/
static void i82801gx_enable_ioapic(struct device *dev)
{
setup_ioapic(VIO_APIC_VADDR, 0x02);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void i82801gx_enable_serial_irqs(struct device *dev)

View file

@ -35,7 +35,7 @@ static void i82801ix_enable_apic(struct device *dev)
/* Lock maximum redirection entries (MRE), R/WO register. */
ioapic_lock_max_vectors(VIO_APIC_VADDR);
setup_ioapic(VIO_APIC_VADDR, 2); /* ICH7 code uses id 2. */
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void i82801ix_enable_serial_irqs(struct device *dev)

View file

@ -36,7 +36,7 @@ static void i82801jx_enable_apic(struct device *dev)
/* Lock maximum redirection entries (MRE), R/WO register. */
ioapic_lock_max_vectors(VIO_APIC_VADDR);
setup_ioapic(VIO_APIC_VADDR, 2); /* ICH7 code uses id 2. */
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void i82801jx_enable_serial_irqs(struct device *dev)

View file

@ -35,7 +35,7 @@ static void pch_enable_ioapic(struct device *dev)
/* affirm full set of redirection table entries ("write once") */
ioapic_lock_max_vectors(VIO_APIC_VADDR);
setup_ioapic(VIO_APIC_VADDR, 0x01);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void pch_enable_serial_irqs(struct device *dev)

View file

@ -42,8 +42,7 @@ static void pch_enable_ioapic(struct device *dev)
else
ioapic_lock_max_vectors(VIO_APIC_VADDR);
setup_ioapic(VIO_APIC_VADDR, 0x02);
register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static void pch_enable_serial_irqs(struct device *dev)