Angel Pons | c3f58f6 | 2020-04-05 15:46:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ted Kuo | 6ecaf65 | 2014-09-16 15:31:21 +0800 | [diff] [blame] | 2 | |
| 3 | /* Intel SOC PCIe support */ |
| 4 | |
| 5 | Device (RP01) |
| 6 | { |
| 7 | Name (_ADR, 0x001c0000) |
| 8 | |
| 9 | Method (_PRT) |
| 10 | { |
| 11 | If (PICM) { |
| 12 | Return (Package() { |
| 13 | #undef PIC_MODE |
| 14 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 15 | PCI_DEV_PIRQ_ROUTE(0x0, A, B, C, D) |
| 16 | }) |
| 17 | } Else { |
| 18 | Return (Package() { |
| 19 | #define PIC_MODE |
| 20 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 21 | PCI_DEV_PIRQ_ROUTE(0x0, A, B, C, D) |
| 22 | }) |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | Device (RP02) |
| 28 | { |
| 29 | Name (_ADR, 0x001c0001) |
| 30 | |
| 31 | Method (_PRT) |
| 32 | { |
| 33 | If (PICM) { |
| 34 | Return (Package() { |
| 35 | #undef PIC_MODE |
| 36 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 37 | PCI_DEV_PIRQ_ROUTE(0x0, B, C, D, A) |
| 38 | }) |
| 39 | } Else { |
| 40 | Return (Package() { |
| 41 | #define PIC_MODE |
| 42 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 43 | PCI_DEV_PIRQ_ROUTE(0x0, B, C, D, A) |
| 44 | }) |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | Device (RP03) |
| 50 | { |
| 51 | Name (_ADR, 0x001c0002) |
| 52 | |
| 53 | Method (_PRT) |
| 54 | { |
| 55 | If (PICM) { |
| 56 | Return (Package() { |
| 57 | #undef PIC_MODE |
| 58 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 59 | PCI_DEV_PIRQ_ROUTE(0x0, C, D, A, B) |
| 60 | }) |
| 61 | } Else { |
| 62 | Return (Package() { |
| 63 | #define PIC_MODE |
| 64 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 65 | PCI_DEV_PIRQ_ROUTE(0x0, C, D, A, B) |
| 66 | }) |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | Device (RP04) |
| 72 | { |
| 73 | Name (_ADR, 0x001c0003) |
| 74 | |
| 75 | Method (_PRT) |
| 76 | { |
| 77 | If (PICM) { |
| 78 | Return (Package() { |
| 79 | #undef PIC_MODE |
| 80 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 81 | PCI_DEV_PIRQ_ROUTE(0x0, D, A, B, C) |
| 82 | }) |
| 83 | } Else { |
| 84 | Return (Package() { |
| 85 | #define PIC_MODE |
| 86 | #include <soc/intel/baytrail/acpi/irq_helper.h> |
| 87 | PCI_DEV_PIRQ_ROUTE(0x0, D, A, B, C) |
| 88 | }) |
| 89 | } |
| 90 | } |
| 91 | } |