arch/cksy: Support the pci in csky serial core
Subsystems (2)
PATCH 1/1 arch/cksy: Support the pci in csky serial core
Add the pci related code for csky serial core.
Signed-off-by MaJun <[email protected]>
--- arch/csky/Kconfig | 4 ++++ arch/csky/include/asm/pci.h | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 arch/csky/include/asm/pci.h
arch/csky/Kconfig +4 -0
@@ -62,6 +62,10 @@ config CSKY select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_KPROBES if !CPU_CK610 select HAVE_KRETPROBES if !CPU_CK610 + select GENERIC_PCI_IOMAP + select HAVE_PCI + select PCI_DOMAINS_GENERIC if PCI + select PCI_SYSCALL if PCI config CPU_HAS_CACHEV2 bool
arch/csky/include/asm/pci.h new file +17 -0
@@ -0,0 +1,17 @@ +#ifndef __ASM_CSKY_PCI_H +#define __ASM_CSKY_PCI_H + +extern int isa_dma_bridge_buggy; + +#define PCIBIOS_MIN_IO 0x1000 +#define PCIBIOS_MIN_MEM 0x10000000 + +static inline int pci_proc_domain (struct pci_bus *bus) +{ +/* always show the domain in /proc/bus/pci */ +return 1 ; +} + +#define pcibios_assign_all_busses () 1 + +#endif /* __ASM_CSKY_PCI_H */
Signature · 1 line
1.8.3.1