From: Stefan Roese Date: Tue, 21 Jan 2020 08:38:15 +0100 Subject: [PATCH v2 03/10] cmd: add tlv_eeprom command In-Reply-To: <4af0f83f463ca09c4e68ea79068c11a181d0f5fd.1579522639.git.baruch@tkos.co.il> References: <4af0f83f463ca09c4e68ea79068c11a181d0f5fd.1579522639.git.baruch@tkos.co.il> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20.01.20 13:20, Baruch Siach wrote: > 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 > --- > cmd/Kconfig | 14 + > cmd/Makefile | 2 + > cmd/tlv_eeprom.c | 1105 ++++++++++++++++++++++++++++++++++++++++++ > include/tlv_eeprom.h | 164 +++++++ > 4 files changed, 1285 insertions(+) > create mode 100644 cmd/tlv_eeprom.c > create mode 100644 include/tlv_eeprom.h Reviewed-by: Stefan Roese Thanks, Stefan