[MIPS] Alchemy: Set board type on initialization.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 29 Nov 2005 17:03:02 +0000 (17:03 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 1 Dec 2005 11:05:16 +0000 (11:05 +0000)
From Sergei Shtylylov <sshtylyov@ru.mvista.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/db1x00/init.c

index 4b9d5e46edbbc42133fdbd268967c2ddc213adc0..41e0522f3cf1583b2eabf89da16bca3ff06db0f2 100644 (file)
@@ -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();