diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-06-23 04:18:45 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-15 00:03:17 (GMT) |
commit | 9c235436a3fbc8d6959c0acee276b7060e61f2e5 (patch) | |
tree | 447288c9672e3de4e499032e28af34c4d60305a1 /arch/x86 | |
parent | d402f922b291bb76e7e3b5c15dda7abf1ce33b85 (diff) | |
download | u-boot-9c235436a3fbc8d6959c0acee276b7060e61f2e5.tar.xz |
x86: Write correct bus number for the irq router
We should write correct bus number to the PIRQ routing table for the
irq router from device tree, instead of hard-coded zero.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c index 74b89ad..7d5ccc1 100644 --- a/arch/x86/cpu/irq.c +++ b/arch/x86/cpu/irq.c @@ -161,7 +161,7 @@ static int create_pirq_routing_table(void) /* Populate the PIRQ table fields */ rt->signature = PIRQ_SIGNATURE; rt->version = PIRQ_VERSION; - rt->rtr_bus = 0; + rt->rtr_bus = PCI_BUS(irq_router.bdf); rt->rtr_devfn = (PCI_DEV(irq_router.bdf) << 3) | PCI_FUNC(irq_router.bdf); rt->rtr_vendor = PCI_VENDOR_ID_INTEL; |