summaryrefslogtreecommitdiffstats
path: root/arch/mips/mach-malta/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mach-malta/pci.c')
-rw-r--r--arch/mips/mach-malta/pci.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/mips/mach-malta/pci.c b/arch/mips/mach-malta/pci.c
index 4561123d22..200d3c907c 100644
--- a/arch/mips/mach-malta/pci.c
+++ b/arch/mips/mach-malta/pci.c
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
#include <common.h>
#include <types.h>
#include <driver.h>
@@ -5,11 +7,9 @@
#include <mach/hardware.h>
#include <asm/io.h>
#include <asm/addrspace.h>
-
#include <linux/pci.h>
-#include <asm/gt64120.h>
-#include <mach/mach-gt64120.h>
+#include <mach/gt64120.h>
#define PCI_ACCESS_READ 0
#define PCI_ACCESS_WRITE 1
@@ -134,7 +134,7 @@ static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn,
static resource_size_t gt64xxx_res_start(struct pci_bus *bus,
resource_size_t res_addr)
{
- return KSEG0ADDR(res_addr);
+ return CKSEG0ADDR(res_addr);
}
struct pci_ops gt64xxx_pci0_ops = {
@@ -154,6 +154,8 @@ static int pcibios_init(void)
{
resource_size_t start, end, map, start1, end1, map1, mask;
+ pci_controller_init(&gt64120_controller);
+
/*
* Due to a bug in the Galileo system controller, we need
* to setup the PCI BAR for the Galileo internal registers.