From 9e9c6d7cf668673c18c56951dffb0abfc1f7254b Mon Sep 17 00:00:00 2001 From: Holger Brunck Date: Wed, 14 Dec 2011 05:31:19 +0000 Subject: [PATCH] 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 --- include/configs/km/km_arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2