
#if defined(CONFIG_DISPLAY_CPUINFO) int print_cpuinfo (void) { diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 6f9306f..68d2720 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -209,4 +209,17 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len) return 0; }
+int i2c_get_bus_speed(void) +{
- return -1;
+}
+int i2c_set_bus_speed (unsigned int speed) +{
- if (speed != CFG_I2C_SPEED)
return -1;
- return 0;
+}
why do you refuse to change the i2c bus speed?
#endif /* CONFIG_HARD_I2C */ diff --git a/include/asm-arm/arch-mx31/mx31-regs.h b/include/asm-arm/arch-mx31/mx31-regs.h index ea15108..c0e516f 100644 --- a/include/asm-arm/arch-mx31/mx31-regs.h +++ b/include/asm-arm/arch-mx31/mx31-regs.h @@ -168,6 +168,9 @@
extern u32 mx31_get_ipg_clk(void); extern void mx31_gpio_mux(unsigned long mode); +extern void mx31_pad_ctl (u32 field, u32 val);
#endif /* __ASM_ARCH_MX31_H */ diff --git a/include/configs/TQMA31.h b/include/configs/TQMA31.h index 255355d..f96fd74 100644 --- a/include/configs/TQMA31.h +++ b/include/configs/TQMA31.h @@ -154,6 +154,43 @@
/*******************************************************************************
- I2C
- ******************************************************************************/
+/* Use the processor internal controller */ +#define CONFIG_HARD_I2C +#define CONFIG_I2C_MXC
+/* Configure I2C1 */ +#define CFG_I2C_MX31_PORT1
+#define CFG_I2C_SPEED 100000
please use tab instead of whitespace
+#define CFG_I2C_SLAVE 0
please use tab instead of whitespace
+/* Don't probe these addrs */ +#define CFG_I2C_NOPROBES {0x00}
Best Regards, J.