[U-Boot] ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabled

Tom Rini trini at konsulko.com
Tue Sep 18 21:25:38 UTC 2018


On Mon, Aug 20, 2018 at 08:34:00PM -0500, Adam Ford wrote:

> boot-common.c checks to see if I2C is enabled in SPL, but
> it doens't check for DM_I2C before initializing it.  This
> will now only initialize the I2C is the DM_I2C is not enabled
> to avoid initializing it more than once.
> 
> Signed-off-by: Adam Ford <aford173 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c
> index d4a1e2e42c..176d4f67cb 100644

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180918/44deb91a/attachment.sig>


More information about the U-Boot mailing list