From: Timur Tabi Date: Wed, 9 Jul 2008 09:22:32 -0400 Subject: [U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x processors. In-Reply-To: <20080707180217.B3DFA248FE@gemini.denx.de> References: <20080707180217.B3DFA248FE@gemini.denx.de> Message-ID: <97BEED33-66C8-4DFF-B72F-74384158AABF@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Jul 7, 2008, at 2:02 PM, Wolfgang Denk wrote: > In message <1215447465.12657.15.camel@localhost> you wrote: >> >> I just extended the fsl_i2c.c driver that already uses a precomputed > > Yes, I know. I never understood what such a complicated driver for > sich a simple protocol was good for, especially as we don't do > multimegabytepersecond transfers over such a bus. The driver is no more complicated than the hardware itself. The Freescale I2C controller has a complicated, screwball method for setting the I2C bus speed, and the driver tries to simplify that as much as possible. Setting the I2C bus speed *may* be important on some boards with flaky I2C devices. > Accurate? There is no requirement to be "accurate" anywhere in the > I2C protocol. Some devices cannot handle certain bus speeds, and some devices may work better at higher bus speeds, so it may be important to control the bus speed accurately. However, Luigi's patch is bad because it modifies a common file for a specific board. I'm going to NAK it.