[U-Boot-Users] Proposal to add "ispeed" (I2C speed) command

listmember at orkun.us listmember at orkun.us
Wed Mar 3 18:36:15 CET 2004


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




More information about the U-Boot mailing list