Skip to content

Commit 73d8e6a

Browse files
blogicpaulburton
authored andcommitted
MIPS: ath79: drop legacy pci code
With the target now being fully OF based, we can drop the legacy pci platform code. The only bits that we need to keep is the fixup code which we move to its own code file. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Pengutronix Kernel Team <kernel@pengutronix.de> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: Felix Fietkau <nbd@nbd.name>
1 parent 3a77e0d commit 73d8e6a

File tree

5 files changed

+22
-309
lines changed

5 files changed

+22
-309
lines changed

arch/mips/ath79/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
obj-y := prom.o setup.o common.o clock.o
1212

1313
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
14-
obj-$(CONFIG_PCI) += pci.o
1514

1615
#
1716
# Devices

arch/mips/ath79/pci.c

Lines changed: 0 additions & 273 deletions
This file was deleted.

arch/mips/ath79/pci.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

arch/mips/pci/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ obj-$(CONFIG_MIPS_PCI_VIRTIO) += pci-virtio-guest.o
2929
#
3030
# These are still pretty much in the old state, watch, go blind.
3131
#
32+
obj-$(CONFIG_ATH79) += fixup-ath79.o
3233
obj-$(CONFIG_LASAT) += pci-lasat.o
3334
obj-$(CONFIG_MIPS_COBALT) += fixup-cobalt.o
3435
obj-$(CONFIG_LEMOTE_FULOONG2E) += fixup-fuloong2e.o ops-loongson2.o

arch/mips/pci/fixup-ath79.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2018 John Crispin <john@phrozen.org>
3+
*
4+
* This program is free software; you can redistribute it and/or modify it
5+
* under the terms of the GNU General Public License version 2 as published
6+
* by the Free Software Foundation.
7+
*/
8+
9+
#include <linux/pci.h>
10+
//#include <linux/of_irq.h>
11+
#include <linux/of_pci.h>
12+
13+
int pcibios_plat_dev_init(struct pci_dev *dev)
14+
{
15+
return PCIBIOS_SUCCESSFUL;
16+
}
17+
18+
int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
19+
{
20+
return of_irq_parse_and_map_pci(dev, slot, pin);
21+
}

0 commit comments

Comments
 (0)