Browse Source

fix 3a8780e bus0 dev 3 irq and fix multifunction pcie dev irq.

Change-Id: I28ba358a23545b5cef58dcbe6fc7142b81830612
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 7 years ago
committed by Chong Qiao
parent
commit
c70a530c09
  1. 4
      Targets/Bonito3a8780e/Bonito/tgt_machdep.c

4
Targets/Bonito3a8780e/Bonito/tgt_machdep.c

@ -1681,7 +1681,7 @@ static char irqbus0[] =
{
[1] = 2,
[2] = 2,
[3] = 3,
[3] = 1,
[4] = 0,
[5] = 1,
[6] = 2,
@ -1747,7 +1747,7 @@ static void pci_fix_device_interrpt(struct pci_device *pd, int bus0tag)
if(bus0dev == 20)
irq = (bus0dev20[dev]+pin-1);
else
irq = (irqbus0[bus0dev]+pin-1);
irq = (irqbus0[bus0dev]/*+pin-1*/);
if(!irqroute[irq])
{
printf("nomap for busdev %d pin %d irqpin %d\n", bus0dev ,pin ,irq);

Loading…
Cancel
Save