mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
i2c.h: drop i2c_reg_{read, write} hack for Blackfin parts
The Blackfin i2c driver has been rewritten thus the special ifdefs in the common code are no longer needed. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
f15c6515fc
commit
15208ac9ea
@ -159,14 +159,7 @@ static inline u8 i2c_reg_read(u8 addr, u8 reg)
|
|||||||
printf("%s: addr=0x%02x, reg=0x%02x\n", __func__, addr, reg);
|
printf("%s: addr=0x%02x, reg=0x%02x\n", __func__, addr, reg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BLACKFIN
|
|
||||||
/* This ifdef will become unneccessary in a future version of the
|
|
||||||
* blackfin I2C driver.
|
|
||||||
*/
|
|
||||||
i2c_read(addr, reg, 0, &buf, 1);
|
|
||||||
#else
|
|
||||||
i2c_read(addr, reg, 1, &buf, 1);
|
i2c_read(addr, reg, 1, &buf, 1);
|
||||||
#endif
|
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
@ -183,14 +176,7 @@ static inline void i2c_reg_write(u8 addr, u8 reg, u8 val)
|
|||||||
__func__, addr, reg, val);
|
__func__, addr, reg, val);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_BLACKFIN
|
|
||||||
/* This ifdef will become unneccessary in a future version of the
|
|
||||||
* blackfin I2C driver.
|
|
||||||
*/
|
|
||||||
i2c_write(addr, reg, 0, &val, 1);
|
|
||||||
#else
|
|
||||||
i2c_write(addr, reg, 1, &val, 1);
|
i2c_write(addr, reg, 1, &val, 1);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user