linux-mips
[Top] [All Lists]

[PATCH] Set proper machine type for DB1xx0 boards

To: Linux MIPS Development <linux-mips@linux-mips.org>
Subject: [PATCH] Set proper machine type for DB1xx0 boards
From: Sergei Shtylylov <sshtylyov@ru.mvista.com>
Date: Tue, 01 Nov 2005 00:06:35 +0300
Cc: Manish Lachwani <mlachwani@mvista.com>, Pete Popov <ppopov@embeddedalley.com>
In-reply-to: <435A9FB2.3070303@ru.mvista.com>
Organization: MostaVista Software Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4357F774.9010208@ru.mvista.com> <435A9FB2.3070303@ru.mvista.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Hello, I wrote:

Here's a couple of DBAu1550 fixes: the first one fixes BCSR accesses in
the board setup/reset code (the registers are actually 16-bit, and their
addresses are different between DBAu1550 and other DBAu1xx0 boards), the

   Here's an updated BCSR patch. Stupid typo. :-/

second one just selects the proper machine type for DBAu1550.

It was somewhat incomplete, more #ifdef's are needed to set the proper machine types for DB1100/DB1500...

     So, here's an update...

WBR, Sergei

Index: arch/mips/au1000/db1x00/init.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/au1000/db1x00/init.c,v
retrieving revision 1.6
diff -a -u -p -r1.6 init.c
--- arch/mips/au1000/db1x00/init.c      11 Jul 2005 10:03:24 -0000      1.6
+++ arch/mips/au1000/db1x00/init.c      31 Oct 2005 21:01:26 -0000
@@ -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>