From: Ralf Baechle Date: Tue, 29 Nov 2005 17:03:02 +0000 (+0000) Subject: [MIPS] Alchemy: Set board type on initialization. X-Git-Tag: v3.12-rc1~40124^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecd5a739048b4d94e4ae3545196eb752d6776c97;p=kernel%2Fkernel-generic.git [MIPS] Alchemy: Set board type on initialization. From Sergei Shtylylov . Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/au1000/db1x00/init.c b/arch/mips/au1000/db1x00/init.c index 4b9d5e4..41e0522 100644 --- a/arch/mips/au1000/db1x00/init.c +++ b/arch/mips/au1000/db1x00/init.c @@ -61,7 +61,17 @@ void __init prom_init(void) prom_envp = (char **) fw_arg2; mips_machgroup = MACH_GROUP_ALCHEMY; - mips_machtype = MACH_DB1000; /* set the platform # */ + + /* Set the platform # */ +#if defined (CONFIG_MIPS_DB1550) + mips_machtype = MACH_DB1550; +#elif defined (CONFIG_MIPS_DB1500) + mips_machtype = MACH_DB1500; +#elif defined (CONFIG_MIPS_DB1100) + mips_machtype = MACH_DB1100; +#else + mips_machtype = MACH_DB1000; +#endif prom_init_cmdline();