Aaro Koskinen
baf46b4e37
i2c: OMAP2/3: Fix scll/sclh calculations
...
Fix scll/sclh calculations for HS and fast modes. Currently the driver
uses equal (roughly) low/high times which will result in too short
low time.
OMAP3430 TRM gives the following equations:
F/S: tLow = (scll + 7) * internal_clk
tHigh = (sclh + 5) * internal_clk
HS: tLow = (scll + 7) * fclk
tHigh = (sclh + 5) * fclk
Furthermore, the I2C specification sets the following minimum values
for HS tLow/tHigh for capacitive bus loads 100 pF (maximum speed 3400)
and 400 pF (maximum speed 1700):
speed tLow tHigh
3400 160 ns 60 ns
1700 320 ns 120 ns
and for F/S:
speed tLow tHigh
400 1300 ns 600 ns
100 4700 ns 4000 ns
By using duty cycles 33/66 (HS, F) and 50/50 (S) we stay above these
minimum values.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-06-13 10:39:25 +01:00
..
accessibility
acpi
Merge branch 'irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2009-06-10 15:25:41 -07:00
amba
ata
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
2009-06-11 11:23:17 -07:00
atm
auxdisplay
base
Driver Core: Rework platform suspend/resume, print warning
2009-06-12 21:32:32 +02:00
block
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
2009-06-12 13:15:17 -07:00
bluetooth
tty: fix bluetooth scribbling on low latency flags
2009-06-11 08:51:05 -07:00
cdrom
char
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
2009-06-12 18:09:18 -07:00
clocksource
connector
cpufreq
cpumask: alloc zeroed cpumask for static cpumask_var_ts
2009-06-09 22:30:27 +09:30
cpuidle
crypto
dca
dio
dma
edac
EDAC: do not enable modules by default
2009-06-10 12:19:41 +02:00
eisa
firewire
firmware
[libata] ahci: Restore SB600 SATA controller 64 bit DMA
2009-06-10 11:05:00 -04:00
gpio
gpu
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
2009-06-12 18:09:18 -07:00
hid
hwmon
i2c
i2c: OMAP2/3: Fix scll/sclh calculations
2009-06-13 10:39:25 +01:00
ide
Merge branch 'for-2.6.31' of git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
2009-06-12 09:29:42 -07:00
idle
ieee1394
fs: Remove i_cindex from struct inode
2009-06-11 21:36:09 -04:00
infiniband
input
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
2009-06-12 13:15:17 -07:00
isdn
leds
lguest
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-lguest
2009-06-12 09:32:26 -07:00
macintosh
mca
md
Merge branch 'for-2.6.31' of git://git.kernel.dk/linux-2.6-block
2009-06-11 11:10:35 -07:00
media
memstick
message
[SCSI] Merge branch 'linus'
2009-06-12 10:02:03 -05:00
mfd
misc
mmc
Merge branch 'for-2.6.31' of git://git.kernel.dk/linux-2.6-block
2009-06-11 11:10:35 -07:00
mtd
Merge branch 'for-2.6.31' of git://git.kernel.dk/linux-2.6-block
2009-06-11 11:10:35 -07:00
net
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
2009-06-12 09:50:42 -07:00
nubus
of
oprofile
parisc
parport
parport_pc: clean up the modified while loops using for
2009-06-11 08:51:03 -07:00
pci
Merge branch 'irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2009-06-10 15:25:41 -07:00
pcmcia
platform
pnp
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
2009-06-12 18:09:18 -07:00
power
ps3
rapidio
regulator
rtc
s390
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
2009-06-12 18:18:05 -07:00
sbus
scsi
[SCSI] Merge branch 'linus'
2009-06-12 10:02:03 -05:00
serial
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
2009-06-11 10:08:33 -07:00
sh
sh: Tie sparseirq in to Kconfig.
2009-06-11 10:33:09 +03:00
sn
spi
ssb
staging
tc
telephony
thermal
uio
usb
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
2009-06-12 13:15:17 -07:00
uwb
video
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
2009-06-12 13:15:17 -07:00
virtio
virtio: enhance id_matching for virtio drivers
2009-06-12 22:16:40 +09:30
w1
watchdog
xen
PM core: rename suspend and resume functions
2009-06-12 21:32:31 +02:00
zorro
Kconfig
Makefile