diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-06 09:54:58 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-02-07 22:45:35 +0800 |
commit | 69c2dc937a53f4f35688c1289720625e002f3791 (patch) | |
tree | 30fc725691a932988bcfe1258ea49e86e56a84e6 /arch/x86/cpu/irq.c | |
parent | ba876079714db52887cab9f068ea1136de4cc107 (diff) | |
download | u-boot-69c2dc937a53f4f35688c1289720625e002f3791.zip u-boot-69c2dc937a53f4f35688c1289720625e002f3791.tar.gz u-boot-69c2dc937a53f4f35688c1289720625e002f3791.tar.bz2 |
x86: Give each driver an IRQ type
Add an IRQ type to each driver and use irq_first_device_type() to find
and probe the correct one.
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index ed9938f..bafa031 100644 --- a/arch/x86/cpu/irq.c +++ b/arch/x86/cpu/irq.c @@ -7,6 +7,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <irq.h> #include <malloc.h> #include <asm/io.h> #include <asm/irq.h> @@ -351,7 +352,7 @@ int irq_router_probe(struct udevice *dev) } static const struct udevice_id irq_router_ids[] = { - { .compatible = "intel,irq-router" }, + { .compatible = "intel,irq-router", .data = X86_IRQT_BASE }, { } }; |