public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add support for setting the I2C bus speed in fsl_i2c.c
Date: Thu, 27 Mar 2008 09:33:28 -0500	[thread overview]
Message-ID: <47EBB038.2030704@freescale.com> (raw)
In-Reply-To: <20080326231214.7F0EA242FC@gemini.denx.de>

Wolfgang Denk wrote:

> I have to admit that I don't like the impact on the memory footprint
> of the driver.

I can't think of any other way to support programmable I2C bus speeds.  Even if
we did something like this in the board header files:

#define CFG_FSL_I2C_DFSR	43
#define CFG_FSL_I2C_FDR		3

We still would not be able to support the "i2c speed" command.

I did my best to make fsl_i2c_speed_map[] as small as possible.  It should be
smaller than 300 bytes.

Besides, this code is for Freescale's high-end SOCs.  Memory footprint is critical.

> And to make sure I understand this correctly: is it correct to assume
> that this driver has never been tested with environment in a EEPROM?

Do you mean the fsl_i2c.c driver itself, or the driver with my patch?  I don't
know if the driver itself has been tested, but I did not test my driver with any
major data in the EEPROM.  If it turns out that the new values for the I2C bus
speed registers are too aggressive, then they can be tuned.  Prior to this
patch, the values couldn't be tuned without hacking common code.

-- 
Timur Tabi
Linux kernel developer at Freescale

  reply	other threads:[~2008-03-27 14:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 22:45 [U-Boot-Users] [PATCH] Add support for setting the I2C bus speed in fsl_i2c.c Timur Tabi
2008-03-15  7:35 ` Jean-Christophe PLAGNIOL-VILLARD
2008-03-15 21:27   ` Timur Tabi
2008-03-26 15:39 ` Timur Tabi
2008-03-26 16:36   ` Andy Fleming
2008-03-26 23:12 ` Wolfgang Denk
2008-03-27 14:33   ` Timur Tabi [this message]
2008-03-27  9:11 ` Luigi 'Comio' Mantellini
2008-03-27  9:45   ` Luigi 'Comio' Mantellini
2008-03-27 14:46     ` Timur Tabi
2008-03-27 14:56       ` Wolfgang Denk
2008-03-27 17:30       ` Liew Tsi Chung
2008-03-27 17:50         ` Timur Tabi
2008-03-27 18:42           ` Liew Tsi Chung
2008-04-14  1:09             ` Wolfgang Denk
2008-04-14  1:09     ` Wolfgang Denk

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=47EBB038.2030704@freescale.com \
    --to=timur@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox