From: Tom Rini Date: Wed, 10 Feb 2021 12:50:55 -0500 Subject: [PATCH v3 1/3] dm: i2c: allow disabling driver model in SPL In-Reply-To: <20210209115245.47288-2-igor.opaniuk@gmail.com> References: <20210209115245.47288-1-igor.opaniuk@gmail.com> <20210209115245.47288-2-igor.opaniuk@gmail.com> Message-ID: <20210210175055.GE10169@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Feb 09, 2021 at 01:52:43PM +0200, Igor Opaniuk wrote: > From: Igor Opaniuk > > At present if U-Boot proper uses driver model for I2C, then SPL has to > also. While this is desirable, it places a significant barrier to moving > to driver model in some cases. For example, with a space-constrained SPL > it may be necessary to enable CONFIG_SPL_OF_PLATDATA which involves > adjusting some drivers. > > This patch introduces a separate Kconfig symbols for enabling DM_I2C and > DM_I2C_GPIO support in SPL. > > This will also help to get away from dirty workarounds to > achieve non-DM I2C support for SPL, which is currently used in some > board header files like: > > ifdef CONFIG_SPL_BUILD > undef CONFIG_DM_I2C > endif > > Reviewed-by: Simon Glass > Reviewed-by: Heiko Schocher > Signed-off-by: Igor Opaniuk > Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: