aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/83xx/asp834x.c15
-rw-r--r--arch/powerpc/platforms/83xx/km83xx.c18
-rw-r--r--arch/powerpc/platforms/83xx/misc.c17
-rw-r--r--arch/powerpc/platforms/83xx/mpc830x_rdb.c13
-rw-r--r--arch/powerpc/platforms/83xx/mpc831x_rdb.c14
-rw-r--r--arch/powerpc/platforms/83xx/mpc832x_mds.c18
-rw-r--r--arch/powerpc/platforms/83xx/mpc832x_rdb.c18
-rw-r--r--arch/powerpc/platforms/83xx/mpc834x_itx.c3
-rw-r--r--arch/powerpc/platforms/83xx/mpc834x_mds.c15
-rw-r--r--arch/powerpc/platforms/83xx/mpc836x_mds.c18
-rw-r--r--arch/powerpc/platforms/83xx/mpc836x_rdk.c11
-rw-r--r--arch/powerpc/platforms/83xx/mpc837x_mds.c17
-rw-r--r--arch/powerpc/platforms/83xx/mpc837x_rdb.c18
-rw-r--r--arch/powerpc/platforms/83xx/mpc83xx.h1
-rw-r--r--arch/powerpc/platforms/83xx/sbc834x.c15
15 files changed, 31 insertions, 180 deletions
diff --git a/arch/powerpc/platforms/83xx/asp834x.c b/arch/powerpc/platforms/83xx/asp834x.c
index 90b6c063758b..464ea8e0292d 100644
--- a/arch/powerpc/platforms/83xx/asp834x.c
+++ b/arch/powerpc/platforms/83xx/asp834x.c
@@ -36,20 +36,7 @@ static void __init asp834x_setup_arch(void)
36 mpc834x_usb_cfg(); 36 mpc834x_usb_cfg();
37} 37}
38 38
39static struct __initdata of_device_id asp8347_ids[] = { 39machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices);
40 { .type = "soc", },
41 { .compatible = "soc", },
42 { .compatible = "simple-bus", },
43 { .compatible = "gianfar", },
44 {},
45};
46
47static int __init asp8347_declare_of_platform_devices(void)
48{
49 of_platform_bus_probe(NULL, asp8347_ids, NULL);
50 return 0;
51}
52machine_device_initcall(asp834x, asp8347_declare_of_platform_devices);
53 40
54/* 41/*
55 * Called very early, MMU is off, device-tree isn't unflattened 42 * Called very early, MMU is off, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/83xx/km83xx.c b/arch/powerpc/platforms/83xx/km83xx.c
index eae5913db03c..7ef635495170 100644
--- a/arch/powerpc/platforms/83xx/km83xx.c
+++ b/arch/powerpc/platforms/83xx/km83xx.c
@@ -122,23 +122,7 @@ static void __init mpc83xx_km_setup_arch(void)
122#endif /* CONFIG_QUICC_ENGINE */ 122#endif /* CONFIG_QUICC_ENGINE */
123} 123}
124 124
125static struct of_device_id kmpbec83xx_ids[] = { 125machine_device_initcall(mpc83xx_km, mpc83xx_declare_of_platform_devices);
126 { .type = "soc", },
127 { .compatible = "soc", },
128 { .compatible = "simple-bus", },
129 { .type = "qe", },
130 { .compatible = "fsl,qe", },
131 {},
132};
133
134static int __init kmeter_declare_of_platform_devices(void)
135{
136 /* Publish the QE devices */
137 of_platform_bus_probe(NULL, kmpbec83xx_ids, NULL);
138
139 return 0;
140}
141machine_device_initcall(mpc83xx_km, kmeter_declare_of_platform_devices);
142 126
143/* list of the supported boards */ 127/* list of the supported boards */
144static char *board[] __initdata = { 128static char *board[] __initdata = {
diff --git a/arch/powerpc/platforms/83xx/misc.c b/arch/powerpc/platforms/83xx/misc.c
index 4ac60cc3727b..ee4de779ac11 100644
--- a/arch/powerpc/platforms/83xx/misc.c
+++ b/arch/powerpc/platforms/83xx/misc.c
@@ -111,3 +111,20 @@ void __init mpc83xx_ipic_and_qe_init_IRQ(void)
111 mpc83xx_qe_init_IRQ(); 111 mpc83xx_qe_init_IRQ();
112} 112}
113#endif /* CONFIG_QUICC_ENGINE */ 113#endif /* CONFIG_QUICC_ENGINE */
114
115static struct of_device_id __initdata of_bus_ids[] = {
116 { .type = "soc", },
117 { .compatible = "soc", },
118 { .compatible = "simple-bus" },
119 { .compatible = "gianfar" },
120 { .compatible = "gpio-leds", },
121 { .type = "qe", },
122 { .compatible = "fsl,qe", },
123 {},
124};
125
126int __init mpc83xx_declare_of_platform_devices(void)
127{
128 of_platform_bus_probe(NULL, of_bus_ids, NULL);
129 return 0;
130}
diff --git a/arch/powerpc/platforms/83xx/mpc830x_rdb.c b/arch/powerpc/platforms/83xx/mpc830x_rdb.c
index b453c15d200a..ef595f1ef705 100644
--- a/arch/powerpc/platforms/83xx/mpc830x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc830x_rdb.c
@@ -56,18 +56,7 @@ static int __init mpc830x_rdb_probe(void)
56 return of_flat_dt_match(of_get_flat_dt_root(), board); 56 return of_flat_dt_match(of_get_flat_dt_root(), board);
57} 57}
58 58
59static struct of_device_id __initdata of_bus_ids[] = { 59machine_device_initcall(mpc830x_rdb, mpc83xx_declare_of_platform_devices);
60 { .compatible = "simple-bus" },
61 { .compatible = "gianfar" },
62 {},
63};
64
65static int __init declare_of_platform_devices(void)
66{
67 of_platform_bus_probe(NULL, of_bus_ids, NULL);
68 return 0;
69}
70machine_device_initcall(mpc830x_rdb, declare_of_platform_devices);
71 60
72define_machine(mpc830x_rdb) { 61define_machine(mpc830x_rdb) {
73 .name = "MPC830x RDB", 62 .name = "MPC830x RDB",
diff --git a/arch/powerpc/platforms/83xx/mpc831x_rdb.c b/arch/powerpc/platforms/83xx/mpc831x_rdb.c
index 386bde8b2b24..ce87406b0534 100644
--- a/arch/powerpc/platforms/83xx/mpc831x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc831x_rdb.c
@@ -58,19 +58,7 @@ static int __init mpc831x_rdb_probe(void)
58 return of_flat_dt_match(of_get_flat_dt_root(), board); 58 return of_flat_dt_match(of_get_flat_dt_root(), board);
59} 59}
60 60
61static struct of_device_id __initdata of_bus_ids[] = { 61machine_device_initcall(mpc831x_rdb, mpc83xx_declare_of_platform_devices);
62 { .compatible = "simple-bus" },
63 { .compatible = "gianfar" },
64 { .compatible = "gpio-leds", },
65 {},
66};
67
68static int __init declare_of_platform_devices(void)
69{
70 of_platform_bus_probe(NULL, of_bus_ids, NULL);
71 return 0;
72}
73machine_device_initcall(mpc831x_rdb, declare_of_platform_devices);
74 62
75define_machine(mpc831x_rdb) { 63define_machine(mpc831x_rdb) {
76 .name = "MPC831x RDB", 64 .name = "MPC831x RDB",
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c
index 39e0a92f4251..df80eccbbc6d 100644
--- a/arch/powerpc/platforms/83xx/mpc832x_mds.c
+++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c
@@ -101,23 +101,7 @@ static void __init mpc832x_sys_setup_arch(void)
101#endif /* CONFIG_QUICC_ENGINE */ 101#endif /* CONFIG_QUICC_ENGINE */
102} 102}
103 103
104static struct of_device_id mpc832x_ids[] = { 104machine_device_initcall(mpc832x_mds, mpc83xx_declare_of_platform_devices);
105 { .type = "soc", },
106 { .compatible = "soc", },
107 { .compatible = "simple-bus", },
108 { .type = "qe", },
109 { .compatible = "fsl,qe", },
110 {},
111};
112
113static int __init mpc832x_declare_of_platform_devices(void)
114{
115 /* Publish the QE devices */
116 of_platform_bus_probe(NULL, mpc832x_ids, NULL);
117
118 return 0;
119}
120machine_device_initcall(mpc832x_mds, mpc832x_declare_of_platform_devices);
121 105
122/* 106/*
123 * Called very early, MMU is off, device-tree isn't unflattened 107 * Called very early, MMU is off, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
index ebfecec958d7..e4c7c6424a8a 100644
--- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
@@ -218,23 +218,7 @@ static void __init mpc832x_rdb_setup_arch(void)
218#endif /* CONFIG_QUICC_ENGINE */ 218#endif /* CONFIG_QUICC_ENGINE */
219} 219}
220 220
221static struct of_device_id mpc832x_ids[] = { 221machine_device_initcall(mpc832x_rdb, mpc83xx_declare_of_platform_devices);
222 { .type = "soc", },
223 { .compatible = "soc", },
224 { .compatible = "simple-bus", },
225 { .type = "qe", },
226 { .compatible = "fsl,qe", },
227 {},
228};
229
230static int __init mpc832x_declare_of_platform_devices(void)
231{
232 /* Publish the QE devices */
233 of_platform_bus_probe(NULL, mpc832x_ids, NULL);
234
235 return 0;
236}
237machine_device_initcall(mpc832x_rdb, mpc832x_declare_of_platform_devices);
238 222
239/* 223/*
240 * Called very early, MMU is off, device-tree isn't unflattened 224 * Called very early, MMU is off, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c
index 509e070cf29a..87868c1c52f0 100644
--- a/arch/powerpc/platforms/83xx/mpc834x_itx.c
+++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c
@@ -41,13 +41,12 @@
41 41
42static struct of_device_id __initdata mpc834x_itx_ids[] = { 42static struct of_device_id __initdata mpc834x_itx_ids[] = {
43 { .compatible = "fsl,pq2pro-localbus", }, 43 { .compatible = "fsl,pq2pro-localbus", },
44 { .compatible = "simple-bus", },
45 { .compatible = "gianfar", },
46 {}, 44 {},
47}; 45};
48 46
49static int __init mpc834x_itx_declare_of_platform_devices(void) 47static int __init mpc834x_itx_declare_of_platform_devices(void)
50{ 48{
49 mpc83xx_declare_of_platform_devices();
51 return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); 50 return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL);
52} 51}
53machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); 52machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices);
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c
index 3807735a88d8..4be95550d0c3 100644
--- a/arch/powerpc/platforms/83xx/mpc834x_mds.c
+++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c
@@ -92,20 +92,7 @@ static void __init mpc834x_mds_setup_arch(void)
92 mpc834xemds_usb_cfg(); 92 mpc834xemds_usb_cfg();
93} 93}
94 94
95static struct of_device_id mpc834x_ids[] = { 95machine_device_initcall(mpc834x_mds, mpc83xx_declare_of_platform_devices);
96 { .type = "soc", },
97 { .compatible = "soc", },
98 { .compatible = "simple-bus", },
99 { .compatible = "gianfar", },
100 {},
101};
102
103static int __init mpc834x_declare_of_platform_devices(void)
104{
105 of_platform_bus_probe(NULL, mpc834x_ids, NULL);
106 return 0;
107}
108machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices);
109 96
110/* 97/*
111 * Called very early, MMU is off, device-tree isn't unflattened 98 * Called very early, MMU is off, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c
index afb3e45e1e97..3b202752ef5f 100644
--- a/arch/powerpc/platforms/83xx/mpc836x_mds.c
+++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c
@@ -144,23 +144,7 @@ static void __init mpc836x_mds_setup_arch(void)
144#endif /* CONFIG_QUICC_ENGINE */ 144#endif /* CONFIG_QUICC_ENGINE */
145} 145}
146 146
147static struct of_device_id mpc836x_ids[] = { 147machine_device_initcall(mpc836x_mds, mpc83xx_declare_of_platform_devices);
148 { .type = "soc", },
149 { .compatible = "soc", },
150 { .compatible = "simple-bus", },
151 { .type = "qe", },
152 { .compatible = "fsl,qe", },
153 {},
154};
155
156static int __init mpc836x_declare_of_platform_devices(void)
157{
158 /* Publish the QE devices */
159 of_platform_bus_probe(NULL, mpc836x_ids, NULL);
160
161 return 0;
162}
163machine_device_initcall(mpc836x_mds, mpc836x_declare_of_platform_devices);
164 148
165#ifdef CONFIG_QE_USB 149#ifdef CONFIG_QE_USB
166static int __init mpc836x_usb_cfg(void) 150static int __init mpc836x_usb_cfg(void)
diff --git a/arch/powerpc/platforms/83xx/mpc836x_rdk.c b/arch/powerpc/platforms/83xx/mpc836x_rdk.c
index cd8f0782a66b..fd6f730ff2f9 100644
--- a/arch/powerpc/platforms/83xx/mpc836x_rdk.c
+++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c
@@ -27,16 +27,7 @@
27 27
28#include "mpc83xx.h" 28#include "mpc83xx.h"
29 29
30static struct of_device_id __initdata mpc836x_rdk_ids[] = { 30machine_device_initcall(mpc836x_rdk, mpc83xx_declare_of_platform_devices);
31 { .compatible = "simple-bus", },
32 {},
33};
34
35static int __init mpc836x_rdk_declare_of_platform_devices(void)
36{
37 return of_platform_bus_probe(NULL, mpc836x_rdk_ids, NULL);
38}
39machine_device_initcall(mpc836x_rdk, mpc836x_rdk_declare_of_platform_devices);
40 31
41static void __init mpc836x_rdk_setup_arch(void) 32static void __init mpc836x_rdk_setup_arch(void)
42{ 33{
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c
index 3be7f3ac1573..74631832e1a3 100644
--- a/arch/powerpc/platforms/83xx/mpc837x_mds.c
+++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c
@@ -95,22 +95,7 @@ static void __init mpc837x_mds_setup_arch(void)
95 mpc837xmds_usb_cfg(); 95 mpc837xmds_usb_cfg();
96} 96}
97 97
98static struct of_device_id mpc837x_ids[] = { 98machine_device_initcall(mpc837x_mds, mpc83xx_declare_of_platform_devices);
99 { .type = "soc", },
100 { .compatible = "soc", },
101 { .compatible = "simple-bus", },
102 { .compatible = "gianfar", },
103 {},
104};
105
106static int __init mpc837x_declare_of_platform_devices(void)
107{
108 /* Publish platform_device */
109 of_platform_bus_probe(NULL, mpc837x_ids, NULL);
110
111 return 0;
112}
113machine_device_initcall(mpc837x_mds, mpc837x_declare_of_platform_devices);
114 99
115/* 100/*
116 * Called very early, MMU is off, device-tree isn't unflattened 101 * Called very early, MMU is off, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/83xx/mpc837x_rdb.c b/arch/powerpc/platforms/83xx/mpc837x_rdb.c
index eebfd81c7519..a4a5336d1143 100644
--- a/arch/powerpc/platforms/83xx/mpc837x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc837x_rdb.c
@@ -67,23 +67,7 @@ static void __init mpc837x_rdb_setup_arch(void)
67 mpc837x_rdb_sd_cfg(); 67 mpc837x_rdb_sd_cfg();
68} 68}
69 69
70static struct of_device_id mpc837x_ids[] = { 70machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices);
71 { .type = "soc", },
72 { .compatible = "soc", },
73 { .compatible = "simple-bus", },
74 { .compatible = "gianfar", },
75 { .compatible = "gpio-leds", },
76 {},
77};
78
79static int __init mpc837x_declare_of_platform_devices(void)
80{
81 /* Publish platform_device */
82 of_platform_bus_probe(NULL, mpc837x_ids, NULL);
83
84 return 0;
85}
86machine_device_initcall(mpc837x_rdb, mpc837x_declare_of_platform_devices);
87 71
88static const char *board[] __initdata = { 72static const char *board[] __initdata = {
89 "fsl,mpc8377rdb", 73 "fsl,mpc8377rdb",
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h
index f07751ab9b11..a54f6baaae70 100644
--- a/arch/powerpc/platforms/83xx/mpc83xx.h
+++ b/arch/powerpc/platforms/83xx/mpc83xx.h
@@ -79,5 +79,6 @@ static inline void __init mpc83xx_qe_init_IRQ(void) {}
79#define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ 79#define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ
80#endif /* CONFIG_QUICC_ENGINE */ 80#endif /* CONFIG_QUICC_ENGINE */
81 81
82extern int mpc83xx_declare_of_platform_devices(void);
82 83
83#endif /* __MPC83XX_H__ */ 84#endif /* __MPC83XX_H__ */
diff --git a/arch/powerpc/platforms/83xx/sbc834x.c b/arch/powerpc/platforms/83xx/sbc834x.c
index cdce953c575b..22faaa1c1073 100644
--- a/arch/powerpc/platforms/83xx/sbc834x.c
+++ b/arch/powerpc/platforms/83xx/sbc834x.c
@@ -62,20 +62,7 @@ static void __init sbc834x_setup_arch(void)
62 62
63} 63}
64 64
65static struct __initdata of_device_id sbc834x_ids[] = { 65machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices);
66 { .type = "soc", },
67 { .compatible = "soc", },
68 { .compatible = "simple-bus", },
69 { .compatible = "gianfar", },
70 {},
71};
72
73static int __init sbc834x_declare_of_platform_devices(void)
74{
75 of_platform_bus_probe(NULL, sbc834x_ids, NULL);
76 return 0;
77}
78machine_device_initcall(sbc834x, sbc834x_declare_of_platform_devices);
79 66
80/* 67/*
81 * Called very early, MMU is off, device-tree isn't unflattened 68 * Called very early, MMU is off, device-tree isn't unflattened