mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
arm/km: speed up i2c access for keymile boards
We don't need 3us delay for our i2c bus. Decrease it to 1us. It would also be possible to use 100ns in the future, but currently kirkwood has no ndelay implementation. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Cc: Valentin Longchamp <valentin.longchamp@keymile.com> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Heiko Schocher <hs@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
96f5c4b2c9
commit
9e9c6d7cf6
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ int get_scl(void);
|
|||
#define I2C_SCL(bit) kw_gpio_set_value(KM_KIRKWOOD_SCL_PIN, bit)
|
||||
#endif
|
||||
|
||||
#define I2C_DELAY udelay(3) /* 1/4 I2C clock duration */
|
||||
#define I2C_DELAY udelay(1)
|
||||
#define I2C_SOFT_DECLARATIONS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue