diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/powerpc/platforms/chrp/chrp.h | 1 | ||||
| -rw-r--r-- | arch/powerpc/platforms/chrp/pci.c | 6 | ||||
| -rw-r--r-- | arch/powerpc/platforms/chrp/setup.c | 44 |
3 files changed, 25 insertions, 26 deletions
diff --git a/arch/powerpc/platforms/chrp/chrp.h b/arch/powerpc/platforms/chrp/chrp.h index 63f0aee4c158..996c28744e96 100644 --- a/arch/powerpc/platforms/chrp/chrp.h +++ b/arch/powerpc/platforms/chrp/chrp.h | |||
| @@ -9,3 +9,4 @@ extern long chrp_time_init(void); | |||
| 9 | 9 | ||
| 10 | extern void chrp_find_bridges(void); | 10 | extern void chrp_find_bridges(void); |
| 11 | extern void chrp_event_scan(unsigned long); | 11 | extern void chrp_event_scan(unsigned long); |
| 12 | extern void chrp_pcibios_fixup(void); | ||
diff --git a/arch/powerpc/platforms/chrp/pci.c b/arch/powerpc/platforms/chrp/pci.c index 8ef279ad36ad..ac224876ce59 100644 --- a/arch/powerpc/platforms/chrp/pci.c +++ b/arch/powerpc/platforms/chrp/pci.c | |||
| @@ -23,6 +23,8 @@ | |||
| 23 | #include <asm/grackle.h> | 23 | #include <asm/grackle.h> |
| 24 | #include <asm/rtas.h> | 24 | #include <asm/rtas.h> |
| 25 | 25 | ||
| 26 | #include "chrp.h" | ||
| 27 | |||
| 26 | /* LongTrail */ | 28 | /* LongTrail */ |
| 27 | void __iomem *gg2_pci_config_base; | 29 | void __iomem *gg2_pci_config_base; |
| 28 | 30 | ||
| @@ -314,6 +316,6 @@ chrp_find_bridges(void) | |||
| 314 | } | 316 | } |
| 315 | 317 | ||
| 316 | /* Do not fixup interrupts from OF tree on pegasos */ | 318 | /* Do not fixup interrupts from OF tree on pegasos */ |
| 317 | if (is_pegasos == 0) | 319 | if (is_pegasos) |
| 318 | ppc_md.pcibios_fixup = chrp_pcibios_fixup; | 320 | ppc_md.pcibios_fixup = NULL; |
| 319 | } | 321 | } |
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index 23a201718704..18d89f38796b 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c | |||
| @@ -440,8 +440,6 @@ void __init chrp_init_IRQ(void) | |||
| 440 | 440 | ||
| 441 | if (_chrp_type == _CHRP_Pegasos) | 441 | if (_chrp_type == _CHRP_Pegasos) |
| 442 | ppc_md.get_irq = i8259_irq; | 442 | ppc_md.get_irq = i8259_irq; |
| 443 | else | ||
| 444 | ppc_md.get_irq = mpic_get_irq; | ||
| 445 | 443 | ||
| 446 | #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(XMON) | 444 | #if defined(CONFIG_VT) && defined(CONFIG_INPUT_ADBHID) && defined(XMON) |
| 447 | /* see if there is a keyboard in the device tree | 445 | /* see if there is a keyboard in the device tree |
| @@ -528,26 +526,24 @@ static int __init chrp_probe(void) | |||
| 528 | /* Assume we have an 8259... */ | 526 | /* Assume we have an 8259... */ |
| 529 | __irq_offset_value = NUM_ISA_INTERRUPTS; | 527 | __irq_offset_value = NUM_ISA_INTERRUPTS; |
| 530 | 528 | ||
| 531 | ppc_md.setup_arch = chrp_setup_arch; | 529 | return 1; |
| 532 | ppc_md.show_cpuinfo = chrp_show_cpuinfo; | ||
| 533 | |||
| 534 | ppc_md.init_IRQ = chrp_init_IRQ; | ||
| 535 | ppc_md.init = chrp_init2; | ||
| 536 | |||
| 537 | ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; | ||
| 538 | |||
| 539 | ppc_md.restart = rtas_restart; | ||
| 540 | ppc_md.power_off = rtas_power_off; | ||
| 541 | ppc_md.halt = rtas_halt; | ||
| 542 | |||
| 543 | ppc_md.time_init = chrp_time_init; | ||
| 544 | ppc_md.calibrate_decr = generic_calibrate_decr; | ||
| 545 | |||
| 546 | /* this may get overridden with rtas routines later... */ | ||
| 547 | ppc_md.set_rtc_time = chrp_set_rtc_time; | ||
| 548 | ppc_md.get_rtc_time = chrp_get_rtc_time; | ||
| 549 | |||
| 550 | #ifdef CONFIG_SMP | ||
| 551 | smp_ops = &chrp_smp_ops; | ||
| 552 | #endif /* CONFIG_SMP */ | ||
| 553 | } | 530 | } |
| 531 | |||
| 532 | define_machine(chrp) { | ||
| 533 | .name = "CHRP", | ||
| 534 | .probe = chrp_probe, | ||
| 535 | .setup_arch = chrp_setup_arch, | ||
| 536 | .init = chrp_init2, | ||
| 537 | .show_cpuinfo = chrp_show_cpuinfo, | ||
| 538 | .init_IRQ = chrp_init_IRQ, | ||
| 539 | .get_irq = mpic_get_irq, | ||
| 540 | .pcibios_fixup = chrp_pcibios_fixup, | ||
| 541 | .restart = rtas_restart, | ||
| 542 | .power_off = rtas_power_off, | ||
| 543 | .halt = rtas_halt, | ||
| 544 | .time_init = chrp_time_init, | ||
| 545 | .set_rtc_time = chrp_set_rtc_time, | ||
| 546 | .get_rtc_time = chrp_get_rtc_time, | ||
| 547 | .calibrate_decr = generic_calibrate_decr, | ||
| 548 | .phys_mem_access_prot = pci_phys_mem_access_prot, | ||
| 549 | }; | ||
