Browse Source

Assign irq4/irq5 to bnx0/bnx1(04:00:0/04:00.1)

Change-Id: I95b6bf6b3a4930eb959ffc0aeee78b680cf11711
Target:3A84W
master
zhangbaoqi 9 years ago
parent
commit
eb64bc04fd
  1. 8
      Targets/Bonito3a84w/Bonito/tgt_machdep.c

8
Targets/Bonito3a84w/Bonito/tgt_machdep.c

@ -2540,8 +2540,8 @@ void sb700_interrupt_fixup(void)
fixup_interrupt_printf("SB700 interrupt PIC set begin, \n");
/* bus4: INTA -->IRQ5 PCIE_slot(right) */
*(pic_index) = 0x0;
*(pic_data) = 0x5;
if (*(pic_data) != 0x5)
*(pic_data) = 0x4;
if (*(pic_data) != 0x4)
fixup_interrupt_printf("set pic fail: read back %d,should be 0x5\n", *(pic_data));
else
fixup_interrupt_printf("set pic_5 pass\n");
@ -2772,7 +2772,7 @@ void sb700_interrupt_fixup(void)
dev = _pci_make_tag(4, 0x0, 0x00);
val = pci_read_config32(dev, 0x00);
if ( val != 0xffffffff)
pci_write_config8(dev, 0x3c, 0x05);
pci_write_config8(dev, 0x3c, 0x04);
val = pci_read_config8(dev, 0x0e); //judge whether multi-function card
@ -2780,7 +2780,7 @@ void sb700_interrupt_fixup(void)
dev = _pci_make_tag(4, 0x0, 0x01);
val = pci_read_config32(dev, 0x00);
if ( val != 0xffffffff)
pci_write_config8(dev, 0x3c, 0x06);
pci_write_config8(dev, 0x3c, 0x05);
dev = _pci_make_tag(4, 0x0, 0x02);
val = pci_read_config32(dev, 0x00);

Loading…
Cancel
Save