aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-29 08:07:56 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-29 08:07:56 -0400
commit0cb7b2afd79c5715cbd1d4eee826571fb17fdd65 (patch)
tree6748e2d741c731aa8afa458152d934b7ad81715c /arch
parentd3f67fbb96b827c1a6a7a82689e589865581155c (diff)
powerpc: Merge maple support code to arch/powerpc/platforms/maple
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/Makefile1
-rw-r--r--arch/powerpc/platforms/maple/Makefile1
-rw-r--r--arch/powerpc/platforms/maple/maple.h12
-rw-r--r--arch/powerpc/platforms/maple/pci.c (renamed from arch/ppc64/kernel/maple_pci.c)2
-rw-r--r--arch/powerpc/platforms/maple/setup.c (renamed from arch/ppc64/kernel/maple_setup.c)11
-rw-r--r--arch/powerpc/platforms/maple/time.c (renamed from arch/ppc64/kernel/maple_time.c)2
-rw-r--r--arch/ppc64/kernel/Makefile3
7 files changed, 22 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/Makefile b/arch/powerpc/platforms/Makefile
index 01723d491b5d..172c0db63504 100644
--- a/arch/powerpc/platforms/Makefile
+++ b/arch/powerpc/platforms/Makefile
@@ -10,3 +10,4 @@ obj-$(CONFIG_4xx) += 4xx/
10obj-$(CONFIG_85xx) += 85xx/ 10obj-$(CONFIG_85xx) += 85xx/
11obj-$(CONFIG_PPC_PSERIES) += pseries/ 11obj-$(CONFIG_PPC_PSERIES) += pseries/
12obj-$(CONFIG_PPC_ISERIES) += iseries/ 12obj-$(CONFIG_PPC_ISERIES) += iseries/
13obj-$(CONFIG_PPC_MAPLE) += maple/
diff --git a/arch/powerpc/platforms/maple/Makefile b/arch/powerpc/platforms/maple/Makefile
new file mode 100644
index 000000000000..1be1a993c5f5
--- /dev/null
+++ b/arch/powerpc/platforms/maple/Makefile
@@ -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
index 000000000000..0657c579b840
--- /dev/null
+++ b/arch/powerpc/platforms/maple/maple.h
@@ -0,0 +1,12 @@
1/*
2 * Declarations for maple-specific code.
3 *
4 * Maple is the name of a PPC970 evaluation board.
5 */
6extern int maple_set_rtc_time(struct rtc_time *tm);
7extern void maple_get_rtc_time(struct rtc_time *tm);
8extern unsigned long maple_get_boot_time(void);
9extern void maple_calibrate_decr(void);
10extern void maple_pci_init(void);
11extern void maple_pcibios_fixup(void);
12extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
diff --git a/arch/ppc64/kernel/maple_pci.c b/arch/powerpc/platforms/maple/pci.c
index 633324b5e61b..340c21caeae2 100644
--- a/arch/ppc64/kernel/maple_pci.c
+++ b/arch/powerpc/platforms/maple/pci.c
@@ -25,6 +25,8 @@
25#include <asm/iommu.h> 25#include <asm/iommu.h>
26#include <asm/ppc-pci.h> 26#include <asm/ppc-pci.h>
27 27
28#include "maple.h"
29
28#ifdef DEBUG 30#ifdef DEBUG
29#define DBG(x...) printk(x) 31#define DBG(x...) printk(x)
30#else 32#else
diff --git a/arch/ppc64/kernel/maple_setup.c b/arch/powerpc/platforms/maple/setup.c
index a107ed69a355..7ece8983a105 100644
--- a/arch/ppc64/kernel/maple_setup.c
+++ b/arch/powerpc/platforms/maple/setup.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * arch/ppc64/kernel/maple_setup.c 2 * Maple (970 eval board) setup code
3 * 3 *
4 * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org), 4 * (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org),
5 * IBM Corp. 5 * IBM Corp.
@@ -62,19 +62,14 @@
62#include <asm/mpic.h> 62#include <asm/mpic.h>
63#include <asm/udbg.h> 63#include <asm/udbg.h>
64 64
65#include "maple.h"
66
65#ifdef DEBUG 67#ifdef DEBUG
66#define DBG(fmt...) udbg_printf(fmt) 68#define DBG(fmt...) udbg_printf(fmt)
67#else 69#else
68#define DBG(fmt...) 70#define DBG(fmt...)
69#endif 71#endif
70 72
71extern int maple_set_rtc_time(struct rtc_time *tm);
72extern void maple_get_rtc_time(struct rtc_time *tm);
73extern unsigned long maple_get_boot_time(void);
74extern void maple_calibrate_decr(void);
75extern void maple_pci_init(void);
76extern void maple_pcibios_fixup(void);
77extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
78extern void generic_find_legacy_serial_ports(u64 *physport, 73extern void generic_find_legacy_serial_ports(u64 *physport,
79 unsigned int *default_speed); 74 unsigned int *default_speed);
80 75
diff --git a/arch/ppc64/kernel/maple_time.c b/arch/powerpc/platforms/maple/time.c
index 445cb7470bf5..40fc07a8e606 100644
--- a/arch/ppc64/kernel/maple_time.c
+++ b/arch/powerpc/platforms/maple/time.c
@@ -36,6 +36,8 @@
36#include <asm/machdep.h> 36#include <asm/machdep.h>
37#include <asm/time.h> 37#include <asm/time.h>
38 38
39#include "maple.h"
40
39#ifdef DEBUG 41#ifdef DEBUG
40#define DBG(x...) printk(x) 42#define DBG(x...) printk(x)
41#else 43#else
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile
index 3cf7f3dab511..327c08ce4291 100644
--- a/arch/ppc64/kernel/Makefile
+++ b/arch/ppc64/kernel/Makefile
@@ -55,8 +55,7 @@ obj-$(CONFIG_HVCS) += hvcserver.o
55 55
56obj-$(CONFIG_PPC_PMAC) += udbg_scc.o 56obj-$(CONFIG_PPC_PMAC) += udbg_scc.o
57 57
58obj-$(CONFIG_PPC_MAPLE) += maple_setup.o maple_pci.o maple_time.o \ 58obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o
59 udbg_16550.o
60 59
61ifdef CONFIG_SMP 60ifdef CONFIG_SMP
62obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o 61obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o