
3 Mar
2004
3 Mar
'04
6:36 p.m.
We have some instrumentation hanging on I2C bus. I would like to introduce a new u-boot command ispeed to set the i2c speed so fast devices would not be constrained to the lowest denominator speed.
If desired we can make be conditionally included if CONFIG_CMD_ISPEED (suggestions?) so it would not take space when it is not needed (or desired) on a particular board. The proposed syntax would be.
ispeed {i2c bus speed}
Since u-boot uses hex: 100kHz => 186A0, 400kHz => 61A80
I would also set an environment variable in ispeed command indicating current i2c speed ("i2cspeed") so it could be used in scripts.
Looking for your comments?
Best regards, Tolunay