Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dad482c2 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul Mackerras
Browse files

[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: default avatarArnd Bergmann <arndb@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 3a843d7c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
		}