diff options
author | wdenk <wdenk> | 2002-12-17 01:51:00 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2002-12-17 01:51:00 +0000 |
commit | 6aff3115b90780933d390d2b471479179927468d (patch) | |
tree | ea9e54617d8a6f6b2d05d37c7f2bde24ce6dfb35 /common/soft_i2c.c | |
parent | 228f29ac6e0026e596b3a6fbb640118b9944cdd8 (diff) | |
download | bootable_bootloader_goldelico_gta04-6aff3115b90780933d390d2b471479179927468d.zip bootable_bootloader_goldelico_gta04-6aff3115b90780933d390d2b471479179927468d.tar.gz bootable_bootloader_goldelico_gta04-6aff3115b90780933d390d2b471479179927468d.tar.bz2 |
* Use 1-byte-read instead of -write for iprobe() function
Add i2c commands to PM826 config
* extend I2C POST code: check for list on known addresses
Diffstat (limited to 'common/soft_i2c.c')
-rw-r--r-- | common/soft_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/soft_i2c.c b/common/soft_i2c.c index 7777480..6357404 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c @@ -287,8 +287,9 @@ int i2c_probe(uchar addr) { int rc; + /* perform 1 byte read transaction */ send_start(); - rc = write_byte ((addr << 1) | 1); + rc = write_byte ((addr << 1) | 0); send_stop(); return (rc ? 1 : 0); |