Skip to contentSkip to conversation

mpc8270 : i2c support

PATCH Heiko Schocher 1 participant 1 message May 11, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

Quoted 8 lines · on Thu May 4 06:11:17 2006 i wrote:

Hmmm.... I think there are differences in the memory map between MPC826x and MPC827x ... can you try following Hack in include/asm-ppc/cpm_8260.h?

(quoted diff) +1 -1
-#define PROFF_I2C       ((16 * 1024) - 64)
+#define PROFF_I2C       ((8 * 1024) - 64)

[If it solves the problem, we must do this on a better way ;-)]

I don t know, if this was necessary to solve the problem, but i think the follwing patch is useful, but I have no Hardware to try it out.

Any comments?

Best regards
Heiko

include/asm-ppc/cpm2.h +4 -0
index 6197986..738259c 100644
@@ -181,7 +181,11 @@ #define PROFF_IDMA4_BASE	((uint)0x8afe)
  */
 #define PROFF_SMC1	(0)
 #define PROFF_SMC2	(64)
+#if defined(CONFIG_8272) || defined(CONFIG_MPC8555)
+#define PROFF_I2C	((8 * 1024) - 64)
+#else
 #define PROFF_I2C	((16 * 1024) - 64)
+#endif
 
 /* Define enough so I can at least use the serial port as a UART.
  */