]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6406/1: at91sam9g45: fix i2c bus speed
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 22 Sep 2010 20:29:59 +0000 (21:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 23 Sep 2010 14:08:48 +0000 (15:08 +0100)
commit32159e08954b3c823f849b94280060d515a52223
tree3d6650d378615d829d0f89e15755a0c95228a7e3
parent41fc18eaa554558a7804a1aac809df0f0737251d
ARM: 6406/1: at91sam9g45: fix i2c bus speed

Use a correct udelay value to get bus speed around 100KHz. The udelay
value was most likely copied from the older devices, but the 9g45
is signicantly faster (400MHz, DDR, ..), so a udelay of 2 gives a
bus speed of around 190KHz, which is too fast for some devices.
A udelay value of 5 gives a bus speed of around 90KHz here.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/at91sam9g45_devices.c