I've been modifying the low-level driver for I2C on the Raspberry Pi 2. But after not seeing much effect after recompilation and deploy, I'm wondering if I'm actually editing the correct source file.
I can confirm that I'm am writing to I2C-1 bus with a scope. I'm messing around with some of the registers on the BSC from the source code, and it doesn't seem to be taking effect.
This is the file I have been editing, changing some register writes in a function such as 'bcm2708_bsc_setup(struct bcm2708_i2c *bi)':
When I use the I2C driver, I am calling IOCTL from C code in userspace on "i2c-1".
Edit There is also a source file: linux/drivers/i2c/busses/i2c-bcm2835.c in the same directory.
Can someone confirm this is the correct source file for the Broadcom BSC I2C peripheral on the Raspberry Pi 2?