Skip to content
Snippets Groups Projects
Commit 59243413 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Allow interrupt to happen once


At present the interrupt table is included in all phases of U-Boot. Allow
it to be omitted, e.g. in TPL, to reduce size.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 26047f60
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ obj-$(CONFIG_INTEL_QUARK) += quark/ ...@@ -53,7 +53,7 @@ obj-$(CONFIG_INTEL_QUARK) += quark/
obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
obj-$(CONFIG_INTEL_TANGIER) += tangier/ obj-$(CONFIG_INTEL_TANGIER) += tangier/
obj-$(CONFIG_APIC) += lapic.o ioapic.o obj-$(CONFIG_APIC) += lapic.o ioapic.o
obj-y += irq.o obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o
ifndef CONFIG_$(SPL_)X86_64 ifndef CONFIG_$(SPL_)X86_64
obj-$(CONFIG_SMP) += mp_init.o obj-$(CONFIG_SMP) += mp_init.o
endif endif
......
...@@ -350,14 +350,6 @@ int irq_router_probe(struct udevice *dev) ...@@ -350,14 +350,6 @@ int irq_router_probe(struct udevice *dev)
return 0; return 0;
} }
ulong write_pirq_routing_table(ulong addr)
{
if (!gd->arch.pirq_routing_table)
return addr;
return copy_pirq_routing_table(addr, gd->arch.pirq_routing_table);
}
static const struct udevice_id irq_router_ids[] = { static const struct udevice_id irq_router_ids[] = {
{ .compatible = "intel,irq-router" }, { .compatible = "intel,irq-router" },
{ } { }
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include <asm/pci.h> #include <asm/pci.h>
#include <asm/pirq_routing.h> #include <asm/pirq_routing.h>
DECLARE_GLOBAL_DATA_PTR;
static u8 pirq_get_next_free_irq(struct udevice *dev, u8 *pirq, u16 bitmap, static u8 pirq_get_next_free_irq(struct udevice *dev, u8 *pirq, u16 bitmap,
bool irq_already_routed[]) bool irq_already_routed[])
{ {
...@@ -131,3 +133,11 @@ u32 copy_pirq_routing_table(u32 addr, struct irq_routing_table *rt) ...@@ -131,3 +133,11 @@ u32 copy_pirq_routing_table(u32 addr, struct irq_routing_table *rt)
return addr + rt->size; return addr + rt->size;
} }
ulong write_pirq_routing_table(ulong addr)
{
if (!gd->arch.pirq_routing_table)
return addr;
return copy_pirq_routing_table(addr, gd->arch.pirq_routing_table);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment