[PATCH v2] cmd: kconfig: i2c: add missing I2C API dependency
Tom Rini
trini at konsulko.com
Thu Jul 2 18:33:58 CEST 2026
On Thu, Jul 02, 2026 at 05:26:57PM +0200, Julien Stephan wrote:
> CMD_I2C relies on either the Driver Model I2C API or the legacy I2C
> API, but its Kconfig currently does not enforce either dependency.
>
> As a result, enabling CMD_I2C without DM_I2C or SYS_I2C_LEGACY can lead
> to link errors due to unresolved i2c_* symbols.
>
> Require either DM_I2C or SYS_I2C_LEGACY to prevent unsupported
> configurations while preserving support for legacy platforms.
>
> Signed-off-by: Julien Stephan <jstephan at baylibre.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260702/a1c44327/attachment.sig>
More information about the U-Boot
mailing list