]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: add tlv_eeprom command
authorBaruch Siach <baruch@tkos.co.il>
Tue, 21 Jan 2020 13:44:54 +0000 (15:44 +0200)
committerStefan Roese <sr@denx.de>
Tue, 21 Jan 2020 14:56:15 +0000 (15:56 +0100)
commit83bce702c828c6b246f0b13aeaa197988927dca0
treee236127f96090b3bfb151d5b64a050f850b9a4db
parentc893f0c257224b65482da7158268c102fd9a2902
cmd: add tlv_eeprom command

Add support for read/write of ONIE "Tlvinfo" EEPROM data format. TLV
stands for Type-Length-Value. The data format is described here:

  https://opencomputeproject.github.io/onie/design-spec/hw_requirements.html#board-eeprom-information-format

Based on U-Boot patch from the Open Compute project:

  https://github.com/opencomputeproject/onie/blob/ec87e872d46b9805565d2c6124b2f701ef1c07b1/patches/u-boot/common/feature-sys-eeprom-tlv-common.patch

Keep only I2C EEPROM support. Use the generic eeprom driver. Fix
checkpatch issues.

Add support for multiple EEPROM TLV stores on the same system. This is
useful in case of SOM and carrier that both provide ID and hardware
configuration information.

Add option to enable for SPL. This allows selection of RAM configuration
based on EEPROM stored board identification.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
cmd/Kconfig
cmd/Makefile
cmd/tlv_eeprom.c [new file with mode: 0644]
include/tlv_eeprom.h [new file with mode: 0644]