]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Merge maple support code to arch/powerpc/platforms/maple
authorPaul Mackerras <paulus@samba.org>
Sat, 29 Oct 2005 12:07:56 +0000 (22:07 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 29 Oct 2005 12:07:56 +0000 (22:07 +1000)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/Makefile
arch/powerpc/platforms/maple/Makefile [new file with mode: 0644]
arch/powerpc/platforms/maple/maple.h [new file with mode: 0644]
arch/powerpc/platforms/maple/pci.c [moved from arch/ppc64/kernel/maple_pci.c with 99% similarity]
arch/powerpc/platforms/maple/setup.c [moved from arch/ppc64/kernel/maple_setup.c with 95% similarity]
arch/powerpc/platforms/maple/time.c [moved from arch/ppc64/kernel/maple_time.c with 99% similarity]
arch/ppc64/kernel/Makefile

index 01723d491b5dfde5beea3dd32120bbd7d526f9c6..172c0db635041b025261893f99b26b06da65333e 100644 (file)
@@ -10,3 +10,4 @@ obj-$(CONFIG_4xx)             += 4xx/
 obj-$(CONFIG_85xx)             += 85xx/
 obj-$(CONFIG_PPC_PSERIES)      += pseries/
 obj-$(CONFIG_PPC_ISERIES)      += iseries/
+obj-$(CONFIG_PPC_MAPLE)                += maple/
diff --git a/arch/powerpc/platforms/maple/Makefile b/arch/powerpc/platforms/maple/Makefile
new file mode 100644 (file)
index 0000000..1be1a99
--- /dev/null
@@ -0,0 +1 @@
+obj-y  += setup.o pci.o time.o
diff --git a/arch/powerpc/platforms/maple/maple.h b/arch/powerpc/platforms/maple/maple.h
new file mode 100644 (file)
index 0000000..0657c57
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * Declarations for maple-specific code.
+ *
+ * Maple is the name of a PPC970 evaluation board.
+ */
+extern int maple_set_rtc_time(struct rtc_time *tm);
+extern void maple_get_rtc_time(struct rtc_time *tm);
+extern unsigned long maple_get_boot_time(void);
+extern void maple_calibrate_decr(void);
+extern void maple_pci_init(void);
+extern void maple_pcibios_fixup(void);
+extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
similarity index 99%
rename from arch/ppc64/kernel/maple_pci.c
rename to arch/powerpc/platforms/maple/pci.c
index 633324b5e61b9de893525e9f381dcdf0b9d5c7b6..340c21caeae24cc03b1a12df50bda25a3fe9bc4a 100644 (file)
@@ -25,6 +25,8 @@
 #include <asm/iommu.h>
 #include <asm/ppc-pci.h>
 
+#include "maple.h"
+
 #ifdef DEBUG
 #define DBG(x...) printk(x)
 #else
similarity index 95%
rename from arch/ppc64/kernel/maple_setup.c
rename to arch/powerpc/platforms/maple/setup.c
index a107ed69a3553d427f85e96053698fe32f80e2ef..7ece8983a105d2b87e50155f9a10950fd5483c57 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  arch/ppc64/kernel/maple_setup.c
+ *  Maple (970 eval board) setup code
  *
  *  (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org),
  *                     IBM Corp. 
 #include <asm/mpic.h>
 #include <asm/udbg.h>
 
+#include "maple.h"
+
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)
 #endif
 
-extern int maple_set_rtc_time(struct rtc_time *tm);
-extern void maple_get_rtc_time(struct rtc_time *tm);
-extern unsigned long maple_get_boot_time(void);
-extern void maple_calibrate_decr(void);
-extern void maple_pci_init(void);
-extern void maple_pcibios_fixup(void);
-extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
 extern void generic_find_legacy_serial_ports(u64 *physport,
                unsigned int *default_speed);
 
similarity index 99%
rename from arch/ppc64/kernel/maple_time.c
rename to arch/powerpc/platforms/maple/time.c
index 445cb7470bf5854376cb913c889e82a8383a54f7..40fc07a8e6061165bb8a2037009a0065b0595c15 100644 (file)
@@ -36,6 +36,8 @@
 #include <asm/machdep.h>
 #include <asm/time.h>
 
+#include "maple.h"
+
 #ifdef DEBUG
 #define DBG(x...) printk(x)
 #else
index 3cf7f3dab511454381d1edb59634d8a71be0a000..327c08ce429169ba5f1fbb0e473bb5cdb72a6bec 100644 (file)
@@ -55,8 +55,7 @@ obj-$(CONFIG_HVCS)            += hvcserver.o
 
 obj-$(CONFIG_PPC_PMAC)         += udbg_scc.o
 
-obj-$(CONFIG_PPC_MAPLE)                += maple_setup.o maple_pci.o maple_time.o \
-                                  udbg_16550.o
+obj-$(CONFIG_PPC_MAPLE)                += udbg_16550.o
 
 ifdef CONFIG_SMP
 obj-$(CONFIG_PPC_PMAC)         += smp-tbsync.o