From: Luotao Fu <l.fu@pengutronix.de>
To: Timur Tabi <timur@freescale.com>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>, linuxppc-dev@ozlabs.org
Subject: Re: i2c-mpc clocking scheme
Date: Thu, 27 Nov 2008 16:49:43 +0100 [thread overview]
Message-ID: <492EC197.1060503@pengutronix.de> (raw)
In-Reply-To: <ed82fe3e0811270724t26d2a8e2v233143722eb8587f@mail.gmail.com>
Timur Tabi wrote:
> On Thu, Nov 27, 2008 at 9:00 AM, Andre Schwarz
> <andre.schwarz@matrix-vision.de> wrote:
>> All,
>>
>> is anybody working on some improvements regarding configurable I2C
>> frequency inside the i2c-mpc driver ?
>>
>> If not - would anybody be intersted in getting this done, i.e.
>> configurable via device tree ?
>
> Maybe I'm missing something, but U-Boot configures the I2C bus speed.
i2c-mpc sets the bus clock in kernel with mpc_i2c_setclock. The bus
speed in kernel is indepedent from u-boot.
> It does this because the algorithm is specific to the SOC itself. For
> example, the 8544 is different from the 8548. It would be a mess to
> duplicate this code in the kernel.
>
I did try to write some mechanismen to make the i2c bus speed
configurable for mpc5200. I found it quite hard to find some algorithm
to calculate the right values in the Timing table of the I2C bus
controller. Anyhow I gave it up after starring at the datasheet for some
time. ;-) I can't speak for other platforms, which are supported by
i2c-mpc. Anyway, I do think it might be interesting to have configurable
i2c bus speed.
cheers
Luotao Fu
--
Dipl.-Ing. Luotao Fu | Phone: +49-5121-206917-5004
Pengutronix - Linux Solutions for Science and Industry
Entwicklungszentrum Nord http://www.pengutronix.de
prev parent reply other threads:[~2008-11-27 16:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 15:00 i2c-mpc clocking scheme Andre Schwarz
2008-11-27 15:24 ` Timur Tabi
2008-11-27 15:43 ` Andre Schwarz
2008-11-28 20:59 ` Trent Piepho
2008-12-01 14:59 ` Timur Tabi
2008-12-01 19:40 ` André Schwarz
2008-12-01 19:48 ` Timur Tabi
2008-12-01 22:07 ` Trent Piepho
2008-12-01 22:26 ` Scott Wood
2008-12-01 22:57 ` Trent Piepho
2008-12-01 23:00 ` Timur Tabi
2008-12-01 23:07 ` Scott Wood
2008-11-27 15:49 ` Luotao Fu [this message]
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=492EC197.1060503@pengutronix.de \
--to=l.fu@pengutronix.de \
--cc=andre.schwarz@matrix-vision.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=timur@freescale.com \
/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.