From eb64bc04fdfd6d1caba4f0245c9c88182d9dadbd Mon Sep 17 00:00:00 2001 From: zhangbaoqi Date: Tue, 19 Apr 2016 17:14:30 +0800 Subject: [PATCH] Assign irq4/irq5 to bnx0/bnx1(04:00:0/04:00.1) Change-Id: I95b6bf6b3a4930eb959ffc0aeee78b680cf11711 Target:3A84W --- Targets/Bonito3a84w/Bonito/tgt_machdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Targets/Bonito3a84w/Bonito/tgt_machdep.c b/Targets/Bonito3a84w/Bonito/tgt_machdep.c index 32c9ee12..9032842f 100644 --- a/Targets/Bonito3a84w/Bonito/tgt_machdep.c +++ b/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);