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

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 12d6929e
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ static int create_pirq_routing_table(void)
return 0;
}
int irq_router_probe(struct udevice *dev)
int irq_router_common_init(struct udevice *dev)
{
int ret;
......@@ -249,6 +249,11 @@ int irq_router_probe(struct udevice *dev)
return 0;
}
int irq_router_probe(struct udevice *dev)
{
return irq_router_common_init(dev);
}
u32 write_pirq_routing_table(u32 addr)
{
if (!pirq_routing_table)
......
......@@ -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_ */
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