summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-11-29 18:03:02 +0100
committerRalf Baechle <ralf@linux-mips.org>2005-12-01 12:05:16 +0100
commitecd5a739048b4d94e4ae3545196eb752d6776c97 (patch)
tree11f2bc0803a06bf4ae0b93814454eb742f8eaaa8 /arch
parent[MIPS] Alchemy: Fix BCSR accesses. (diff)
downloadlinux-ecd5a739048b4d94e4ae3545196eb752d6776c97.tar.xz
linux-ecd5a739048b4d94e4ae3545196eb752d6776c97.zip
[MIPS] Alchemy: Set board type on initialization.
From Sergei Shtylylov <sshtylyov@ru.mvista.com>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/au1000/db1x00/init.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/mips/au1000/db1x00/init.c b/arch/mips/au1000/db1x00/init.c
index 4b9d5e46edbb..41e0522f3cf1 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();