summaryrefslogtreecommitdiff
path: root/include/configs/km
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2011-12-14 05:31:19 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-12 10:11:28 +0100
commit9e9c6d7cf668673c18c56951dffb0abfc1f7254b (patch)
treebe0c5df15ca55c75ed8e938c10a1ecdc4868e003 /include/configs/km
parent96f5c4b2c938d4bb76926d132e5ddc112a2493f4 (diff)
downloadu-boot-imx-9e9c6d7cf668673c18c56951dffb0abfc1f7254b.zip
u-boot-imx-9e9c6d7cf668673c18c56951dffb0abfc1f7254b.tar.gz
u-boot-imx-9e9c6d7cf668673c18c56951dffb0abfc1f7254b.tar.bz2
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>
Diffstat (limited to 'include/configs/km')
-rw-r--r--include/configs/km/km_arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 9c8d222..c73a10c 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