fru-device: update eeprom offsets back to 16 bits instead of 32/64

Previously this read would take in an 8 bit ptr representing serialized data with a fixed length of 2. Now it takes a span of the same variable and the span length (4) is used to address certain devices. This fixes the length by restoring it back to 2 or 16 bits.

Tested: eeproms of FRUs detected and loaded successfully
Platforms-Affected: All Platforms
Google-Bug-Id: 485282165
fusion2: in comments
Change-Id: I09c04b53b2c5b5e0e3439811e156864d4b27c4cb
Signed-off-by: Sam Agazaryan <samagazaryan@google.com>
1 file changed
tree: 141ef62bdb87ec22c35f680975be9eed21954dc7
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.