diff options
author | Wolfgang Denk <wd@fifi.denx.de> | 2006-06-16 16:57:18 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@fifi.denx.de> | 2006-06-16 16:57:18 +0200 |
commit | 30a43cc2aeb84dfd96a411fb2da2ff4ab10dcd5a (patch) | |
tree | edaf73ade1f4ae3fb1b764498d62715f68bd88f6 /cpu/arm920t/s3c24x0/i2c.c | |
parent | 10af6d53bcf068b91c1b6ce6aa0fad5d89b36f81 (diff) | |
download | u-boot-imx-30a43cc2aeb84dfd96a411fb2da2ff4ab10dcd5a.zip u-boot-imx-30a43cc2aeb84dfd96a411fb2da2ff4ab10dcd5a.tar.gz u-boot-imx-30a43cc2aeb84dfd96a411fb2da2ff4ab10dcd5a.tar.bz2 |
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
Diffstat (limited to 'cpu/arm920t/s3c24x0/i2c.c')
-rw-r--r-- | cpu/arm920t/s3c24x0/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/arm920t/s3c24x0/i2c.c b/cpu/arm920t/s3c24x0/i2c.c index ef56cd1..374b683 100644 --- a/cpu/arm920t/s3c24x0/i2c.c +++ b/cpu/arm920t/s3c24x0/i2c.c @@ -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 */ |