diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-01-24 10:39:59 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 09:32:55 -0500 |
commit | a2dd70a11d4c9cb8a4e4bb41f53a9b430e08559b (patch) | |
tree | 0ecb6b3f6ed79c06db25299450a7ea1ef216ed5a /arch/powerpc/platforms | |
parent | f67be814ff8e862422739cb424ce8c4e6c142c28 (diff) |
[POWERPC] QE: get rid of most device_types and model
Now we're searching for "fsl,qe", "fsl,qe-muram", "fsl,qe-muram-data"
and "fsl,qe-ic".
Unfortunately it's still impossible to remove device_type = "qe"
from the existing device trees because older u-boots are looking for it.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_mds.c | 11 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_mds.c | 11 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_mds.c | 32 |
4 files changed, 40 insertions, 25 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c index dbdd4adef645..6dbc6eabcb02 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c | |||
@@ -105,6 +105,7 @@ static struct of_device_id mpc832x_ids[] = { | |||
105 | { .type = "soc", }, | 105 | { .type = "soc", }, |
106 | { .compatible = "soc", }, | 106 | { .compatible = "soc", }, |
107 | { .type = "qe", }, | 107 | { .type = "qe", }, |
108 | { .compatible = "fsl,qe", }, | ||
108 | {}, | 109 | {}, |
109 | }; | 110 | }; |
110 | 111 | ||
@@ -134,10 +135,12 @@ static void __init mpc832x_sys_init_IRQ(void) | |||
134 | of_node_put(np); | 135 | of_node_put(np); |
135 | 136 | ||
136 | #ifdef CONFIG_QUICC_ENGINE | 137 | #ifdef CONFIG_QUICC_ENGINE |
137 | np = of_find_node_by_type(NULL, "qeic"); | 138 | np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); |
138 | if (!np) | 139 | if (!np) { |
139 | return; | 140 | np = of_find_node_by_type(NULL, "qeic"); |
140 | 141 | if (!np) | |
142 | return; | ||
143 | } | ||
141 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); | 144 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); |
142 | of_node_put(np); | 145 | of_node_put(np); |
143 | #endif /* CONFIG_QUICC_ENGINE */ | 146 | #endif /* CONFIG_QUICC_ENGINE */ |
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index 5fddd2285abb..9f0fd88b2b1f 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -115,6 +115,7 @@ static struct of_device_id mpc832x_ids[] = { | |||
115 | { .type = "soc", }, | 115 | { .type = "soc", }, |
116 | { .compatible = "soc", }, | 116 | { .compatible = "soc", }, |
117 | { .type = "qe", }, | 117 | { .type = "qe", }, |
118 | { .compatible = "fsl,qe", }, | ||
118 | {}, | 119 | {}, |
119 | }; | 120 | }; |
120 | 121 | ||
@@ -145,10 +146,12 @@ void __init mpc832x_rdb_init_IRQ(void) | |||
145 | of_node_put(np); | 146 | of_node_put(np); |
146 | 147 | ||
147 | #ifdef CONFIG_QUICC_ENGINE | 148 | #ifdef CONFIG_QUICC_ENGINE |
148 | np = of_find_node_by_type(NULL, "qeic"); | 149 | np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); |
149 | if (!np) | 150 | if (!np) { |
150 | return; | 151 | np = of_find_node_by_type(NULL, "qeic"); |
151 | 152 | if (!np) | |
153 | return; | ||
154 | } | ||
152 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); | 155 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); |
153 | of_node_put(np); | 156 | of_node_put(np); |
154 | #endif /* CONFIG_QUICC_ENGINE */ | 157 | #endif /* CONFIG_QUICC_ENGINE */ |
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index db491ec006e0..c2e5de60c055 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -136,6 +136,7 @@ static struct of_device_id mpc836x_ids[] = { | |||
136 | { .type = "soc", }, | 136 | { .type = "soc", }, |
137 | { .compatible = "soc", }, | 137 | { .compatible = "soc", }, |
138 | { .type = "qe", }, | 138 | { .type = "qe", }, |
139 | { .compatible = "fsl,qe", }, | ||
139 | {}, | 140 | {}, |
140 | }; | 141 | }; |
141 | 142 | ||
@@ -165,10 +166,12 @@ static void __init mpc836x_mds_init_IRQ(void) | |||
165 | of_node_put(np); | 166 | of_node_put(np); |
166 | 167 | ||
167 | #ifdef CONFIG_QUICC_ENGINE | 168 | #ifdef CONFIG_QUICC_ENGINE |
168 | np = of_find_node_by_type(NULL, "qeic"); | 169 | np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); |
169 | if (!np) | 170 | if (!np) { |
170 | return; | 171 | np = of_find_node_by_type(NULL, "qeic"); |
171 | 172 | if (!np) | |
173 | return; | ||
174 | } | ||
172 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); | 175 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); |
173 | of_node_put(np); | 176 | of_node_put(np); |
174 | #endif /* CONFIG_QUICC_ENGINE */ | 177 | #endif /* CONFIG_QUICC_ENGINE */ |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index 4fdf5abefffd..25f8bc75e838 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
@@ -94,21 +94,25 @@ static void __init mpc85xx_mds_setup_arch(void) | |||
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | #ifdef CONFIG_QUICC_ENGINE | 96 | #ifdef CONFIG_QUICC_ENGINE |
97 | if ((np = of_find_node_by_name(NULL, "qe")) != NULL) { | 97 | np = of_find_compatible_node(NULL, NULL, "fsl,qe"); |
98 | qe_reset(); | 98 | if (!np) { |
99 | of_node_put(np); | 99 | np = of_find_node_by_name(NULL, "qe"); |
100 | if (!np) | ||
101 | return; | ||
100 | } | 102 | } |
101 | 103 | ||
102 | if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { | 104 | qe_reset(); |
103 | struct device_node *ucc = NULL; | 105 | of_node_put(np); |
106 | |||
107 | np = of_find_node_by_name(NULL, "par_io"); | ||
108 | if (np) { | ||
109 | struct device_node *ucc; | ||
104 | 110 | ||
105 | par_io_init(np); | 111 | par_io_init(np); |
106 | of_node_put(np); | 112 | of_node_put(np); |
107 | 113 | ||
108 | for ( ;(ucc = of_find_node_by_name(ucc, "ucc")) != NULL;) | 114 | for_each_node_by_name(ucc, "ucc") |
109 | par_io_of_config(ucc); | 115 | par_io_of_config(ucc); |
110 | |||
111 | of_node_put(ucc); | ||
112 | } | 116 | } |
113 | 117 | ||
114 | if (bcsr_regs) { | 118 | if (bcsr_regs) { |
@@ -131,7 +135,6 @@ static void __init mpc85xx_mds_setup_arch(void) | |||
131 | 135 | ||
132 | iounmap(bcsr_regs); | 136 | iounmap(bcsr_regs); |
133 | } | 137 | } |
134 | |||
135 | #endif /* CONFIG_QUICC_ENGINE */ | 138 | #endif /* CONFIG_QUICC_ENGINE */ |
136 | } | 139 | } |
137 | 140 | ||
@@ -139,6 +142,7 @@ static struct of_device_id mpc85xx_ids[] = { | |||
139 | { .type = "soc", }, | 142 | { .type = "soc", }, |
140 | { .compatible = "soc", }, | 143 | { .compatible = "soc", }, |
141 | { .type = "qe", }, | 144 | { .type = "qe", }, |
145 | { .compatible = "fsl,qe", }, | ||
142 | {}, | 146 | {}, |
143 | }; | 147 | }; |
144 | 148 | ||
@@ -176,10 +180,12 @@ static void __init mpc85xx_mds_pic_init(void) | |||
176 | mpic_init(mpic); | 180 | mpic_init(mpic); |
177 | 181 | ||
178 | #ifdef CONFIG_QUICC_ENGINE | 182 | #ifdef CONFIG_QUICC_ENGINE |
179 | np = of_find_node_by_type(NULL, "qeic"); | 183 | np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); |
180 | if (!np) | 184 | if (!np) { |
181 | return; | 185 | np = of_find_node_by_type(NULL, "qeic"); |
182 | 186 | if (!np) | |
187 | return; | ||
188 | } | ||
183 | qe_ic_init(np, 0, qe_ic_cascade_muxed_mpic, NULL); | 189 | qe_ic_init(np, 0, qe_ic_cascade_muxed_mpic, NULL); |
184 | of_node_put(np); | 190 | of_node_put(np); |
185 | #endif /* CONFIG_QUICC_ENGINE */ | 191 | #endif /* CONFIG_QUICC_ENGINE */ |