From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Thanassis Silis <djnass_18@hotmail.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: speed of /dev/i2c-2 in imx6q sabre-lite
Date: Wed, 14 Aug 2013 09:12:52 -0700 [thread overview]
Message-ID: <520BAC84.3020906@boundarydevices.com> (raw)
In-Reply-To: <DUB116-W137B6A832E9FB33D9D8AD3598450@phx.gbl>
Hi Thanassis,
On 08/14/2013 08:40 AM, Thanassis Silis wrote:
> Hi Eric,
> kernel configuration is no stranger to me as I am a longtime slackware
> user, but thank you for the info. It is always nice to know I have not
> understood something the wrong way.
>
Sorry if I was being pedantic. I thought that's what you were asking
and folks come in with all kinds of background.
> What I do not know is how the IMX_I2C_BIT_RATE (which is 100kHz) is
> related to the imxi2c_platform_data structure.
> The file drivers/i2c/busses/i2c_imx.c doesn't include
> arch/arm/mach-mx6/board_nitrogen6x.c (or _sabrelite.c for that matter)
> or vice-versa. So is it correct to say that i2c-imx.c sets the bitrate
> earlier in the boot process and then the platform specific code,
> overwrites/alters that value to what is set in board_nitrogen6x.c ?
Nope. The driver's "probe" routine gets handed the imxi2c_platform_data
structure from the device registration procedure in
board-mx6_nitrogen.c.
IOW, there's a run-time path, not a compile-time path. Otherwise, every
driver would need to know about every board that used it.
If you look closely, all of the uses of IMX_I2C_BIT_RATE are conditional
on either missing "pdata" (platform data) or a zero value for bitrate.
Regards,
Eric
next prev parent reply other threads:[~2013-08-14 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 18:03 speed of /dev/i2c-2 in imx6q sabre-lite Thanassis Silis
2013-08-13 18:30 ` Eric Nelson
2013-08-14 12:25 ` Thanassis Silis
2013-08-14 14:28 ` Eric Nelson
2013-08-14 15:40 ` Thanassis Silis
2013-08-14 16:12 ` Eric Nelson [this message]
2013-08-14 18:44 ` Thanassis Silis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=520BAC84.3020906@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=djnass_18@hotmail.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.