ColdFire PCI bus support
v2 cover ColdFire PCI bus support
This is version 2 of the ColdFire PCI bus support.
The following patch series adds support for the PCI bus on the ColdFire M54[78]x family of parts.
Changes since the last version:
. change to drivers/pci/Makefile sent to linux-pci email list separately . header file changes broken out into a separate patch (for easier review) . IO barriers added within PCI config space access functions
--- arch/m68k/Kconfig.bus | 7 arch/m68k/include/asm/dma.h | 4 arch/m68k/include/asm/io_mm.h | 50 +++++ arch/m68k/include/asm/m54xxpci.h | 138 ++++++++++++++ arch/m68k/include/asm/m54xxsim.h | 3 arch/m68k/include/asm/pci.h | 6 arch/m68k/kernel/Makefile | 1 arch/m68k/kernel/pcibios.c | 109 +++++++++++ arch/m68k/platform/coldfire/Makefile | 2 arch/m68k/platform/coldfire/pci.c | 327 +++++++++++++++++++++++++++++++++++ 10 files changed, 646 insertions(+), 1 deletion(-)
PATCH v2 1/5 m68k: common PCI support definitions and code
From: Greg Ungerer <[email protected]>
Basic set of definitions and support code required to turn on CONFIG_PCI for the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU hardware yet.
--- arch/m68k/include/asm/dma.h | 4 ++ arch/m68k/include/asm/io_mm.h | 2 + arch/m68k/include/asm/pci.h | 6 ++ arch/m68k/kernel/Makefile | 1 + arch/m68k/kernel/pcibios.c | 109 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+), 0 deletions(-) create mode 100644 arch/m68k/kernel/pcibios.c
arch/m68k/include/asm/dma.h +4 -0
@@ -486,6 +486,10 @@ static __inline__ int get_dma_residue(unsigned int dmanr)extern int request_dma (unsigned int dmanr,const char * device_id);/* reserve a DMA channel */ extern void free_dma (unsigned int dmanr);/* release it again */ +#ifdef CONFIG_PCI +extern int isa_dma_bridge_buggy; +#else #define isa_dma_bridge_buggy (0) +#endif #endif /* _M68K_DMA_H */
arch/m68k/include/asm/io_mm.h +2 -0
@@ -340,4 +340,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int*/ #define xlate_dev_kmem_ptr (p) p +#define ioport_map (port, nr) ((void __iomem *)(port)) +#endif /* _IO_H */
arch/m68k/include/asm/pci.h +6 -0
@@ -2,6 +2,7 @@#define _ASM_M68K_PCI_H#include <asm-generic/pci-dma-compat.h> +#include <asm-generic/pci.h> /* The PCI address space does equal the physical memory * address space. The networking and block device layers use
@@ -9,4 +10,9 @@*/ #define PCI_DMA_BUS_IS_PHYS (1) +#define pcibios_assign_all_busses () 1 + +#define PCIBIOS_MIN_IO 0x00000100 +#define PCIBIOS_MIN_MEM 0x02000000 +#endif /* _ASM_M68K_PCI_H */
arch/m68k/kernel/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o obj-$(CONFIG_MMU_SUN3) += ints.o vectors.o +obj-$(CONFIG_PCI) += pcibios.o ifndef CONFIG_MMU_SUN3 obj-y += dma.o
arch/m68k/kernel/pcibios.c new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Geert Uytterhoeven
maintainerRe: [PATCH v2 1/5] m68k: common PCI support definitions and code
Hi Greg,
Quoted 11 lines · On Mon, Jul 16, 2012 at 2:25 PM <[email protected]> wrote:
From: Greg Ungerer <[email protected]>
Basic set of definitions and support code required to turn on
CONFIG_PCIfor the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU hardware yet.Signed-off-by Greg Ungerer <[email protected]>
arch/m68k/include/asm/io_mm.h static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int · line 343
Quoted 4 lines
arch/m68k/include/asm/io_mm.h +1
-0@@ -340,4 +340,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int*/ #define xlate_dev_kmem_ptr (p) p +#define ioport_map (port, nr) ((void __iomem *)(port))
So should we dop:
config NO_IOPORT_MAP
def_bool y
Triggered by seeing CONFIG_GPIO_TQMX86 being removed from allmodconfig builds due to commit c6414e1a2bd26b00 ("gpio: AMD8111 and TQMX86 require HAS_IOPORT_MAP").
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v2 1/5] m68k: common PCI support definitions and code
Hi Geert,
Quoted 21 lines · Geert Uytterhoeven
Hi Greg,
Quoted 11 lines · On Mon, Jul 16, 2012 at 2:25 PM <[email protected]> wrote:
From: Greg Ungerer <[email protected]>
Basic set of definitions and support code required to turn on
CONFIG_PCIfor the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU hardware yet.Signed-off-by Greg Ungerer <[email protected]>arch/m68k/include/asm/io_mm.h static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int · line 343
Quoted 4 lines
arch/m68k/include/asm/io_mm.h +1
-0@@ -340,4 +340,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int*/ #define xlate_dev_kmem_ptr (p) p +#define ioport_map (port, nr) ((void __iomem *)(port))So should we dop:
Quoted 6 lines
config
NO_IOPORT_MAP
def_boolyTriggered by seeing
CONFIG_GPIO_TQMX86being removed from allmodconfig builds due to commitc6414e1a2bd26b00("gpio: AMD8111 and TQMX86 requireHAS_IOPORT_MAP").
I guess we could.
But we would have to remove the iomap/iounmap definitions in kmap.h too right?
Regards
Greg
Geert Uytterhoeven
maintainerRe: [PATCH v2 1/5] m68k: common PCI support definitions and code
Hi Greg,
Quoted 23 lines · Greg Ungerer
Quoted 22 lines · Geert Uytterhoeven
Quoted 11 lines · On Mon, Jul 16, 2012 at 2:25 PM <[email protected]> wrote:
From: Greg Ungerer <[email protected]>
Basic set of definitions and support code required to turn on
CONFIG_PCIfor the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU hardware yet.Signed-off-by Greg Ungerer <[email protected]>arch/m68k/include/asm/io_mm.h static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int · line 343
Quoted 4 lines
arch/m68k/include/asm/io_mm.h +1
-0@@ -340,4 +340,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int*/ #define xlate_dev_kmem_ptr (p) p +#define ioport_map (port, nr) ((void __iomem *)(port))So should we dop:
config
NO_IOPORT_MAP
def_booly
Quoted 6 lines
Quoted 3 lines
Triggered by seeing
CONFIG_GPIO_TQMX86being removed from allmodconfig builds due to commitc6414e1a2bd26b00("gpio: AMD8111 and TQMX86 requireHAS_IOPORT_MAP").I guess we could.
But we would have to remove the iomap/iounmap definitions inkmap.htoo right?
Why? Do I need more coffee?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v2 1/5] m68k: common PCI support definitions and code
Hi Geert,
Quoted 26 lines · Geert Uytterhoeven
Hi Greg,
Quoted 23 lines · Greg Ungerer
Quoted 22 lines · Geert Uytterhoeven
Quoted 11 lines · On Mon, Jul 16, 2012 at 2:25 PM <[email protected]> wrote:
From: Greg Ungerer <[email protected]>
Basic set of definitions and support code required to turn on
CONFIG_PCIfor the m68k architecture. Nothing specific to any PCI implementation in any m68k class CPU hardware yet.Signed-off-by Greg Ungerer <[email protected]>arch/m68k/include/asm/io_mm.h static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int · line 343
Quoted 4 lines
arch/m68k/include/asm/io_mm.h +1
-0@@ -340,4 +340,6 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int*/ #define xlate_dev_kmem_ptr (p) p +#define ioport_map (port, nr) ((void __iomem *)(port))So should we dop:
config
NO_IOPORT_MAP
def_booly
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Triggered by seeing
CONFIG_GPIO_TQMX86being removed from allmodconfig builds due to commitc6414e1a2bd26b00("gpio: AMD8111 and TQMX86 requireHAS_IOPORT_MAP").I guess we could.
But we would have to remove the iomap/iounmap definitions inkmap.htoo right?Why? Do I need more coffee?
If you do this:
arch/m68k/Kconfig +0 -3
@@ -59,9 +59,6 @@ config TIME_LOW_RES bool default y -config NO_IOPORT_MAP - def_bool y - config ZONE_DMA bool default y
And the compile for an M5475 target for example you get this:
CC lib/strncpy_from_user.o
In file included from ./arch/m68k/include/asm/io_no.h:134,
from ./arch/m68k/include/asm/io.h:6,
from ./include/linux/io.h:13,
from ./include/linux/irq.h:20,
from ./include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from ./include/linux/hardirq.h:11,
from ./include/linux/interrupt.h:11,
from ./include/linux/pci.h:38,
from lib/iomap.c:7:
./arch/m68k/include/asm/kmap.h:61:20: error: redefinition of ‘ioport_map’
#define ioport_map ioport_map
^~~~~~~~~~
lib/iomap.c:362:15: note: in expansion of macro ‘ioport_map’
void __iomem *ioport_map(unsigned long port, unsigned int nr)
^~~~~~~~~~
./arch/m68k/include/asm/kmap.h:61:20: note: previous definition of ‘ioport_map’ was here
#define ioport_map ioport_map
^~~~~~~~~~
./arch/m68k/include/asm/kmap.h:62:29: note: in expansion of macro ‘ioport_map’
static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
^~~~~~~~~~
./arch/m68k/include/asm/kmap.h:67:22: error: redefinition of ‘ioport_unmap’
#define ioport_unmap ioport_unmap
^~~~~~~~~~~~
lib/iomap.c:369:6: note: in expansion of macro ‘ioport_unmap’
void ioport_unmap(void __iomem *addr)
^~~~~~~~~~~~
./arch/m68k/include/asm/kmap.h:67:22: note: previous definition of ‘ioport_unmap’ was here
#define ioport_unmap ioport_unmap
^~~~~~~~~~~~
./arch/m68k/include/asm/kmap.h:68:20: note: in expansion of macro ‘ioport_unmap’
static inline void ioport_unmap(void __iomem *p)
^~~~~~~~~~~~Regards
Greg
PATCH v2 2/5 m68k: add PCI bus support definitions for the ColdFire M54xx SoC family
In reply to [email protected]From: Greg Ungerer <[email protected]>
Add all the required definitoins to support the ColdFire M54xx SoC PCI hardware unit. These are strait out of the MCF5475 Reference Manual.
--- arch/m68k/include/asm/m54xxpci.h | 138 ++++++++++++++++++++++++++++++++++++++ arch/m68k/include/asm/m54xxsim.h | 3 + 2 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 arch/m68k/include/asm/m54xxpci.h
arch/m68k/include/asm/m54xxpci.h new file +138 -0
@@ -0,0 +1,138 @@ +/****************************************************************************/ + +/* +* m54xxpci.h -- ColdFire 547x and 548x PCI bus support +* +* (C) Copyright 2011, Greg Ungerer <[email protected]> +* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file COPYING in the main directory of this archive +* for more details. +*/ + +/****************************************************************************/ +#ifndef M54XXPCI_H +#define M54XXPCI_H +/****************************************************************************/ + +/* +* The core set of PCI support registers are mapped into the MBAR region. +*/ +#define PCIIDR (CONFIG_MBAR + 0xb00)/* PCI device/vendor ID */ +#define PCISCR (CONFIG_MBAR + 0xb04)/* PCI status/command */ +#define PCICCRIR (CONFIG_MBAR + 0xb08)/* PCI class/revision */ +#define PCICR1 (CONFIG_MBAR + 0xb0c)/* PCI configuration 1 */ +#define PCIBAR0 (CONFIG_MBAR + 0xb10)/* PCI base address 0 */ +#define PCIBAR1 (CONFIG_MBAR + 0xb14)/* PCI base address 1 */ +#define PCICCPR (CONFIG_MBAR + 0xb28)/* PCI cardbus CIS pointer */ +#define PCISID (CONFIG_MBAR + 0xb2c)/* PCI subsystem IDs */ +#define PCIERBAR (CONFIG_MBAR + 0xb30)/* PCI expansion ROM */ +#define PCICPR (CONFIG_MBAR + 0xb34)/* PCI capabilities pointer */ +#define PCICR2 (CONFIG_MBAR + 0xb3c)/* PCI configuration 2 */ + +#define PCIGSCR (CONFIG_MBAR + 0xb60)/* Global status/control */ +#define PCITBATR0 (CONFIG_MBAR + 0xb64)/* Target base translation 0 */ +#define PCITBATR1 (CONFIG_MBAR + 0xb68)/* Target base translation 1 */ +#define PCITCR (CONFIG_MBAR + 0xb6c)/* Target control */ +#define PCIIW0BTAR (CONFIG_MBAR + 0xb70)/* Initiator window 0 */ +#define PCIIW1BTAR (CONFIG_MBAR + 0xb74)/* Initiator window 1 */ +#define PCIIW2BTAR (CONFIG_MBAR + 0xb78)/* Initiator window 2 */ +#define PCIIWCR (CONFIG_MBAR + 0xb80)/* Initiator window config */ +#define PCIICR (CONFIG_MBAR + 0xb84)/* Initiator control */ +#define PCIISR (CONFIG_MBAR + 0xb88)/* Initiator status */ +#define PCICAR (CONFIG_MBAR + 0xbf8)/* Configuration address */ + +#define PCITPSR (CONFIG_MBAR + 0x8400)/* TX packet size */ +#define PCITSAR (CONFIG_MBAR + 0x8404)/* TX start address */ +#define PCITTCR (CONFIG_MBAR + 0x8408)/* TX transaction control */ +#define PCITER (CONFIG_MBAR + 0x840c)/* TX enables */ +#define PCITNAR (CONFIG_MBAR + 0x8410)/* TX next address */ +#define PCITLWR (CONFIG_MBAR + 0x8414)/* TX last word */ +#define PCITDCR (CONFIG_MBAR + 0x8418)/* TX done counts */ +#define PCITSR (CONFIG_MBAR + 0x841c)/* TX status */ +#define PCITFDR (CONFIG_MBAR + 0x8440)/* TX FIFO data */ +#define PCITFSR (CONFIG_MBAR + 0x8444)/* TX FIFO status */ +#define PCITFCR (CONFIG_MBAR + 0x8448)/* TX FIFO control */ +#define PCITFAR (CONFIG_MBAR + 0x844c)/* TX FIFO alarm */ +#define PCITFRPR (CONFIG_MBAR + 0x8450)/* TX FIFO read pointer */ +#define PCITFWPR (CONFIG_MBAR + 0x8454)/* TX FIFO write pointer */ + +#define PCIRPSR (CONFIG_MBAR + 0x8480)/* RX packet size */ +#define PCIRSAR (CONFIG_MBAR + 0x8484)/* RX start address */ +#define PCIRTCR (CONFIG_MBAR + 0x8488)/* RX transaction control */ +#define PCIRER (CONFIG_MBAR + 0x848c)/* RX enables */ +#define PCIRNAR (CONFIG_MBAR + 0x8490)/* RX next address */ +#define PCIRDCR (CONFIG_MBAR + 0x8498)/* RX done counts */ +#define PCIRSR (CONFIG_MBAR + 0x849c)/* RX status */ +#define PCIRFDR (CONFIG_MBAR + 0x84c0)/* RX FIFO data */ +#define PCIRFSR (CONFIG_MBAR + 0x84c4)/* RX FIFO status */ +#define PCIRFCR (CONFIG_MBAR + 0x84c8)/* RX FIFO control */ +#define PCIRFAR (CONFIG_MBAR + 0x84cc)/* RX FIFO alarm */ +#define PCIRFRPR (CONFIG_MBAR + 0x84d0)/* RX FIFO read pointer */ +#define PCIRFWPR (CONFIG_MBAR + 0x84d4)/* RX FIFO write pointer */ + +#define PACR (CONFIG_MBAR + 0xc00)/* PCI arbiter control */ +#define PASR (COFNIG_MBAR + 0xc04)/* PCI arbiter status */ + +/* +* Definitions for the Global status and control register. +*/ +#define PCIGSCR_PE 0x20000000/* Parity error detected */ +#define PCIGSCR_SE 0x10000000/* System error detected */ +#define PCIGSCR_XCLKBIN 0x07000000/* XLB2CLKIN mask */ +#define PCIGSCR_PEE 0x00002000/* Parity error intr enable */ +#define PCIGSCR_SEE 0x00001000/* System error intr enable */ +#define PCIGSCR_RESET 0x00000001/* Reset bit */ + +/* +* Bit definitions for the PCICAR configuration address register. +*/ +#define PCICAR_E 0x80000000/* Enable config space */ +#define PCICAR_BUSN 16/* Move bus bits */ +#define PCICAR_DEVFNN 8/* Move devfn bits */ +#define PCICAR_DWORDN 0/* Move dword bits */ + +/* +* The initiator windows hold the memory and IO mapping information. +* This macro creates the register values from the desired addresses. +*/ +#define WXBTAR (hostaddr, pciaddr, size) \ + (((hostaddr) & 0xff000000) | \ + ((((size) - 1) & 0xff000000) >> 8) | \ + (((pciaddr) & 0xff000000) >> 16)) + +#define PCIIWCR_W0_MEM 0x00000000/* Window 0 is memory */ +#define PCIIWCR_W0_IO 0x08000000/* Window 0 is IO */ +#define PCIIWCR_W0_MRD 0x00000000/* Window 0 memory read */ +#define PCIIWCR_W0_MRDL 0x02000000/* Window 0 memory read line */ +#define PCIIWCR_W0_MRDM 0x04000000/* Window 0 memory read mult */ +#define PCIIWCR_W0_E 0x01000000/* Window 0 enable */ + +#define PCIIWCR_W1_MEM 0x00000000/* Window 0 is memory */ +#define PCIIWCR_W1_IO 0x00080000/* Window 0 is IO */ +#define PCIIWCR_W1_MRD 0x00000000/* Window 0 memory read */ +#define PCIIWCR_W1_MRDL 0x00020000/* Window 0 memory read line */ +#define PCIIWCR_W1_MRDM 0x00040000/* Window 0 memory read mult */ +#define PCIIWCR_W1_E 0x00010000/* Window 0 enable */ + +/* +* Bit definitions for the PCIBATR registers. +*/ +#define PCITBATR0_E 0x00000001/* Enable window 0 */ +#define PCITBATR1_E 0x00000001/* Enable window 1 */ + +/* +* PCI arbiter support definitions and macros. +*/ +#define PACR_INTMPRI 0x00000001 +#define PACR_EXTMPRI (x) (((x) & 0x1f) << 1) +#define PACR_INTMINTE 0x00010000 +#define PACR_EXTMINTE (x) (((x) & 0x1f) << 17) +#define PACR_PKMD 0x40000000 +#define PACR_DS 0x80000000 + +#define PCICR1_CL (x) ((x) & 0xf)/* Cacheline size field */ +#define PCICR1_LT (x) (((x) & 0xff) << 8)/* Latency timer field */ + +/****************************************************************************/ +#endif /* M54XXPCI_H */
arch/m68k/include/asm/m54xxsim.h +3 -0
@@ -81,4 +81,7 @@#define MCF_PAR_PSC_RTS_RTS (0x30)#define MCF_PAR_PSC_CANRX (0x40) +#define MCF_PAR_PCIBG (CONFIG_MBAR + 0xa48)/* PCI bus grant */ +#define MCF_PAR_PCIBR (CONFIG_MBAR + 0xa4a)/* PCI */ +#endif /* m54xxsim_h */
Signature · 1 line
1.7.0.4
PATCH v2 3/5 m68k: add IO access definitions to support PCI on ColdFire platforms
In reply to [email protected]From: Greg Ungerer <[email protected]>
Define the usual memory access functions (readb/writeb/...) and I/O space functions (inb/outb/...) for PCI bus support on ColdFire CPU based platforms.
--- arch/m68k/include/asm/io_mm.h | 48 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-)
arch/m68k/include/asm/io_mm.h +47 -1
@@ -65,7 +65,53 @@ -#ifdef CONFIG_ISA +#if defined(CONFIG_PCI ) && defined(CONFIG_COLDFIRE ) + +#define HAVE_ARCH_PIO_SIZE +#define PIO_OFFSET 0 +#define PIO_MASK 0xffff +#define PIO_RESERVED 0x10000 + +u8 mcf_pci_inb (u32 addr); +u16 mcf_pci_inw (u32 addr); +u32 mcf_pci_inl (u32 addr); +void mcf_pci_insb (u32 addr,u8 *buf,u32 len); +void mcf_pci_insw (u32 addr,u16 *buf,u32 len); +void mcf_pci_insl (u32 addr,u32 *buf,u32 len); + +void mcf_pci_outb (u8 v,u32 addr); +void mcf_pci_outw (u16 v,u32 addr); +void mcf_pci_outl (u32 v,u32 addr); +void mcf_pci_outsb (u32 addr,const u8 *buf,u32 len); +void mcf_pci_outsw (u32 addr,const u16 *buf,u32 len); +void mcf_pci_outsl (u32 addr,const u32 *buf,u32 len); + +#define inb mcf_pci_inb +#define inb_p mcf_pci_inb +#define inw mcf_pci_inw +#define inw_p mcf_pci_inw +#define inl mcf_pci_inl +#define inl_p mcf_pci_inl +#define insb mcf_pci_insb +#define insw mcf_pci_insw +#define insl mcf_pci_insl + +#define outb mcf_pci_outb +#define outb_p mcf_pci_outb +#define outw mcf_pci_outw +#define outw_p mcf_pci_outw +#define outl mcf_pci_outl +#define outl_p mcf_pci_outl +#define outsb mcf_pci_outsb +#define outsw mcf_pci_outsw +#define outsl mcf_pci_outsl + +#define readb (addr) in_8(addr) +#define writeb (v, addr) out_8((addr), (v)) +#define readw (addr) in_le16(addr) +#define writew (v, addr) out_le16((addr), (v)) + +#elif defined(CONFIG_ISA )#if MULTI_ISA ==0 #undef MULTI_ISA
Signature · 1 line
1.7.0.4
PATCH v2 4/5 m68k: add PCI bus code support for the ColdFire M54xx SoC family
In reply to [email protected]From: Greg Ungerer <[email protected]>
The ColdFire M54xx SoC family have a traditional PCI bus interface. Add the core support code to access and use this bus on these parts. This code provides all the config space access functions and IO access functions. It also carries out the PCI bus initialization and hooks into the kernel PCI subsystem.
--- arch/m68k/platform/coldfire/Makefile | 2 + arch/m68k/platform/coldfire/pci.c | 327 ++++++++++++++++++++++++++++++++++ 2 files changed, 329 insertions(+), 0 deletions(-) create mode 100644 arch/m68k/platform/coldfire/pci.c
arch/m68k/platform/coldfire/Makefile +2 -0
@@ -32,5 +32,7 @@ obj-$(CONFIG_NETtel) += nettel.o obj-$(CONFIG_CLEOPATRA) += nettel.o obj-$(CONFIG_FIREBEE) += firebee.o +obj-$(CONFIG_PCI) += pci.o + obj-y += pinmux.o gpio.o extra-y := head.o
arch/m68k/platform/coldfire/pci.c new file +327 -0
327 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v2 5/5 m68k: allow PCI bus to be enabled for ColdFire m54xx CPUs
In reply to [email protected]From: Greg Ungerer <[email protected]>
All support code for the PCI bus hardware on the ColdFire 547x and 548x CPUs is now in. Allow enabling of CONFIG_PCI for them.
--- arch/m68k/Kconfig.bus | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
arch/m68k/Kconfig.bus +7 -0
@@ -48,6 +48,13 @@ config ISA config GENERIC_ISA_DMA def_bool ISA +config PCI + bool "PCI support" + depends on M54xx + help + Enable the PCI bus. Support for the PCI bus hardware built into the + ColdFire 547x and 548x processors. + source "drivers/pci/Kconfig" source "drivers/zorro/Kconfig"
Signature · 1 line
1.7.0.4