1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#include <linux/init.h>
20#include <linux/of_platform.h>
21#include <linux/rtc.h>
22
23#include <asm/machdep.h>
24#include <asm/prom.h>
25#include <asm/udbg.h>
26#include <asm/time.h>
27#include <asm/uic.h>
28#include <asm/pci-bridge.h>
29#include <asm/ppc4xx.h>
30
31static __initdata struct of_device_id ebony_of_bus[] = {
32 { .compatible = "ibm,plb4", },
33 { .compatible = "ibm,opb", },
34 { .compatible = "ibm,ebc", },
35 {},
36};
37
38static int __init ebony_device_probe(void)
39{
40 of_platform_bus_probe(NULL, ebony_of_bus, NULL);
41 of_instantiate_rtc();
42
43 return 0;
44}
45machine_device_initcall(ebony, ebony_device_probe);
46
47
48
49
50static int __init ebony_probe(void)
51{
52 unsigned long root = of_get_flat_dt_root();
53
54 if (!of_flat_dt_is_compatible(root, "ibm,ebony"))
55 return 0;
56
57 pci_set_flags(PCI_REASSIGN_ALL_RSRC);
58
59 return 1;
60}
61
62define_machine(ebony) {
63 .name = "Ebony",
64 .probe = ebony_probe,
65 .progress = udbg_progress,
66 .init_IRQ = uic_init_tree,
67 .get_irq = uic_get_irq,
68 .restart = ppc4xx_reset_system,
69 .calibrate_decr = generic_calibrate_decr,
70};
71