Update of /cvsroot/linuxconsole/ruby/linux/arch/ppc/platforms
In directory usw-pr-cvs1:/tmp/cvs-serv10580/linux/arch/ppc/platforms
Modified Files:
chrp_setup.c prep_setup.c
Log Message:
Syned to 2.5.25
Index: chrp_setup.c
===================================================================
RCS file: /cvsroot/linuxconsole/ruby/linux/arch/ppc/platforms/chrp_setup.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- chrp_setup.c 18 Jun 2002 18:51:54 -0000 1.5
+++ chrp_setup.c 10 Jul 2002 18:08:02 -0000 1.6
@@ -371,7 +371,6 @@
int i;
unsigned long chrp_int_ack;
unsigned char init_senses[NR_IRQS - NUM_8259_INTERRUPTS];
- int nmi_irq = -1;
for (np = find_devices("pci"); np != NULL; np = np->next) {
unsigned int *addrp = (unsigned int *)
@@ -391,7 +390,7 @@
OpenPIC_InitSenses = init_senses;
OpenPIC_NumInitSenses = NR_IRQS - NUM_8259_INTERRUPTS;
- openpic_init(1, NUM_8259_INTERRUPTS, nmi_irq);
+ openpic_init(NUM_8259_INTERRUPTS);
for (i = 0; i < NUM_8259_INTERRUPTS; i++)
irq_desc[i].handler = &i8259_pic;
@@ -417,35 +416,6 @@
ppc_md.progress(" Have fun! ", 0x7777);
}
-/*
- * One of the main thing these mappings are needed for is so that
- * xmon can get to the serial port early on. We probably should
- * handle the machines with the mpc106 as well as the python (F50)
- * and the GG2 (longtrail). Actually we should look in the device
- * tree and do the right thing.
- */
-static void __init
-chrp_map_io(void)
-{
- char *name;
-
- /*
- * The code below tends to get removed, please don't take it out.
- * The F50 needs this mapping and it you take it out I'll track you
- * down and slap your hands. If it causes problems please email me.
- * -- Cort <co...@fs...>
- */
- name = get_property(find_path_device("/"), "name", NULL);
- if (name && strncmp(name, "IBM-70", 6) == 0
- && strstr(name, "-F50")) {
- io_block_mapping(0x80000000, 0x80000000, 0x10000000, _PAGE_IO);
- io_block_mapping(0x90000000, 0x90000000, 0x10000000, _PAGE_IO);
- return;
- } else {
- io_block_mapping(0xf8000000, 0xf8000000, 0x04000000, _PAGE_IO);
- }
-}
-
void __init
chrp_init(unsigned long r3, unsigned long r4, unsigned long r5,
unsigned long r6, unsigned long r7)
@@ -483,7 +453,6 @@
ppc_md.calibrate_decr = chrp_calibrate_decr;
ppc_md.find_end_of_memory = pmac_find_end_of_memory;
- ppc_md.setup_io_mappings = chrp_map_io;
if (rtas_data) {
struct device_node *rtas;
Index: prep_setup.c
===================================================================
RCS file: /cvsroot/linuxconsole/ruby/linux/arch/ppc/platforms/prep_setup.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- prep_setup.c 18 Jun 2002 18:51:54 -0000 1.5
+++ prep_setup.c 10 Jul 2002 18:08:02 -0000 1.6
@@ -681,7 +681,7 @@
int i;
if (OpenPIC_Addr != NULL)
- openpic_init(1, NUM_8259_INTERRUPTS, -1);
+ openpic_init(NUM_8259_INTERRUPTS);
for ( i = 0 ; i < NUM_8259_INTERRUPTS ; i++ )
irq_desc[i].handler = &i8259_pic;
i8259_init(MPC10X_MAPA_PCI_INTACK_ADDR);
|