diff options
author | Mark A. Greer <mgreer@mvista.com> | 2008-04-07 18:10:34 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-15 07:21:24 -0400 |
commit | 1791f91bc794b7efc90719268146f582b9f29ead (patch) | |
tree | 4aee1b81ccac9231cec0636dfc0327a4378ede7f /arch/powerpc/sysdev | |
parent | a05ce88ab3e8a022ee17d89ecf86f6929c89c50e (diff) |
[POWERPC] prpmc2800: Clean up dts properties
Remove several unused (or software config only) properties.
Rename marvel node to "system-controller". Also, rename the
"block-index" property to "cell-index" to conform to current
practice.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/mv64x60_dev.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/arch/powerpc/sysdev/mv64x60_dev.c b/arch/powerpc/sysdev/mv64x60_dev.c index d9626eea1c72..90f2c14d5b60 100644 --- a/arch/powerpc/sysdev/mv64x60_dev.c +++ b/arch/powerpc/sysdev/mv64x60_dev.c | |||
@@ -127,7 +127,7 @@ static int __init mv64x60_mpsc_device_setup(struct device_node *np, int id) | |||
127 | if (err) | 127 | if (err) |
128 | return err; | 128 | return err; |
129 | 129 | ||
130 | prop = of_get_property(np, "block-index", NULL); | 130 | prop = of_get_property(np, "cell-index", NULL); |
131 | if (!prop) | 131 | if (!prop) |
132 | return -ENODEV; | 132 | return -ENODEV; |
133 | port_number = *(int *)prop; | 133 | port_number = *(int *)prop; |
@@ -136,6 +136,7 @@ static int __init mv64x60_mpsc_device_setup(struct device_node *np, int id) | |||
136 | 136 | ||
137 | pdata.cache_mgmt = 1; /* All current revs need this set */ | 137 | pdata.cache_mgmt = 1; /* All current revs need this set */ |
138 | 138 | ||
139 | pdata.max_idle = 40; /* default */ | ||
139 | prop = of_get_property(np, "max_idle", NULL); | 140 | prop = of_get_property(np, "max_idle", NULL); |
140 | if (prop) | 141 | if (prop) |
141 | pdata.max_idle = *prop; | 142 | pdata.max_idle = *prop; |
@@ -345,21 +346,19 @@ static int __init mv64x60_i2c_device_setup(struct device_node *np, int id) | |||
345 | 346 | ||
346 | memset(&pdata, 0, sizeof(pdata)); | 347 | memset(&pdata, 0, sizeof(pdata)); |
347 | 348 | ||
349 | pdata.freq_m = 8; /* default */ | ||
348 | prop = of_get_property(np, "freq_m", NULL); | 350 | prop = of_get_property(np, "freq_m", NULL); |
349 | if (!prop) | 351 | if (!prop) |
350 | return -ENODEV; | 352 | return -ENODEV; |
351 | pdata.freq_m = *prop; | 353 | pdata.freq_m = *prop; |
352 | 354 | ||
355 | pdata.freq_m = 3; /* default */ | ||
353 | prop = of_get_property(np, "freq_n", NULL); | 356 | prop = of_get_property(np, "freq_n", NULL); |
354 | if (!prop) | 357 | if (!prop) |
355 | return -ENODEV; | 358 | return -ENODEV; |
356 | pdata.freq_n = *prop; | 359 | pdata.freq_n = *prop; |
357 | 360 | ||
358 | prop = of_get_property(np, "timeout", NULL); | 361 | pdata.timeout = 1000; /* default: 1 second */ |
359 | if (prop) | ||
360 | pdata.timeout = *prop; | ||
361 | else | ||
362 | pdata.timeout = 1000; /* 1 second */ | ||
363 | 362 | ||
364 | pdev = platform_device_alloc(MV64XXX_I2C_CTLR_NAME, id); | 363 | pdev = platform_device_alloc(MV64XXX_I2C_CTLR_NAME, id); |
365 | if (!pdev) | 364 | if (!pdev) |
@@ -401,10 +400,7 @@ static int __init mv64x60_wdt_device_setup(struct device_node *np, int id) | |||
401 | 400 | ||
402 | memset(&pdata, 0, sizeof(pdata)); | 401 | memset(&pdata, 0, sizeof(pdata)); |
403 | 402 | ||
404 | prop = of_get_property(np, "timeout", NULL); | 403 | pdata.timeout = 10; /* Default: 10 seconds */ |
405 | if (!prop) | ||
406 | return -ENODEV; | ||
407 | pdata.timeout = *prop; | ||
408 | 404 | ||
409 | np = of_get_parent(np); | 405 | np = of_get_parent(np); |
410 | if (!np) | 406 | if (!np) |
@@ -492,7 +488,7 @@ static int __init mv64x60_add_mpsc_console(void) | |||
492 | if (!of_device_is_compatible(np, "marvell,mv64360-mpsc")) | 488 | if (!of_device_is_compatible(np, "marvell,mv64360-mpsc")) |
493 | goto not_mpsc; | 489 | goto not_mpsc; |
494 | 490 | ||
495 | prop = of_get_property(np, "block-index", NULL); | 491 | prop = of_get_property(np, "cell-index", NULL); |
496 | if (!prop) | 492 | if (!prop) |
497 | goto not_mpsc; | 493 | goto not_mpsc; |
498 | 494 | ||