diff options
| author | wdenk <wdenk> | 2003-04-08 23:25:21 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-04-08 23:25:21 +0000 | 
| commit | 60fbe254243ec461ec73da13132be098db33d3fa (patch) | |
| tree | af82977065ec5f1fdea17bd1056395005d652d24 /common/soft_i2c.c | |
| parent | 3e38691e8f7aa0d9b498d76c7279ddec6e4946f3 (diff) | |
| download | olio-uboot-2014.01-60fbe254243ec461ec73da13132be098db33d3fa.tar.xz olio-uboot-2014.01-60fbe254243ec461ec73da13132be098db33d3fa.zip | |
Prepare for 0.3.0 releaseU-Boot-0_3_0
* Add support for Purple Board (MIPS64 5Kc)
* Add support for MIPS64 5Kc CPUs
Diffstat (limited to 'common/soft_i2c.c')
| -rw-r--r-- | common/soft_i2c.c | 13 | 
1 files changed, 5 insertions, 8 deletions
| diff --git a/common/soft_i2c.c b/common/soft_i2c.c index 63574044a..dc26d6f50 100644 --- a/common/soft_i2c.c +++ b/common/soft_i2c.c @@ -83,8 +83,12 @@ static void send_reset(void)  #endif  	int j; -	I2C_ACTIVE; +	I2C_SCL(1);  	I2C_SDA(1); +#ifdef	I2C_INIT +	I2C_INIT; +#endif +	I2C_TRISTATE;  	for(j = 0; j < 9; j++) {  		I2C_SCL(0);  		I2C_DELAY; @@ -262,13 +266,6 @@ static uchar read_byte(int ack)   */  void i2c_init (int speed, int slaveaddr)  { -#ifdef	CONFIG_8xx -	volatile immap_t *immr = (immap_t *)CFG_IMMR; -#endif - -#ifdef	I2C_INIT -	I2C_INIT; -#endif  	/*           * WARNING: Do NOT save speed in a static variable: if the           * I2C routines are called before RAM is initialized (to read |