linux-csky.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: MaJun <majun258@linux.alibaba.com>
To: guoren@kernel.org
Cc: majun258@linux.alibaba.com, linux-kernel@vger.kernel.org,
	linux-arch@vger.kernel.org, arnd@arndb.de,
	linux-csky@vger.kernel.org
Subject: [PATCH] arch/cksy: Support the pci in csky serial core
Date: Mon, 27 Jan 2020 10:56:21 +0800	[thread overview]
Message-ID: <1580093781-927-1-git-send-email-majun258@linux.alibaba.com> (raw)

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


                 reply	other threads:[~2020-02-06  3:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1580093781-927-1-git-send-email-majun258@linux.alibaba.com \
    --to=majun258@linux.alibaba.com \
    --cc=arnd@arndb.de \
    --cc=guoren@kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-csky@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).