Skip to contentSkip to conversation

sh: Add support PCI host driver for SH7751/SH7751R

PATCH New Nobuhiro Iwamatsu 1 participant 1 message Mar 23, 2008 PCI

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sh: Add support PCI host driver for SH7751/SH7751R

---
 drivers/pci/Makefile     |    1 +
 drivers/pci/pci_sh7751.c |  199 ++++++++++++++++++++++++++++++++++++++++++++++
 include/asm-sh/pci.h     |    7 +-
 3 files changed, 204 insertions(+), 3 deletions(-)
 create mode 100644 drivers/pci/pci_sh7751.c
drivers/pci/Makefile +1 -0
index ef7781f..ad1b7dd 100644
@@ -32,6 +32,7 @@ COBJS-y += pci_indirect.o
 COBJS-y += tsi108_pci.o
 COBJS-y += w83c553f.o
 COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o
+COBJS-$(CONFIG_SH7751_PCI) +=pci_sh7751.o
 COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o
 
 COBJS	:= $(COBJS-y)
drivers/pci/pci_sh7751.c new file +199 -0

199 lines not on this page · raw message

include/asm-sh/pci.h +4 -3
index 821961f..bc59491 100644
@@ -1,7 +1,7 @@
 /*
  * SH4 PCI Controller (PCIC) for U-Boot.
  * (C) Dustin McIntire (dustin at sensoria.com)
- * (C) 2007 Nobuhiro Iwamatsu <[email protected]>
+ * (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]>
  * (C) 2008 Yusuke Goda <[email protected]>
  *
  * u-boot/include/asm-sh/pci.h
@@ -28,8 +28,9 @@
 #define _ASM_PCI_H_
 
 #include <pci.h>
-
-#if defined(CONFIG_CPU_SH7780)
+#if defined(CONFIG_SH7751_PCI)
+int pci_sh7751_init(struct pci_controller *hose);
+#elif defined(CONFIG_SH7780_PCI)
 int pci_sh7780_init(struct pci_controller *hose);
 #else
 #error "Not support PCI."
Signature · 1 line
1.5.4.3