All of lore.kernel.org
 help / color / mirror / Atom feed
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 07:28:04 -0700	[thread overview]
Message-ID: <520B93F4.9060306@boundarydevices.com> (raw)
In-Reply-To: <DUB116-W128249CCBF311F46EF97C4D98450@phx.gbl>

Hi Thanassis,

On 08/14/2013 05:25 AM, Thanassis Silis wrote:
> Eric,
> thank you very much for the answer (I have compiled kernel 3.0.35_1.1.0
> by the way, but the code hasn't changed since then).
> I do have a question (in my limited kernel knowledge) :)
> https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.0.0/drivers/i2c/busses/i2c-imx.c#L63
>
> this looks like a module, but as I see in my sabrelite's
> /lib/modules/3.0.35-1.1.0+g2dc5560
> modules.builtin:92:kernel/drivers/i2c/busses/i2c-imx.ko
> it is built in the kernel.
>
> What is the purpose of i2c-imx and how does it relate to imx* boards?
>
i2c-imx is the device driver for the i2c part on many i.MX
processors, including i.MX6.

Because it's needed for many internal operations, we compile it
into the kernel, instead of as a separately loadable module.

This is a bit of "kernel configuration 101", but when you configure
drivers into the Linux kernel, you can generally choose either
"*" or "M", shown as "y" or "m" in the .config file:
	https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.0.35_4.0.0/arch/arm/configs/nitrogen6x_defconfig#L144

When you choose '*' or 'y', the driver is included in the
kernel itself (uImage on our normal usage).

If you choose 'm', the external .ko file is built.

This is mostly important at startup, since you have to have
a working filesystem and utilities like 'modprobe' or 'insmod'
to load a .ko file.

Regards,


Eric


  reply	other threads:[~2013-08-14 14:28 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 [this message]
2013-08-14 15:40       ` Thanassis Silis
2013-08-14 16:12         ` Eric Nelson
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=520B93F4.9060306@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.