From 0b7c5639891f4103a0e31ec7ae0beb3e97ed3836 Mon Sep 17 00:00:00 2001
From: Heiko Schocher <hs@denx.de>
Date: Wed, 10 Sep 2008 11:15:28 +0200
Subject: [PATCH] muas3001: update BR4 settings

Also set up the port pins for using I2C.

Signed-off-by: Heiko Schocher <hs@denx.de>
---
 board/muas3001/muas3001.c  | 9 +++++++--
 include/configs/muas3001.h | 2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/board/muas3001/muas3001.c b/board/muas3001/muas3001.c
index 0ec451fbd55..157c72d1546 100644
--- a/board/muas3001/muas3001.c
+++ b/board/muas3001/muas3001.c
@@ -163,8 +163,13 @@ const iop_conf_t iop_conf_tab[4][32] = {
 	/* PD18 */ { 0,          0,   0,   0,   0,   0 }, /* PD18            */
 	/* PD17 */ { 0,          0,   0,   0,   0,   0 }, /* PD17            */
 	/* PD16 */ { 0,          0,   0,   0,   0,   0 }, /* PD16            */
-	/* PD15 */ { 1,          1,   1,   0,   0,   0 }, /* I2C SDA         */
-	/* PD14 */ { 1,          1,   1,   0,   0,   0 }, /* I2C SCL         */
+#if defined(CONFIG_HARD_I2C)
+	/* PD15 */ { 1,          1,   1,   0,   1,   0 }, /* I2C SDA         */
+	/* PD14 */ { 1,          1,   1,   0,   1,   0 }, /* I2C SCL         */
+#else
+	/* PD15 */ { 1,          0,   0,   0,   1,   1 }, /* PD15            */
+	/* PD14 */ { 1,          0,   0,   1,   1,   1 }, /* PD14            */
+#endif
 	/* PD13 */ { 0,          0,   0,   0,   0,   0 }, /* PD13            */
 	/* PD12 */ { 0,          0,   0,   0,   0,   0 }, /* PD12            */
 	/* PD11 */ { 0,          0,   0,   0,   0,   0 }, /* PD11            */
diff --git a/include/configs/muas3001.h b/include/configs/muas3001.h
index bc085b8b786..a13648b6efe 100644
--- a/include/configs/muas3001.h
+++ b/include/configs/muas3001.h
@@ -395,7 +395,7 @@
 #define CFG_IO_SIZE	1
 
 #define CFG_BR4_PRELIM	((CFG_IO_BASE & BRx_BA_MSK) |\
-			 BRx_PS_32 | BRx_MS_GPCM_L | BRx_V)
+			 BRx_PS_16 | BRx_MS_GPCM_L | BRx_V)
 
 #define CFG_OR4_PRELIM	(0xfff80020)
 
-- 
GitLab