From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cory Tusar Date: Mon, 10 Jan 2005 12:24:58 -0500 Subject: [U-Boot-Users] Re: [U-Boot-CVS] u-boot/drivers omap24xx_i2c.c,NONE,1.1 Makefile,1.29,1.30 ns16550.c,1.6,1.7 serial.c,1.5,1.6 In-Reply-To: <71555548814716479478431542AA5F8A01B1B517@dlee2k04.ent.ti.com> References: <71555548814716479478431542AA5F8A01B1B517@dlee2k04.ent.ti.com> Message-ID: <41E2BA6A.8080204@videon-central.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Woodruff, Richard wrote: > Sorry, > > I ran into the build problem long ago and fixed it locally. I was > preparing to resubmit a patch with a lot of additions and this one > fix....as I was thinking Wolfgang had bypassed it. > > I believe the real fix I used was in the driver itself not above. Its > much simpler and I think the correct one. > > Regards, > Richard W. > > > > The File drivers/omap2420_i2c.c needs to look like this: > ----------------------------------------------------------- > #include > > #ifdef CONFIG_DRIVER_OMAP24XX_I2C > > #include > #include > > #define inw(a) __raw_readw(a) > #define outw(a,v) __raw_writew(a,v) > > > ----------------------------------------------------------- > > previously it WRONGLY looked like: > > #include > #include > #include > > #define inw(a) __raw_readw(a) > #define outw(a,v) __raw_writew(a,v) > > #ifdef CONFIG_DRIVER_OMAP24XX_I2C Attached is a patch which simply includes the above fix. This time, there were no other issues raised during a "MAKEALL arm" test. Wolfgang, please apply this in lieu of the previous patch, as it's the simpler fix. Thanks. -Cory -- Cory T. Tusar Embedded Systems Engineer Videon Central, Inc. 2171 Sandy Drive State College, PA 16801 (814) 235-1111 x316 (814) 235-1118 fax "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." --Brian W. Kernighan -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: omap24xx_i2c_header_fix.Mk-II.patch Url: http://lists.denx.de/pipermail/u-boot/attachments/20050110/caf0b80d/attachment.txt