Skip to content

Commit

Permalink
[MIPS] Alchemy: Set board type on initialization.
Browse files Browse the repository at this point in the history
    
From Sergei Shtylylov <sshtylyov@ru.mvista.com>.
    
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Dec 1, 2005
1 parent dea9100 commit ecd5a73
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion arch/mips/au1000/db1x00/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ecd5a73

Please sign in to comment.