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
Twit
On Aug 29, 5:11 pm, "yuzaipiaofei" 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 ena