]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sh: Move SuperH PCI driver from cpu/sh4 to drivers/pci
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Sun, 23 Mar 2008 17:11:26 +0000 (02:11 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 28 Mar 2008 05:16:13 +0000 (14:16 +0900)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
cpu/sh4/Makefile
drivers/pci/Makefile
drivers/pci/pci_sh4.c [moved from cpu/sh4/pci-sh4.c with 93% similarity]
drivers/pci/pci_sh7780.c [moved from cpu/sh4/pci-sh7780.c with 94% similarity]
include/configs/r7780mp.h

index 7a53cb6dc4d3d42de9dc2496b3885b48813cdc1f..1bb8bd7729e88341e52a577048df7e1532875855 100644 (file)
@@ -29,8 +29,7 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(CPU).a
 
 START  = start.o
-OBJS   = cpu.o interrupts.o watchdog.o time.o cache.o \
-               pci-sh4.o pci-sh7780.o
+OBJS   = cpu.o interrupts.o watchdog.o time.o cache.o
 
 all:   .depend $(START) $(LIB)
 
index fe45839466162b36d54a560ae1e8aa2694a8b149..ef7781f899a19d4c7343ba0a0dc595fd8c6a2645 100644 (file)
@@ -31,6 +31,8 @@ COBJS-y += pci_auto.o
 COBJS-y += pci_indirect.o
 COBJS-y += tsi108_pci.o
 COBJS-y += w83c553f.o
+COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o
+COBJS-$(CONFIG_SH7780_PCI) +=pci_sh7780.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
similarity index 93%
rename from cpu/sh4/pci-sh4.c
rename to drivers/pci/pci_sh4.c
index 9d14f8d0fff1343b0d13ed3ab902a1c6d7749f42..1290c0a799eefbd680316562c1c83870d09d85c0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * SH4 PCI Controller (PCIC) for U-Boot.
  * (C) Dustin McIntire (dustin@sensoria.com)
- * (C) 2007 Nobuhiro Iwamatsu
+ * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  * (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
  *
  * u-boot/cpu/sh4/pci-sh4.c
@@ -27,9 +27,6 @@
 
 #include <common.h>
 
-#if defined(CONFIG_PCI) &&     \
-       defined(CONFIG_SH4_PCI)
-
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>
@@ -77,5 +74,3 @@ int pci_sh4_init(struct pci_controller *hose)
        hose->last_busno = pci_hose_scan(hose);
        return 0;
 }
-
-#endif /* defined(CONFIG_PCI) && defined(CONFIG_SH4_PCI) */
similarity index 94%
rename from cpu/sh4/pci-sh7780.c
rename to drivers/pci/pci_sh7780.c
index 851d767e0dbfb3a71b5f388ca995500796757411..d63d67d2dcddc0f3e4f248091912e5551fa5c7c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * SH7780 PCI Controller (PCIC) for U-Boot.
  * (C) Dustin McIntire (dustin@sensoria.com)
- * (C) 2007 Nobuhiro Iwamatsu
+ * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  * (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
  *
  * See file CREDITS for list of people who contributed to this
@@ -25,9 +25,6 @@
 
 #include <common.h>
 
-#if defined(CONFIG_PCI) && defined(CONFIG_SH4_PCI) \
-       && defined(CONFIG_CPU_SH7780)
-
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <pci.h>
@@ -108,4 +105,3 @@ int pci_sh7780_init(struct pci_controller *hose)
        pci_sh4_init(hose);
        return 0;
 }
-#endif /* defined(CONFIG_PCI) && defined(CONFIG_CPU_SH7780) */
index 3ddb2f46a08d42b33c4a253c3fb0c69e2f702a95..42787f4fd13766b960d170a665f749040277d830 100644 (file)
 #if defined(CONFIG_CMD_PCI)
 #define CONFIG_PCI
 #define CONFIG_SH4_PCI
+#define CONFIG_SH7780_PCI
 #define CONFIG_PCI_PNP
 #define CONFIG_PCI_SCAN_SHOW   1
 #define __io