facebook / openbmc

OpenBMC is an open software framework to build a complete Linux image for a Board Management Controller (BMC).
627 stars 280 forks source link

Enabling I2Cs in openbmc master branch #63

Open radhikapradeep opened 7 years ago

radhikapradeep commented 7 years ago

Hi,

We are working on a wedge100 like platform and while listing I2Cs using the command "i2cdetect -l" found that the I2C 9 and 11 is not enabled .Please find the snapshot below

root@bmc:~# i2cdetect -l i2c-0 i2c ast_i2c.0 I2C adapter i2c-1 i2c ast_i2c.1 I2C adapter i2c-2 i2c ast_i2c.2 I2C adapter i2c-3 i2c ast_i2c.3 I2C adapter i2c-4 i2c ast_i2c.4 I2C adapter i2c-5 i2c ast_i2c.5 I2C adapter i2c-6 i2c ast_i2c.6 I2C adapter i2c-7 i2c ast_i2c.7 I2C adapter i2c-8 i2c ast_i2c.8 I2C adapter i2c-12 i2c ast_i2c.12 I2C adapter

We need to enable the I2Cs 9 and 11 i.e SCL10,SDA10 & SCL 12,SDA12 in the code. Could anyone please point the method to enable the I2C controller ?

Thanks and Regards

sdasari73 commented 6 years ago

I would start debugging@ https://github.com/theopolis/linux/blob/openbmc/helium/4.1/arch/arm/plat-aspeed/dev-i2c-common.c