Bugfix in I2C initialisation on S3C2400.
If the bus is blocked because of a previously interrupted transfer, up to eleven clocks are generated on the I2CSCL line to complete the transfer and to free the bus. With this fix pin I2CSCL (PG6) is really configured as GPIO so the clock pulses are really generated. Patch by Martin Krause, 04 Apr 2006
This commit is contained in:
1 parent
10af6d53bc
commit
30a43cc2ae
2 files changed
+9
-1
No files matched your search
@@ -153,7 +153,7 @@ void i2c_init (int speed, int slaveadd)
|
||||
#endif
|
||||
#ifdef CONFIG_S3C2400
|
||||
/* set I2CSDA and I2CSCL (PG5, PG6) to GPIO */
|
||||
gpio->PGCON = (gpio->PGCON & ~0x00003c00) | 0x00000c00;
|
||||
gpio->PGCON = (gpio->PGCON & ~0x00003c00) | 0x00001000;
|
||||
#endif
|
||||
|
||||
/* toggle I2CSCL until bus idle */
|
||||
|
||||
Reference in new issue
Block a user