]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-omap/common.h
ARM: OMAP: Add helper module for board specific I2C bus registration
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-omap / common.h
index 08d58abd82182a1fdd307f1a7ed94a256f86c35d..089ddc7f9c148fe5ff7ca2bf00145fc7cf6f2876 100644 (file)
 #ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
 #define __ARCH_ARM_MACH_OMAP_COMMON_H
 
+#ifdef CONFIG_I2C_OMAP
+#include <linux/i2c.h>
+#endif
+
 struct sys_timer;
 
 extern void omap_map_common_io(void);
 extern struct sys_timer omap_timer;
 extern void omap_serial_init(void);
+extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
+                                struct i2c_board_info const *info,
+                                unsigned len);
 
 #endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */