From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Mon, 14 Sep 2009 18:01:23 +0200 Subject: [U-Boot] fsl_i2c: increase I2C timeout values and make them configurable In-Reply-To: <4AAE55FA.4070702@freescale.com> References: <4AA8FA18.20103@freescale.com> <4AA8FF3F.4010105@freescale.com> <4AA91AA5.3090707@freescale.com> <4AA9258F.8070402@freescale.com> <4AAA6ACD.9040905@freescale.com> <4AAE50AF.3090403@grandegger.com> <4AAE55FA.4070702@freescale.com> Message-ID: <4AAE68D3.8010900@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Timur Tabi wrote: > Wolfgang Grandegger wrote: > >> I did not follow the thread yet, sorry. I implemented AN2819 for Linux >> (see http://lxr.linux.no/#linux+v2.6.31/drivers/i2c/busses/i2c-mpc.c) >> some time ago using Timur's table approach. But there is no difference >> between the table and the algorithm to calculate the value. The table is >> actually derived from the same algorithm. > > The problem with the table is that it does not allow for flexibility in choosing dfsr. When I implemented the table code, I did not think that this was a problem, but apparently it is. What would be the criteria to choose dfsr, especially for a defined bus frequency. Wolfgang.