aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powermac/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/powermac/setup.c')
-rw-r--r--arch/powerpc/platforms/powermac/setup.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c
index f2a3063980eb..8c96f2461e9a 100644
--- a/arch/powerpc/platforms/powermac/setup.c
+++ b/arch/powerpc/platforms/powermac/setup.c
@@ -134,12 +134,12 @@ static void pmac_show_cpuinfo(struct seq_file *m)
134 seq_printf(m, "machine\t\t: "); 134 seq_printf(m, "machine\t\t: ");
135 np = of_find_node_by_path("/"); 135 np = of_find_node_by_path("/");
136 if (np != NULL) { 136 if (np != NULL) {
137 pp = get_property(np, "model", NULL); 137 pp = of_get_property(np, "model", NULL);
138 if (pp != NULL) 138 if (pp != NULL)
139 seq_printf(m, "%s\n", pp); 139 seq_printf(m, "%s\n", pp);
140 else 140 else
141 seq_printf(m, "PowerMac\n"); 141 seq_printf(m, "PowerMac\n");
142 pp = get_property(np, "compatible", &plen); 142 pp = of_get_property(np, "compatible", &plen);
143 if (pp != NULL) { 143 if (pp != NULL) {
144 seq_printf(m, "motherboard\t:"); 144 seq_printf(m, "motherboard\t:");
145 while (plen > 0) { 145 while (plen > 0) {
@@ -163,11 +163,13 @@ static void pmac_show_cpuinfo(struct seq_file *m)
163 if (np == NULL) 163 if (np == NULL)
164 np = of_find_node_by_type(NULL, "cache"); 164 np = of_find_node_by_type(NULL, "cache");
165 if (np != NULL) { 165 if (np != NULL) {
166 const unsigned int *ic = get_property(np, "i-cache-size", NULL); 166 const unsigned int *ic =
167 const unsigned int *dc = get_property(np, "d-cache-size", NULL); 167 of_get_property(np, "i-cache-size", NULL);
168 const unsigned int *dc =
169 of_get_property(np, "d-cache-size", NULL);
168 seq_printf(m, "L2 cache\t:"); 170 seq_printf(m, "L2 cache\t:");
169 has_l2cache = 1; 171 has_l2cache = 1;
170 if (get_property(np, "cache-unified", NULL) != 0 && dc) { 172 if (of_get_property(np, "cache-unified", NULL) != 0 && dc) {
171 seq_printf(m, " %dK unified", *dc / 1024); 173 seq_printf(m, " %dK unified", *dc / 1024);
172 } else { 174 } else {
173 if (ic) 175 if (ic)
@@ -176,7 +178,7 @@ static void pmac_show_cpuinfo(struct seq_file *m)
176 seq_printf(m, "%s %dK data", 178 seq_printf(m, "%s %dK data",
177 (ic? " +": ""), *dc / 1024); 179 (ic? " +": ""), *dc / 1024);
178 } 180 }
179 pp = get_property(np, "ram-type", NULL); 181 pp = of_get_property(np, "ram-type", NULL);
180 if (pp) 182 if (pp)
181 seq_printf(m, " %s", pp); 183 seq_printf(m, " %s", pp);
182 seq_printf(m, "\n"); 184 seq_printf(m, "\n");
@@ -253,7 +255,7 @@ static void __init l2cr_init(void)
253 np = find_type_devices("cpu"); 255 np = find_type_devices("cpu");
254 if (np != 0) { 256 if (np != 0) {
255 const unsigned int *l2cr = 257 const unsigned int *l2cr =
256 get_property(np, "l2cr-value", NULL); 258 of_get_property(np, "l2cr-value", NULL);
257 if (l2cr != 0) { 259 if (l2cr != 0) {
258 ppc_override_l2cr = 1; 260 ppc_override_l2cr = 1;
259 ppc_override_l2cr_value = *l2cr; 261 ppc_override_l2cr_value = *l2cr;
@@ -285,7 +287,7 @@ static void __init pmac_setup_arch(void)
285 loops_per_jiffy = 50000000 / HZ; 287 loops_per_jiffy = 50000000 / HZ;
286 cpu = of_find_node_by_type(NULL, "cpu"); 288 cpu = of_find_node_by_type(NULL, "cpu");
287 if (cpu != NULL) { 289 if (cpu != NULL) {
288 fp = get_property(cpu, "clock-frequency", NULL); 290 fp = of_get_property(cpu, "clock-frequency", NULL);
289 if (fp != NULL) { 291 if (fp != NULL) {
290 if (pvr >= 0x30 && pvr < 0x80) 292 if (pvr >= 0x30 && pvr < 0x80)
291 /* PPC970 etc. */ 293 /* PPC970 etc. */
@@ -302,7 +304,7 @@ static void __init pmac_setup_arch(void)
302 304
303 /* See if newworld or oldworld */ 305 /* See if newworld or oldworld */
304 for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; ) 306 for (ic = NULL; (ic = of_find_all_nodes(ic)) != NULL; )
305 if (get_property(ic, "interrupt-controller", NULL)) 307 if (of_get_property(ic, "interrupt-controller", NULL))
306 break; 308 break;
307 if (ic) { 309 if (ic) {
308 pmac_newworld = 1; 310 pmac_newworld = 1;