ARM: clean up machine-specific PCI code and move it into mach-footbridge
Subsystems (3)
PATCH 1/1 ARM: clean up machine-specific PCI code and move it into mach-footbridge
arch/arm/include/asm/mach/pci.h contains function definitions specific to Intel IOP3xx and the DC21285 Footbridge chip. This machine-specific code should not be in a global include file. The last IOP3xx platform supported was removed in commit b91a69d162aa ("ARM: iop32x: remove the platform"), so the IOP3xx definitions are unused. Remove them and move the DC21285 definitions into mach-footbridge.
Tested by compiling footbridge_defconfig and netwinder_defconfig.
Signed-off-by Ethan Nelson-Moore <[email protected]>
--- arch/arm/include/asm/mach/pci.h | 13 ------------- arch/arm/mach-footbridge/dc21285.c | 2 ++ arch/arm/mach-footbridge/ebsa285-pci.c | 2 ++ arch/arm/mach-footbridge/netwinder-pci.c | 2 ++ arch/arm/mach-footbridge/pci.h | 12 ++++++++++++ 5 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 arch/arm/mach-footbridge/pci.h
arch/arm/include/asm/mach/pci.h +0 -13
@@ -70,17 +70,4 @@ extern void pci_map_io_early(unsigned long pfn);static inline void pci_map_io_early (unsigned long pfn) {}#endif -/* -* PCI controllers -*/ -extern struct pci_ops iop3xx_ops; -extern int iop3xx_pci_setup (int nr,struct pci_sys_data *); -extern void iop3xx_pci_preinit (void ); -extern void iop3xx_pci_preinit_cond (void ); - -extern struct pci_ops dc21285_ops; -extern int dc21285_setup (int nr,struct pci_sys_data *); -extern void dc21285_preinit (void ); -extern void dc21285_postinit (void ); -#endif /* __ASM_MACH_PCI_H */
arch/arm/mach-footbridge/dc21285.c +2 -0
@@ -21,6 +21,8 @@#include <asm/mach/pci.h> #include <asm/hardware/dec21285.h> +#include "pci.h" +#define MAX_SLOTS 21#define PCICMD_ABORT ((PCI_STATUS_REC_MASTER_ABORT| \
arch/arm/mach-footbridge/ebsa285-pci.c +2 -0
@@ -14,6 +14,8 @@#include <asm/mach/pci.h> #include <asm/mach-types.h> +#include "pci.h" +static int irqmap_ebsa285[] = {IRQ_IN3 ,IRQ_IN1 ,IRQ_IN0 ,IRQ_PCI };static int ebsa285_map_irq (const struct pci_dev *dev,u8 slot,u8 pin)
arch/arm/mach-footbridge/netwinder-pci.c +2 -0
@@ -14,6 +14,8 @@#include <asm/mach/pci.h> #include <asm/mach-types.h> +#include "pci.h" +/* * We now use the slot ID instead of the device identifiers to select * which interrupt is routed where.
arch/arm/mach-footbridge/pci.h new file +12 -0
@@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __FOOTBRIDGE_PCI_H +#define __FOOTBRIDGE_PCI_H + +/* PCI controller-related definitions for the DC21285 Footbridge chip */ +extern struct pci_ops dc21285_ops; +extern int dc21285_setup (int nr,struct pci_sys_data *sys); +extern void dc21285_preinit (void ); +extern void dc21285_postinit (void ); + +#endif /* __FOOTBRIDGE_PCI_H */
Signature · 1 line
2.43.0