* [PATCH] arch/cksy: Support the pci in csky serial core
@ 2020-01-27 2:56 MaJun
0 siblings, 0 replies; only message in thread
From: MaJun @ 2020-01-27 2:56 UTC (permalink / raw)
To: guoren; +Cc: majun258, linux-kernel, linux-arch, arnd, linux-csky
Add the pci related code for csky serial core.
Signed-off-by: MaJun <majun258@linux.alibaba.com>
---
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
diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig
index cc5dc37..6ceafa3 100644
--- a/arch/csky/Kconfig
+++ b/arch/csky/Kconfig
@@ -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
diff --git a/arch/csky/include/asm/pci.h b/arch/csky/include/asm/pci.h
new file mode 100644
index 0000000..ccd844e
--- /dev/null
+++ b/arch/csky/include/asm/pci.h
@@ -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 */
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-06 3:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27 2:56 [PATCH] arch/cksy: Support the pci in csky serial core MaJun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).