2010-04-19 10:53:14 I2C Bit Bang driver query
Appalayagari Sreedhar (INDIA)
I am working with custom board with BF533 and 2009R1-RC3 distribution.
I am trying to make use of the i2c driver (i2c bit bang i2c-gpio.c ) which is the i2c driver emulated using the PF pins.
I could not find the functionality support api in the bus driver file i2c-gpio.c like in i2c-bfin-twi.c file as shown below
static u32 bfin_twi_functionality(struct i2c_adapter *adap)
return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |
I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |
I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_PROC_CALL |
I would like to know what functionalities are supported with the i2c bit bang driver.
Can you point me to any device which uses the i2c driver bit banging algorithm in the distribution which can be used as a reference.
Thank you, Sreedhar
2010-04-19 11:15:56 Re: I2C Bit Bang driver query
Mike Frysinger (UNITED STATES)
if you read the driver, you'll see it calls the functions in drivers/i2c/algos/i2c-algo-bit.c