Skip to contentSkip to conversation

NEC VR5701 support

PATCH Sergey Podstavin 1 participant 1 message Feb 23, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

Source: MontaVista Software, Inc. Igor Goryachev <[email protected]>
MR: 15905
Type: Defect Fix
Disposition: needs submitting to linuxmips-embedded mailing list

Description:
Fixes USB host behaviour on NEC vr5701.

arch/mips/vr5701/tcube/setup.c +2 -2
Index: linux-2.6.10/arch/mips/vr5701/tcube/setup.c
===================================================================
@@ -136,11 +136,11 @@ static void __init tcube_board_init(void
 	/* setup GPIO */
 	ddb_out32(GIU_DIR0, 0xf7ebffdf);
 	ddb_out32(GIU_DIR1, 0x000007fa);
-	ddb_out32(GIU_FUNCSEL0, 0xf1c1ffff);
+	ddb_out32(GIU_FUNCSEL0, 0xf1c07fff);
 	ddb_out32(GIU_FUNCSEL1, 0x000007f0);
 	chk_init_5701_reg(GIU_DIR0, 0xf7ebffdf);
 	chk_init_5701_reg(GIU_DIR1, 0x000007fa);
-	chk_init_5701_reg(GIU_FUNCSEL0, 0xf1c1ffff);
+	chk_init_5701_reg(GIU_FUNCSEL0, 0xf1c07fff);
 	chk_init_5701_reg(GIU_FUNCSEL1, 0x000007f0);
 
 	/* enable USB input buffers */
include/linux/lsppatchlevel.h +1 -1
Index: linux-2.6.10/include/linux/lsppatchlevel.h
===================================================================
@@ -6,4 +6,4 @@
  * is licensed "as is" without any warranty of any kind, whether express
  * or implied.
  */
-#define LSP_PATCH_LEVEL "8"
+#define LSP_PATCH_LEVEL "9"
mvl_patches/pro-0009.c new file +16 -0
Index: linux-2.6.10/mvl_patches/pro-0009.c
===================================================================
@@ -0,0 +1,16 @@
+/*
+ * Author: MontaVista Software, Inc. <[email protected]>
+ *
+ * 2005 (c) MontaVista Software, Inc. This file is licensed under
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
+ */
+#include <linux/init.h>
+#include <linux/mvl_patch.h>
+
+static __init int regpatch(void)
+{
+        return mvl_register_patch(9);
+}
+module_init(regpatch);