diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-19 21:32:27 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-01-24 12:07:18 +0800 |
commit | d3b884b294f1927d6599ddb243a7e6c7bb9aaef3 (patch) | |
tree | c942eb4f11d008a6e64ee026aac1dba9e8453db7 /arch/x86/cpu/irq.c | |
parent | 12d6929e1f70da7bdbd7ac1de3db33fdff50a716 (diff) |
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/irq.c')
-rw-r--r-- | arch/x86/cpu/irq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index 8f59b23628..e2feba7b61 100644 --- a/arch/x86/cpu/irq.c +++ b/arch/x86/cpu/irq.c @@ -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) |