Skip to contentSkip to conversation

muas3001: update BR4 settings

PATCH New Heiko Schocher 2 participants 2 messages Sep 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 muas3001: update BR4 settings

and setup the Portpins for using I2C.

---
 board/muas3001/muas3001.c  |    9 +++++++--
 include/configs/muas3001.h |    2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)
board/muas3001/muas3001.c +7 -2
index 0ec451f..157c72d 100644
@@ -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            */
include/configs/muas3001.h +1 -1
index bc085b8..a13648b 100644
@@ -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)
 
Signature · 5 lines
1.5.6.1

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw

PATCH 1/1 muas3001: update BR4 settings

Dear Heiko Schocher,

Quoted 7 lines · In message <[email protected]> you wrote:

and setup the Portpins for using I2C.

---
 board/muas3001/muas3001.c  |    9 +++++++--
 include/configs/muas3001.h |    2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Mr. Cole's Axiom:
        The sum of the intelligence on the planet is a constant;
        the population is growing.