From: Andrew Ruder Date: Fri, 21 Aug 2015 07:04:37 -0500 Subject: [U-Boot] [PATCH] i2c: adding driver for pxa27x, pxa3xx, pxa25x In-Reply-To: <201508122134.14593.marex@denx.de> References: <1439405032-7297-1-git-send-email-andrew.ruder@elecsyscorp.com> <201508122134.14593.marex@denx.de> Message-ID: <20150821120437.GB21772@og3k.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 Wed, Aug 12, 2015 at 09:34:14PM +0200, Marek Vasut wrote: > On Wednesday, August 12, 2015 at 08:43:52 PM, Andrew Ruder wrote: > > +#if !defined(CONFIG_SYS_PXA_STD_I2C_SPEED) > > +#define CONFIG_SYS_PXA_STD_I2C_SPEED 100000 > > +#endif > > + > > +#if !defined(CONFIG_SYS_PXA_STD_I2C_SLAVE) > > +#define CONFIG_SYS_PXA_STD_I2C_SLAVE 1 > > +#endif > > + > > +#if !defined(CONFIG_SYS_PXA_PWR_I2C_SPEED) > > +#define CONFIG_SYS_PXA_PWR_I2C_SPEED 40000 > > +#endif > > + > > +#if !defined(CONFIG_SYS_PXA_PWR_I2C_SLAVE) > > +#define CONFIG_SYS_PXA_PWR_I2C_SLAVE 1 > > +#endif > > Please remove all this stuff, it's only going to hide bugs. Hide in what way? Just require that ports define them when enabling the i2c driver? ... or don't make it externally configurable? Thanks, Andrew