diff options
Diffstat (limited to 'arch/ppc/kernel')
-rw-r--r-- | arch/ppc/kernel/Makefile | 21 | ||||
-rw-r--r-- | arch/ppc/kernel/setup.c | 8 |
2 files changed, 29 insertions, 0 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 | ||