]> Git Repo - J-u-boot.git/commit
dm: i2c: allow disabling driver model in SPL
authorIgor Opaniuk <[email protected]>
Tue, 9 Feb 2021 11:52:43 +0000 (13:52 +0200)
committerHeiko Schocher <[email protected]>
Sun, 21 Feb 2021 05:07:30 +0000 (06:07 +0100)
commitd1f3abe1e71f8e160ca09272ff0463b1b927635d
tree6714aebfa94a72557a91c308263f6bd52a630dfe
parent73c16692bcf7505d01596f48d2006dadfa3d14ab
dm: i2c: allow disabling driver model in SPL

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 <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Signed-off-by: Igor Opaniuk <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/misc/Makefile
This page took 0.028088 seconds and 4 git commands to generate.