]> err.no Git - linux-2.6/commitdiff
[PATCH] cell: add platform detection code
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Dec 2005 03:52:29 +0000 (22:52 -0500)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:53:04 +0000 (14:53 +1100)
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>
arch/powerpc/kernel/prom_init.c

index 2ae860c306d75b427b49ffebda8e86b1d80555d1..6007d51d119b5f2f60d7bcd840c1013e9293acc4 100644 (file)
@@ -1539,6 +1539,8 @@ static int __init prom_find_machine_type(void)
 #ifdef CONFIG_PPC64
                        if (strstr(p, RELOC("Momentum,Maple")))
                                return PLATFORM_MAPLE;
+                       if (strstr(p, RELOC("IBM,CPB")))
+                               return PLATFORM_CELL;
 #endif
                        i += sl + 1;
                }