linux-mips
[Top] [All Lists]

[PATCH] Fix board type in db1x00

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix board type in db1x00
From: "Jordan Crouse" <jordan.crouse@amd.com>
Date: Tue, 22 Nov 2005 15:15:26 -0700
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11
Ok, one more one more from Sergei Shtylyov - add all the board types 
serviced by db1x00/init.c:

ALCHEMY:  Select correct machine type in db1x00
---

 arch/mips/au1000/db1x00/init.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

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();
 


<Prev in Thread] Current Thread [Next in Thread>