diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-15 01:30:44 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-15 01:30:44 -0500 |
commit | a7fdd90bc43e3e9cb08bc1b13650024d419b89e5 (patch) | |
tree | 5c99a41b9d157186668ed63c001f72a09965143b /arch/ppc/syslib | |
parent | e8625d463560198cff7cb3eb22886c47d728d501 (diff) |
[PATCH] ppc: Remove powermac support from ARCH=ppc
This makes it possible to build kernels for PReP and/or CHRP
with ARCH=ppc by removing the (non-building) powermac support.
It's now also possible to select PReP and CHRP independently.
Powermac users should now build with ARCH=powerpc instead of
ARCH=ppc. (This does mean that it is no longer possible to
build a 32-bit kernel for a G5.)
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/Makefile | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/prom.c | 21 |
2 files changed, 2 insertions, 21 deletions
diff --git a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile index 84ef03018d0e..159dcd92a6d1 100644 --- a/arch/ppc/syslib/Makefile +++ b/arch/ppc/syslib/Makefile | |||
@@ -39,8 +39,6 @@ obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o $(wdt-mpc8xx-y) \ | |||
39 | ppc_sys.o mpc8xx_devices.o mpc8xx_sys.o | 39 | ppc_sys.o mpc8xx_devices.o mpc8xx_sys.o |
40 | obj-$(CONFIG_PCI_QSPAN) += qspan_pci.o | 40 | obj-$(CONFIG_PCI_QSPAN) += qspan_pci.o |
41 | obj-$(CONFIG_PPC_OF) += prom_init.o prom.o | 41 | obj-$(CONFIG_PPC_OF) += prom_init.o prom.o |
42 | obj-$(CONFIG_PPC_PMAC) += open_pic.o | ||
43 | obj-$(CONFIG_POWER4) += open_pic2.o | ||
44 | obj-$(CONFIG_PPC_CHRP) += open_pic.o | 42 | obj-$(CONFIG_PPC_CHRP) += open_pic.o |
45 | obj-$(CONFIG_PPC_PREP) += open_pic.o todc_time.o | 43 | obj-$(CONFIG_PPC_PREP) += open_pic.o todc_time.o |
46 | obj-$(CONFIG_BAMBOO) += pci_auto.o todc_time.o | 44 | obj-$(CONFIG_BAMBOO) += pci_auto.o todc_time.o |
diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index af4deace49e0..482f837fd373 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c | |||
@@ -70,8 +70,6 @@ int use_of_interrupt_tree; | |||
70 | struct device_node *dflt_interrupt_controller; | 70 | struct device_node *dflt_interrupt_controller; |
71 | int num_interrupt_controllers; | 71 | int num_interrupt_controllers; |
72 | 72 | ||
73 | int pmac_newworld; | ||
74 | |||
75 | extern unsigned int rtas_entry; /* physical pointer */ | 73 | extern unsigned int rtas_entry; /* physical pointer */ |
76 | 74 | ||
77 | extern struct device_node *allnodes; | 75 | extern struct device_node *allnodes; |
@@ -123,22 +121,13 @@ finish_device_tree(void) | |||
123 | unsigned long mem = (unsigned long) klimit; | 121 | unsigned long mem = (unsigned long) klimit; |
124 | struct device_node *np; | 122 | struct device_node *np; |
125 | 123 | ||
126 | /* All newworld pmac machines and CHRPs now use the interrupt tree */ | 124 | /* All CHRPs now use the interrupt tree */ |
127 | for (np = allnodes; np != NULL; np = np->allnext) { | 125 | for (np = allnodes; np != NULL; np = np->allnext) { |
128 | if (get_property(np, "interrupt-parent", NULL)) { | 126 | if (get_property(np, "interrupt-parent", NULL)) { |
129 | use_of_interrupt_tree = 1; | 127 | use_of_interrupt_tree = 1; |
130 | break; | 128 | break; |
131 | } | 129 | } |
132 | } | 130 | } |
133 | if (_machine == _MACH_Pmac && use_of_interrupt_tree) | ||
134 | pmac_newworld = 1; | ||
135 | |||
136 | #ifdef CONFIG_BOOTX_TEXT | ||
137 | if (boot_infos && pmac_newworld) { | ||
138 | prom_print("WARNING ! BootX/miBoot booting is not supported on this machine\n"); | ||
139 | prom_print(" You should use an Open Firmware bootloader\n"); | ||
140 | } | ||
141 | #endif /* CONFIG_BOOTX_TEXT */ | ||
142 | 131 | ||
143 | if (use_of_interrupt_tree) { | 132 | if (use_of_interrupt_tree) { |
144 | /* | 133 | /* |
@@ -434,16 +423,10 @@ finish_node_interrupts(struct device_node *np, unsigned long mem_start) | |||
434 | * those machines, we want to offset interrupts from the | 423 | * those machines, we want to offset interrupts from the |
435 | * second openpic by 128 -- BenH | 424 | * second openpic by 128 -- BenH |
436 | */ | 425 | */ |
437 | if (_machine != _MACH_Pmac && num_interrupt_controllers > 1 | 426 | if (num_interrupt_controllers > 1 |
438 | && ic != NULL | 427 | && ic != NULL |
439 | && get_property(ic, "interrupt-parent", NULL) == NULL) | 428 | && get_property(ic, "interrupt-parent", NULL) == NULL) |
440 | offset = 16; | 429 | offset = 16; |
441 | else if (_machine == _MACH_Pmac && num_interrupt_controllers > 1 | ||
442 | && ic != NULL && ic->parent != NULL) { | ||
443 | char *name = get_property(ic->parent, "name", NULL); | ||
444 | if (name && !strcmp(name, "u3")) | ||
445 | offset = 128; | ||
446 | } | ||
447 | 430 | ||
448 | np->intrs[i].line = irq[0] + offset; | 431 | np->intrs[i].line = irq[0] + offset; |
449 | if (n > 1) | 432 | if (n > 1) |