aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/au1000/db1x00/init.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-11-29 12:03:02 -0500
committerRalf Baechle <ralf@linux-mips.org>2005-12-01 06:05:16 -0500
commitecd5a739048b4d94e4ae3545196eb752d6776c97 (patch)
tree11f2bc0803a06bf4ae0b93814454eb742f8eaaa8 /arch/mips/au1000/db1x00/init.c
parentdea91002d45e4f0fe83768703288e1cde917371c (diff)
[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/mips/au1000/db1x00/init.c')
-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)
61 prom_envp = (char **) fw_arg2; 61 prom_envp = (char **) fw_arg2;
62 62
63 mips_machgroup = MACH_GROUP_ALCHEMY; 63 mips_machgroup = MACH_GROUP_ALCHEMY;
64 mips_machtype = MACH_DB1000; /* set the platform # */ 64
65 /* Set the platform # */
66#if defined (CONFIG_MIPS_DB1550)
67 mips_machtype = MACH_DB1550;
68#elif defined (CONFIG_MIPS_DB1500)
69 mips_machtype = MACH_DB1500;
70#elif defined (CONFIG_MIPS_DB1100)
71 mips_machtype = MACH_DB1100;
72#else
73 mips_machtype = MACH_DB1000;
74#endif
65 75
66 prom_init_cmdline(); 76 prom_init_cmdline();
67 77