From: Holger Brunck Date: Wed, 14 Dec 2011 05:31:19 +0000 (+0000) Subject: arm/km: speed up i2c access for keymile boards X-Git-Tag: v2012.04-rc1~202 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e9c6d7cf668673c18c56951dffb0abfc1f7254b;p=u-boot 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 Cc: Valentin Longchamp Cc: Prafulla Wadaskar Cc: Heiko Schocher Acked-by: Heiko Schocher --- diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h index 9c8d222c2f..c73a10c667 100644 --- a/include/configs/km/km_arm.h +++ b/include/configs/km/km_arm.h @@ -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