From d3b884b294f1927d6599ddb243a7e6c7bb9aaef3 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 19 Jan 2016 21:32:27 -0700 Subject: dm: x86: Add a common PIRQ init function Most x86 interrupt drivers will want to use the standard PIRQ routing and table setup. Put this code in a common function so it can be used by those drivers that want it. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/include/asm/irq.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/x86/include/asm/irq.h') diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h index 74da66e..46e1c31 100644 --- a/arch/x86/include/asm/irq.h +++ b/arch/x86/include/asm/irq.h @@ -65,4 +65,11 @@ struct pirq_routing { */ void cpu_irq_init(void); +/** + * irq_router_common_init() - Perform common x86 interrupt init + * + * This creates the PIRQ routing table and routes the IRQs + */ +int irq_router_common_init(struct udevice *dev); + #endif /* _ARCH_IRQ_H_ */ -- cgit v1.1