1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28#undef DEBUG
29#include <asm/time.h>
30#include <asm/prom.h>
31#include <asm/machdep.h>
32#include <asm/mpc52xx.h>
33
34
35
36
37static void __init mpc5200_simple_setup_arch(void)
38{
39 if (ppc_md.progress)
40 ppc_md.progress("mpc5200_simple_setup_arch()", 0);
41
42
43 mpc52xx_map_common_devices();
44
45
46 mpc5200_setup_xlb_arbiter();
47
48 mpc52xx_setup_pci();
49}
50
51
52static char *board[] __initdata = {
53 "intercontrol,digsy-mtc",
54 "manroland,mucmc52",
55 "manroland,uc101",
56 "phytec,pcm030",
57 "phytec,pcm032",
58 "promess,motionpro",
59 "schindler,cm5200",
60 "tqc,tqm5200",
61 NULL
62};
63
64
65
66
67static int __init mpc5200_simple_probe(void)
68{
69 unsigned long node = of_get_flat_dt_root();
70 int i = 0;
71
72 while (board[i]) {
73 if (of_flat_dt_is_compatible(node, board[i]))
74 break;
75 i++;
76 }
77
78 return (board[i] != NULL);
79}
80
81define_machine(mpc5200_simple_platform) {
82 .name = "mpc5200-simple-platform",
83 .probe = mpc5200_simple_probe,
84 .setup_arch = mpc5200_simple_setup_arch,
85 .init = mpc52xx_declare_of_platform_devices,
86 .init_IRQ = mpc52xx_init_irq,
87 .get_irq = mpc52xx_get_irq,
88 .restart = mpc52xx_restart,
89 .calibrate_decr = generic_calibrate_decr,
90};
91