diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 14:17:35 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 14:17:35 -0400 |
| commit | dc79747019b43c28d1f50aad69b8039f8d8db301 (patch) | |
| tree | 4e85f1e41a6df5e5ab0866901d29d2d08efdf426 /arch/powerpc/platforms | |
| parent | 0f760f13012322c81714812d852429fe23b16dcf (diff) | |
| parent | 7bd02a20d5fcb69e1623c3bf2b68959fe7a77fa4 (diff) | |
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
[POWERPC] Clean up duplicate includes in drivers/macintosh/
[POWERPC] Quiet section mismatch warning on pcibios_setup
[POWERPC] init and exit markings for hvc_iseries
[POWERPC] Quiet section mismatch in hvc_rtas.c
[POWERPC] Constify of_platform_driver match_table
[POWERPC] hvcs: Make some things static and const
[POWERPC] Constify of_platform_driver name
[POWERPC] MPIC protected sources
[POWERPC] of_detach_node()'s device node argument cannot be const
[POWERPC] Fix ARCH=ppc builds
[POWERPC] mv64x60: Use mutex instead of semaphore
[POWERPC] Allow smp_call_function_single() to current cpu
[POWERPC] Allow exec faults on readable areas on classic 32-bit PowerPC
[POWERPC] Fix future firmware feature fixups function failure
[POWERPC] fix showing xmon help
[POWERPC] Make xmon_write accept a const buffer
[POWERPC] Fix misspelled "CONFIG_CHECK_CACHE_COHERENCY" Kconfig option.
[POWERPC] cell: CONFIG_SPE_BASE is a typo
Diffstat (limited to 'arch/powerpc/platforms')
| -rw-r--r-- | arch/powerpc/platforms/Kconfig.cputype | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/embedded6xx/Kconfig | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/firmware.c | 19 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/pseries.h | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/setup.c | 17 |
5 files changed, 17 insertions, 25 deletions
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index b8b5fde94668..e4b2aee53a73 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype | |||
| @@ -215,7 +215,7 @@ config NOT_COHERENT_CACHE | |||
| 215 | depends on 4xx || 8xx || E200 | 215 | depends on 4xx || 8xx || E200 |
| 216 | default y | 216 | default y |
| 217 | 217 | ||
| 218 | config CONFIG_CHECK_CACHE_COHERENCY | 218 | config CHECK_CACHE_COHERENCY |
| 219 | bool | 219 | bool |
| 220 | 220 | ||
| 221 | endmenu | 221 | endmenu |
diff --git a/arch/powerpc/platforms/embedded6xx/Kconfig b/arch/powerpc/platforms/embedded6xx/Kconfig index bec772674e40..2d12f77e46bc 100644 --- a/arch/powerpc/platforms/embedded6xx/Kconfig +++ b/arch/powerpc/platforms/embedded6xx/Kconfig | |||
| @@ -59,7 +59,7 @@ config MPC10X_BRIDGE | |||
| 59 | config MV64X60 | 59 | config MV64X60 |
| 60 | bool | 60 | bool |
| 61 | select PPC_INDIRECT_PCI | 61 | select PPC_INDIRECT_PCI |
| 62 | select CONFIG_CHECK_CACHE_COHERENCY | 62 | select CHECK_CACHE_COHERENCY |
| 63 | 63 | ||
| 64 | config MPC10X_OPENPIC | 64 | config MPC10X_OPENPIC |
| 65 | bool | 65 | bool |
diff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c index 29bf83bfb1f0..8b18a1c40092 100644 --- a/arch/powerpc/platforms/pseries/firmware.c +++ b/arch/powerpc/platforms/pseries/firmware.c | |||
| @@ -66,24 +66,13 @@ firmware_features_table[FIRMWARE_MAX_FEATURES] = { | |||
| 66 | * device-tree/ibm,hypertas-functions. Ultimately this functionality may | 66 | * device-tree/ibm,hypertas-functions. Ultimately this functionality may |
| 67 | * be moved into prom.c prom_init(). | 67 | * be moved into prom.c prom_init(). |
| 68 | */ | 68 | */ |
| 69 | void __init fw_feature_init(void) | 69 | void __init fw_feature_init(const char *hypertas, unsigned long len) |
| 70 | { | 70 | { |
| 71 | struct device_node *dn; | 71 | const char *s; |
| 72 | const char *hypertas, *s; | 72 | int i; |
| 73 | int len, i; | ||
| 74 | 73 | ||
| 75 | DBG(" -> fw_feature_init()\n"); | 74 | DBG(" -> fw_feature_init()\n"); |
| 76 | 75 | ||
| 77 | dn = of_find_node_by_path("/rtas"); | ||
| 78 | if (dn == NULL) { | ||
| 79 | printk(KERN_ERR "WARNING! Cannot find RTAS in device-tree!\n"); | ||
| 80 | goto out; | ||
| 81 | } | ||
| 82 | |||
| 83 | hypertas = of_get_property(dn, "ibm,hypertas-functions", &len); | ||
| 84 | if (hypertas == NULL) | ||
| 85 | goto out; | ||
| 86 | |||
| 87 | for (s = hypertas; s < hypertas + len; s += strlen(s) + 1) { | 76 | for (s = hypertas; s < hypertas + len; s += strlen(s) + 1) { |
| 88 | for (i = 0; i < FIRMWARE_MAX_FEATURES; i++) { | 77 | for (i = 0; i < FIRMWARE_MAX_FEATURES; i++) { |
| 89 | /* check value against table of strings */ | 78 | /* check value against table of strings */ |
| @@ -98,7 +87,5 @@ void __init fw_feature_init(void) | |||
| 98 | } | 87 | } |
| 99 | } | 88 | } |
| 100 | 89 | ||
| 101 | out: | ||
| 102 | of_node_put(dn); | ||
| 103 | DBG(" <- fw_feature_init()\n"); | 90 | DBG(" <- fw_feature_init()\n"); |
| 104 | } | 91 | } |
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 61e19f78b923..61136d019554 100644 --- a/arch/powerpc/platforms/pseries/pseries.h +++ b/arch/powerpc/platforms/pseries/pseries.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #ifndef _PSERIES_PSERIES_H | 10 | #ifndef _PSERIES_PSERIES_H |
| 11 | #define _PSERIES_PSERIES_H | 11 | #define _PSERIES_PSERIES_H |
| 12 | 12 | ||
| 13 | extern void __init fw_feature_init(void); | 13 | extern void __init fw_feature_init(const char *hypertas, unsigned long len); |
| 14 | 14 | ||
| 15 | struct pt_regs; | 15 | struct pt_regs; |
| 16 | 16 | ||
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 59e69f085cb4..f0b7146a110f 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
| @@ -320,8 +320,6 @@ static void __init pSeries_init_early(void) | |||
| 320 | { | 320 | { |
| 321 | DBG(" -> pSeries_init_early()\n"); | 321 | DBG(" -> pSeries_init_early()\n"); |
| 322 | 322 | ||
| 323 | fw_feature_init(); | ||
| 324 | |||
| 325 | if (firmware_has_feature(FW_FEATURE_LPAR)) | 323 | if (firmware_has_feature(FW_FEATURE_LPAR)) |
| 326 | find_udbg_vterm(); | 324 | find_udbg_vterm(); |
| 327 | 325 | ||
| @@ -343,14 +341,21 @@ static int __init pSeries_probe_hypertas(unsigned long node, | |||
| 343 | const char *uname, int depth, | 341 | const char *uname, int depth, |
| 344 | void *data) | 342 | void *data) |
| 345 | { | 343 | { |
| 344 | const char *hypertas; | ||
| 345 | unsigned long len; | ||
| 346 | |||
| 346 | if (depth != 1 || | 347 | if (depth != 1 || |
| 347 | (strcmp(uname, "rtas") != 0 && strcmp(uname, "rtas@0") != 0)) | 348 | (strcmp(uname, "rtas") != 0 && strcmp(uname, "rtas@0") != 0)) |
| 348 | return 0; | 349 | return 0; |
| 350 | |||
| 351 | hypertas = of_get_flat_dt_prop(node, "ibm,hypertas-functions", &len); | ||
| 352 | if (!hypertas) | ||
| 353 | return 1; | ||
| 349 | 354 | ||
| 350 | if (of_get_flat_dt_prop(node, "ibm,hypertas-functions", NULL) != NULL) | 355 | powerpc_firmware_features |= FW_FEATURE_LPAR; |
| 351 | powerpc_firmware_features |= FW_FEATURE_LPAR; | 356 | fw_feature_init(hypertas, len); |
| 352 | 357 | ||
| 353 | return 1; | 358 | return 1; |
| 354 | } | 359 | } |
| 355 | 360 | ||
| 356 | static int __init pSeries_probe(void) | 361 | static int __init pSeries_probe(void) |
