diff options
Diffstat (limited to 'arch/mips/loongson/common/pci.c')
-rw-r--r-- | arch/mips/loongson/common/pci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/loongson/common/pci.c b/arch/mips/loongson/common/pci.c index fa7784459721..003ab4e618b3 100644 --- a/arch/mips/loongson/common/pci.c +++ b/arch/mips/loongson/common/pci.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <pci.h> | 12 | #include <pci.h> |
13 | #include <loongson.h> | 13 | #include <loongson.h> |
14 | #include <boot_param.h> | ||
14 | 15 | ||
15 | static struct resource loongson_pci_mem_resource = { | 16 | static struct resource loongson_pci_mem_resource = { |
16 | .name = "pci memory space", | 17 | .name = "pci memory space", |
@@ -82,7 +83,10 @@ static int __init pcibios_init(void) | |||
82 | setup_pcimap(); | 83 | setup_pcimap(); |
83 | 84 | ||
84 | loongson_pci_controller.io_map_base = mips_io_port_base; | 85 | loongson_pci_controller.io_map_base = mips_io_port_base; |
85 | 86 | #ifdef CONFIG_LEFI_FIRMWARE_INTERFACE | |
87 | loongson_pci_mem_resource.start = loongson_sysconf.pci_mem_start_addr; | ||
88 | loongson_pci_mem_resource.end = loongson_sysconf.pci_mem_end_addr; | ||
89 | #endif | ||
86 | register_pci_controller(&loongson_pci_controller); | 90 | register_pci_controller(&loongson_pci_controller); |
87 | 91 | ||
88 | return 0; | 92 | return 0; |