[U-Boot] [PATCH 1/2] arm/km: speed up i2c access for keymile boards
Holger Brunck
holger.brunck at keymile.com
Wed Dec 14 16:31:19 CET 2011
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 at keymile.com>
Cc: Valentin Longchamp <valentin.longchamp at keymile.com>
Cc: Prafulla Wadaskar <prafulla at marvell.com>
Cc: Heiko Schocher <hs at denx.de>
---
include/configs/km/km_arm.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 700124c..ca84932 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -195,7 +195,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
--
1.7.1
More information about the U-Boot
mailing list