aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2005-12-05 22:52:29 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:53:04 -0500
commitdad482c25698134b79c80694c81f0495019e0842 (patch)
treea7923ee19f66f523cfb174cbc6998a184ea5d8e8
parent3a843d7cd30ab6815610d9d6aa66b56df0ee1228 (diff)
[PATCH] cell: add platform detection code
I can't really get a conclusive answer from the firmware people what to check for, so I just try scanning for anything that starts with "IBM,CPB", which should be correct for all hardware produced so far and for systemsim. Signed-off-by: Arnd Bergmann <arndb@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/kernel/prom_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 2ae860c306d7..6007d51d119b 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -1539,6 +1539,8 @@ static int __init prom_find_machine_type(void)
1539#ifdef CONFIG_PPC64 1539#ifdef CONFIG_PPC64
1540 if (strstr(p, RELOC("Momentum,Maple"))) 1540 if (strstr(p, RELOC("Momentum,Maple")))
1541 return PLATFORM_MAPLE; 1541 return PLATFORM_MAPLE;
1542 if (strstr(p, RELOC("IBM,CPB")))
1543 return PLATFORM_CELL;
1542#endif 1544#endif
1543 i += sl + 1; 1545 i += sl + 1;
1544 } 1546 }