]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: eeprom: Extend to EEPROMs probed via driver model
authorMarek Behún <kabel@kernel.org>
Tue, 21 May 2024 07:13:35 +0000 (09:13 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2024 16:48:00 +0000 (10:48 -0600)
commit57a9e8d86fde5732f77577adf52dcb62fcdc068a
treef5c7ab135b10f094eb41d6d82a9e97673d557cd7
parente5dbc80fe0e87d8a6e5226c4b3329d648fd89386
cmd: eeprom: Extend to EEPROMs probed via driver model

Extend the 'eeprom' command to allow accessing EEPROMs probed via
driver model, uclass UCLASS_I2C_EEPROM.

When the CONFIG_I2C_EEPROM config option is enabled (and so the
i2c-eeprom driver is built), the 'eeprom' command now accepts driver
model device name as EEPROM specifier for the 'eeprom' command, in
addition to the legacy [[bus] devaddr] specifier.

Moreover if no device specifier is given, then the first
UCLASS_I2C_EEPROM device is used, if found.

Signed-off-by: Marek Behún <kabel@kernel.org>
cmd/eeprom.c