U-Boot$i2c nm i2c - I2C sub-system
Usage: i2c crc32 chip address[.0, .1, .2] count - compute CRC32 checksum i2c loop chip address[.0, .1, .2] [# of objects] - looping read of device i2c md chip address[.0, .1, .2] [# of objects] - read from I2C device i2c mm chip address[.0, .1, .2] - write to I2C device (auto-incrementing) i2c mw chip address[.0, .1, .2] value [count] - write to I2C device (fill) i2c nm chip address[.0, .1, .2] - write to I2C device (constant address) i2c probe - show devices on the I2C bus i2c read chip address[.0, .1, .2] length memaddress - read to memory i2c reset - re-init the I2C Controller i2c speed [speed] - show or set I2C bus speed
U-Boot$i2c md 80 80 0080: 00 14 97 0f e0 3b 00 00 3c e7 fe 14 22 30 01 27 .....;..<..."0.'
修改地址0xA7的值为0x01: U-Boot$i2c nm 80 a7 000000a7:len=1 10 ? 1 000000a7:len=1
|