1:
Read i2c-algo-bit.c & i2c-gpio.c

2.Make menuconfig to enable gpio-i2c

3.add static struct platform_device arch_device_i2c[] in board.c

4.set your drivers to use gpio-i2c.

have fun!

 --
Best regards !

******************************************

Alex Zhao

Email:  skywal...@gmail.com <fei.z...@shcking.com>

 <fei.z...@shcking.com>Twitter: @skywalkzf

Address:Shanghai, China =========================================

 ★      ★  ╭⌒╮ ╭⌒⌒╮ *★ ** ★ *
 ╱-◥██◣ ╭ ╭ Happy Every Day! ^.^

︱田︱田田| ╰-------------------------
╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬
=========================================

******************************************




2011/8/30 ani <anish198519851...@gmail.com>

>
>
> On Aug 29, 5:11 pm, "yuzaipiaofei" <yuzaipiao...@gmail.com> wrote:
> > hi~
> > now i need to port bma150 and yahama530 to our board.
> > if i want to use i2c-gpio to simulate it,who can tell me what i should
>  do in    kernel.
> > how to add it to kernel  and what  the files are needed to mod.
>  CONFIG_I2C_GPIO should be enabled.
>  drivers/i2c/busses/Makefile
> >
> > any answer will be great!
> > 3ks!
> >
> > 2011-08-29
>
> --
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
>

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to