This source file includes following definitions.
- ppc44x_device_probe
- ppc44x_probe
- define_machine
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <asm/machdep.h>
14 #include <asm/pci-bridge.h>
15 #include <asm/ppc4xx.h>
16 #include <asm/prom.h>
17 #include <asm/time.h>
18 #include <asm/udbg.h>
19 #include <asm/uic.h>
20
21 #include <linux/init.h>
22 #include <linux/of_platform.h>
23
24 static const struct of_device_id ppc44x_of_bus[] __initconst = {
25 { .compatible = "ibm,plb4", },
26 { .compatible = "ibm,opb", },
27 { .compatible = "ibm,ebc", },
28 { .compatible = "simple-bus", },
29 {},
30 };
31
32 static int __init ppc44x_device_probe(void)
33 {
34 of_platform_bus_probe(NULL, ppc44x_of_bus, NULL);
35
36 return 0;
37 }
38 machine_device_initcall(ppc44x_simple, ppc44x_device_probe);
39
40
41
42
43
44
45
46
47
48
49 static char *board[] __initdata = {
50 "amcc,arches",
51 "amcc,bamboo",
52 "apm,bluestone",
53 "amcc,glacier",
54 "ibm,ebony",
55 "amcc,eiger",
56 "amcc,katmai",
57 "amcc,rainier",
58 "amcc,redwood",
59 "amcc,sequoia",
60 "amcc,taishan",
61 "amcc,yosemite",
62 "mosaixtech,icon"
63 };
64
65 static int __init ppc44x_probe(void)
66 {
67 int i = 0;
68
69 for (i = 0; i < ARRAY_SIZE(board); i++) {
70 if (of_machine_is_compatible(board[i])) {
71 pci_set_flags(PCI_REASSIGN_ALL_RSRC);
72 return 1;
73 }
74 }
75
76 return 0;
77 }
78
79 define_machine(ppc44x_simple) {
80 .name = "PowerPC 44x Platform",
81 .probe = ppc44x_probe,
82 .progress = udbg_progress,
83 .init_IRQ = uic_init_tree,
84 .get_irq = uic_get_irq,
85 .restart = ppc4xx_reset_system,
86 .calibrate_decr = generic_calibrate_decr,
87 };