10-20-2014 09:41 PM
Need help on I2C bus detection in U-Boot.
My Hardware details : K7 FPGA with Microblaze with basic interfaces (ddr, uart, flash) and 2 I2C buses
U-Boot version : 2014.01
Able to compile and run U-Boot on microblaze but while trying to access I2C bus facing an issue as below and MicroBlaze is getting hanged :
"Error, wrong i2c adapter 0 max 0 possible"
above line is printing from "i2c_set_bus_num()" of "drivers/i2c/i2c_core.c".
Any suggestions why is this issue occuring and how to fix it?
Attached the xparameters.h, microblaze-generic.h, System.map file which has entries of I2C details too.
10-21-2014 12:55 AM
10-21-2014 01:00 AM
10-21-2014 09:39 AM
No experience with the Microblze. A guess. From looking at the u-boot and linux source, u-boot does not have i2c adapter code for the Microblaze i2c. On the linux side, it is i2c-xiix.c. You will have to port the linux version or the bare metal code from the SDK.