Hi,
About the battery gas gauge driver , you can make a character
driver and call the i2c functions which are exported in the MVL kernel.
The I2C protocol also is the same just use the slave address 7Eh and
register the i2c client device and you can call i2c reads and writes
using the i2c functions
In the init function
Register the character driver
i2c_add_driver
In probe function
Attach the client using the address 7Eh and the file operations
structure and calling i2c_attach_client
You need to only specify the read and write functions in the file
structure
In the read function
Set the msg structure with relevant information and call
i2c_transfer
In the write function (only if required)
Same as above
I have worked on the bq27200 chip for DM6446 EVM.
Regards,
Jinu Joy
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
[EMAIL PROTECTED]
**********************************************************************
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source