iicbus(4) speed selection
M. Warner Losh
imp at bsdimp.com
Sun Dec 14 09:15:18 PST 2008
In message: <20081214145807.GA18293 at tirith.brixandersen.dk>
Henrik Brix Andersen <brix at freebsd.org> writes:
: Hi,
:
: One of the parameters to our iicbus_reset method is a speed selection,
: which can be either IIC_SLOW, IIC_FAST or IIC_FASTEST.
:
: Both arm/at91/at91_twi.c and dev/pcf/pcf.c interpret these as 1.5kb/s,
: 45kb/s and 90kb/s respectively, which has me wondering. Knowing I2C, I
: would have expected something like 10kb/s, 100kb/s and 400kb/s.
:
: Does anybody know why these speeds were selected when implementing the
: above mentioned drivers? Are new drivers required to match these
: speeds?
These speeds were pulled out of the air. I copied pcf's conventions.
I think that really on the at91_twi the speeds were set in the TWI's
hardware and the comments are just wrong.
Warner
More information about the freebsd-embedded
mailing list