]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Make 440SPe PCIe code more generic to use on different 4xx PPCs (1)
authorStefan Roese <sr@denx.de>
Wed, 3 Oct 2007 05:34:10 +0000 (07:34 +0200)
committerStefan Roese <sr@denx.de>
Wed, 31 Oct 2007 20:20:48 +0000 (21:20 +0100)
This patch is the first patch of a series to make the 440SPe PCIe code
usable on different 4xx PPC platforms. In preperation for the new 405EX
which is also equipped with PCIe interfaces.

(1) This patch renames the files from 440spe_pcie to 4xx_pcie

Signed-off-by: Stefan Roese <sr@denx.de>
board/amcc/katmai/katmai.c
board/amcc/yucca/yucca.c
cpu/ppc4xx/4xx_pcie.c [moved from cpu/ppc4xx/440spe_pcie.c with 99% similarity]
cpu/ppc4xx/Makefile
include/asm-ppc/4xx_pcie.h [moved from cpu/ppc4xx/440spe_pcie.h with 100% similarity]

index a49066fcc94e0b4d06394beeb4f0edac7efecd71..0c8e6cb701e909f7a155bd9a2966aa69b3f6d333 100644 (file)
 
 #include <common.h>
 #include <ppc4xx.h>
-#include <asm/processor.h>
 #include <i2c.h>
-#include <asm-ppc/io.h>
-#include <asm-ppc/gpio.h>
-
-#include "../cpu/ppc4xx/440spe_pcie.h"
+#include <asm/processor.h>
+#include <asm/io.h>
+#include <asm/gpio.h>
+#include <asm/4xx_pcie.h>
 
 #undef PCIE_ENDPOINT
 /* #define PCIE_ENDPOINT 1 */
index d7cc384ba0b8dde54135a40ac842c85fbb50f8bd..17c3ba0f17d02f739269f21f8b81a48b0aa1dae9 100644 (file)
 
 #include <common.h>
 #include <ppc4xx.h>
-#include <asm/processor.h>
 #include <i2c.h>
-#include <asm-ppc/io.h>
+#include <asm/processor.h>
+#include <asm/io.h>
+#include <asm/4xx_pcie.h>
 
 #include "yucca.h"
-#include "../cpu/ppc4xx/440spe_pcie.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
similarity index 99%
rename from cpu/ppc4xx/440spe_pcie.c
rename to cpu/ppc4xx/4xx_pcie.c
index 3eac0ae62cd43d511946a123c266a9fbf23eae52..8906adc51e24a7cd8a610d2e3e311b58d00c7454 100644 (file)
@@ -28,7 +28,7 @@
 
 #if defined(CONFIG_440SPE) && defined(CONFIG_PCI)
 
-#include "440spe_pcie.h"
+#include <asm/4xx_pcie.h>
 
 enum {
        PTYPE_ENDPOINT          = 0x0,
index af9da5b95fde6ab1dfddc5c51c62a2061cfb1968..28a8e2bcb7e2c4d078aa89c6b0b8ea438f4b779d 100644 (file)
@@ -27,13 +27,12 @@ LIB = $(obj)lib$(CPU).a
 
 START  = start.o resetvec.o kgdb.o
 SOBJS  = dcr.o
-COBJS  = 405gp_pci.o 440spe_pcie.o 4xx_enet.o \
+COBJS  = 405gp_pci.o 4xx_pcie.o 4xx_enet.o \
          bedbug_405.o commproc.o \
          cpu.o cpu_init.o gpio.o i2c.o interrupts.o \
          miiphy.o ndfc.o sdram.o serial.o \
          40x_spd_sdram.o 44x_spd_ddr.o 44x_spd_ddr2.o speed.o \
-         tlb.o traps.o usb_ohci.o usb.o usbdev.o \
-         440spe_pcie.o
+         tlb.o traps.o usb_ohci.o usb.o usbdev.o
 
 SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))