diff options
author | Paul Mackerras <paulus@samba.org> | 2005-09-26 02:04:21 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-26 02:04:21 -0400 |
commit | 14cf11af6cf608eb8c23e989ddb17a715ddce109 (patch) | |
tree | 271a97ce73e265f39c569cb159c195c5b4bb3f8c /arch/ppc | |
parent | e5baa396af7560382d2cf3f0871d616b61fc284c (diff) |
powerpc: Merge enough to start building in arch/powerpc.
This creates the directory structure under arch/powerpc and a bunch
of Kconfig files. It does a first-cut merge of arch/powerpc/mm,
arch/powerpc/lib and arch/powerpc/platforms/powermac. This is enough
to build a 32-bit powermac kernel with ARCH=powerpc.
For now we are getting some unmerged files from arch/ppc/kernel and
arch/ppc/syslib, or arch/ppc64/kernel. This makes some minor changes
to files in those directories and files outside arch/powerpc.
The boot directory is still not merged. That's going to be interesting.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/kernel/Makefile | 21 | ||||
-rw-r--r-- | arch/ppc/kernel/setup.c | 8 | ||||
-rw-r--r-- | arch/ppc/platforms/prep_setup.c | 3 | ||||
-rw-r--r-- | arch/ppc/syslib/Makefile | 14 |
4 files changed, 43 insertions, 3 deletions
diff --git a/arch/ppc/kernel/Makefile b/arch/ppc/kernel/Makefile index ce166e3de53b..0649540bc7d9 100644 --- a/arch/ppc/kernel/Makefile +++ b/arch/ppc/kernel/Makefile | |||
@@ -1,6 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | ifneq ($(CONFIG_PPC_MERGE),y) | ||
4 | 5 | ||
5 | extra-$(CONFIG_PPC_STD_MMU) := head.o | 6 | extra-$(CONFIG_PPC_STD_MMU) := head.o |
6 | extra-$(CONFIG_40x) := head_4xx.o | 7 | extra-$(CONFIG_40x) := head_4xx.o |
@@ -37,3 +38,23 @@ endif | |||
37 | 38 | ||
38 | # These are here while we do the architecture merge | 39 | # These are here while we do the architecture merge |
39 | vecemu-y += ../../powerpc/kernel/vecemu.o | 40 | vecemu-y += ../../powerpc/kernel/vecemu.o |
41 | |||
42 | else | ||
43 | obj-y := entry.o irq.o idle.o time.o misc.o \ | ||
44 | signal.o ptrace.o align.o \ | ||
45 | syscalls.o setup.o \ | ||
46 | cputable.o perfmon.o | ||
47 | obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o | ||
48 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o | ||
49 | obj-$(CONFIG_POWER4) += cpu_setup_power4.o | ||
50 | obj-$(CONFIG_MODULES) += module.o ppc_ksyms.o | ||
51 | obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o | ||
52 | obj-$(CONFIG_PCI) += pci.o | ||
53 | obj-$(CONFIG_KGDB) += ppc-stub.o | ||
54 | obj-$(CONFIG_SMP) += smp.o smp-tbsync.o | ||
55 | obj-$(CONFIG_TAU) += temp.o | ||
56 | ifndef CONFIG_E200 | ||
57 | obj-$(CONFIG_FSL_BOOKE) += perfmon_fsl_booke.o | ||
58 | endif | ||
59 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o | ||
60 | endif | ||
diff --git a/arch/ppc/kernel/setup.c b/arch/ppc/kernel/setup.c index 77fecfbabe88..1b891b806f3d 100644 --- a/arch/ppc/kernel/setup.c +++ b/arch/ppc/kernel/setup.c | |||
@@ -83,6 +83,8 @@ extern void pmac_init(unsigned long r3, unsigned long r4, | |||
83 | unsigned long r5, unsigned long r6, unsigned long r7); | 83 | unsigned long r5, unsigned long r6, unsigned long r7); |
84 | extern void chrp_init(unsigned long r3, unsigned long r4, | 84 | extern void chrp_init(unsigned long r3, unsigned long r4, |
85 | unsigned long r5, unsigned long r6, unsigned long r7); | 85 | unsigned long r5, unsigned long r6, unsigned long r7); |
86 | |||
87 | dev_t boot_dev; | ||
86 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | 88 | #endif /* CONFIG_PPC_MULTIPLATFORM */ |
87 | 89 | ||
88 | #ifdef CONFIG_MAGIC_SYSRQ | 90 | #ifdef CONFIG_MAGIC_SYSRQ |
@@ -405,11 +407,13 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
405 | _machine = _MACH_prep; | 407 | _machine = _MACH_prep; |
406 | } | 408 | } |
407 | 409 | ||
410 | #ifdef CONFIG_PPC_PREP | ||
408 | /* not much more to do here, if prep */ | 411 | /* not much more to do here, if prep */ |
409 | if (_machine == _MACH_prep) { | 412 | if (_machine == _MACH_prep) { |
410 | prep_init(r3, r4, r5, r6, r7); | 413 | prep_init(r3, r4, r5, r6, r7); |
411 | return; | 414 | return; |
412 | } | 415 | } |
416 | #endif | ||
413 | 417 | ||
414 | /* prom_init has already been called from __start */ | 418 | /* prom_init has already been called from __start */ |
415 | if (boot_infos) | 419 | if (boot_infos) |
@@ -480,12 +484,16 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
480 | #endif /* CONFIG_ADB */ | 484 | #endif /* CONFIG_ADB */ |
481 | 485 | ||
482 | switch (_machine) { | 486 | switch (_machine) { |
487 | #ifdef CONFIG_PPC_PMAC | ||
483 | case _MACH_Pmac: | 488 | case _MACH_Pmac: |
484 | pmac_init(r3, r4, r5, r6, r7); | 489 | pmac_init(r3, r4, r5, r6, r7); |
485 | break; | 490 | break; |
491 | #endif | ||
492 | #ifdef CONFIG_PPC_CHRP | ||
486 | case _MACH_chrp: | 493 | case _MACH_chrp: |
487 | chrp_init(r3, r4, r5, r6, r7); | 494 | chrp_init(r3, r4, r5, r6, r7); |
488 | break; | 495 | break; |
496 | #endif | ||
489 | } | 497 | } |
490 | } | 498 | } |
491 | 499 | ||
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c index fccafbcd4b58..8bc734fe6682 100644 --- a/arch/ppc/platforms/prep_setup.c +++ b/arch/ppc/platforms/prep_setup.c | |||
@@ -89,9 +89,6 @@ extern void prep_tiger1_setup_pci(char *irq_edge_mask_lo, char *irq_edge_mask_hi | |||
89 | #define cached_21 (((char *)(ppc_cached_irq_mask))[3]) | 89 | #define cached_21 (((char *)(ppc_cached_irq_mask))[3]) |
90 | #define cached_A1 (((char *)(ppc_cached_irq_mask))[2]) | 90 | #define cached_A1 (((char *)(ppc_cached_irq_mask))[2]) |
91 | 91 | ||
92 | /* for the mac fs */ | ||
93 | dev_t boot_dev; | ||
94 | |||
95 | #ifdef CONFIG_SOUND_CS4232 | 92 | #ifdef CONFIG_SOUND_CS4232 |
96 | long ppc_cs4232_dma, ppc_cs4232_dma2; | 93 | long ppc_cs4232_dma, ppc_cs4232_dma2; |
97 | #endif | 94 | #endif |
diff --git a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile index b8d08f33f7ee..1b0a84931afc 100644 --- a/arch/ppc/syslib/Makefile +++ b/arch/ppc/syslib/Makefile | |||
@@ -5,6 +5,7 @@ | |||
5 | CFLAGS_prom_init.o += -fPIC | 5 | CFLAGS_prom_init.o += -fPIC |
6 | CFLAGS_btext.o += -fPIC | 6 | CFLAGS_btext.o += -fPIC |
7 | 7 | ||
8 | ifneq ($(CONFIG_PPC_MERGE),y) | ||
8 | wdt-mpc8xx-$(CONFIG_8xx_WDT) += m8xx_wdt.o | 9 | wdt-mpc8xx-$(CONFIG_8xx_WDT) += m8xx_wdt.o |
9 | 10 | ||
10 | obj-$(CONFIG_PPCBUG_NVRAM) += prep_nvram.o | 11 | obj-$(CONFIG_PPCBUG_NVRAM) += prep_nvram.o |
@@ -109,3 +110,16 @@ obj-$(CONFIG_PPC_MPC52xx) += mpc52xx_setup.o mpc52xx_pic.o \ | |||
109 | ifeq ($(CONFIG_PPC_MPC52xx),y) | 110 | ifeq ($(CONFIG_PPC_MPC52xx),y) |
110 | obj-$(CONFIG_PCI) += mpc52xx_pci.o | 111 | obj-$(CONFIG_PCI) += mpc52xx_pci.o |
111 | endif | 112 | endif |
113 | |||
114 | else | ||
115 | # Stuff still needed by the merged powerpc sources | ||
116 | |||
117 | obj-$(CONFIG_PPCBUG_NVRAM) += prep_nvram.o | ||
118 | obj-$(CONFIG_PPC_OF) += prom_init.o prom.o of_device.o | ||
119 | obj-$(CONFIG_PPC_PMAC) += indirect_pci.o | ||
120 | obj-$(CONFIG_PPC_CHRP) += indirect_pci.o i8259.o | ||
121 | obj-$(CONFIG_PPC_PREP) += indirect_pci.o i8259.o todc_time.o | ||
122 | obj-$(CONFIG_BOOTX_TEXT) += btext.o | ||
123 | obj-$(CONFIG_MPC10X_BRIDGE) += mpc10x_common.o indirect_pci.o ppc_sys.o | ||
124 | |||
125 | endif | ||