All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] arm/km: speed up i2c access for keymile boards
@ 2011-12-14 15:31 Holger Brunck
  2011-12-14 15:31 ` [U-Boot] [PATCH 2/2] arm/km: checkpatch cleanup Holger Brunck
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Holger Brunck @ 2011-12-14 15:31 UTC (permalink / raw)
  To: u-boot

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>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-08  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 15:31 [U-Boot] [PATCH 1/2] arm/km: speed up i2c access for keymile boards Holger Brunck
2011-12-14 15:31 ` [U-Boot] [PATCH 2/2] arm/km: checkpatch cleanup Holger Brunck
2011-12-15  6:31   ` Heiko Schocher
2011-12-15  6:30 ` [U-Boot] [PATCH 1/2] arm/km: speed up i2c access for keymile boards Heiko Schocher
2012-02-08  8:49 ` Holger Brunck
2012-02-08  9:47   ` Prafulla Wadaskar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.