smbus: Add a helper to generate SPD EEPROM data
commitb296b664abc732532afb732f1d02d22cae9c847a
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 3 Jan 2019 16:27:24 +0000 (3 17:27 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 4 Feb 2019 07:44:17 +0000 (4 18:44 +1100)
tree6de0b5aae3ee7aba612272639f50dcb32c461434
parent583b28d45bf978832be024276fda8fdfe571c447
smbus: Add a helper to generate SPD EEPROM data

There are several boards with SPD EEPROMs that are now using
duplicated or slightly different hard coded data. Add a helper to
generate SPD data for a memory module of given type and size that
could be used by these boards (either as is or with further changes if
needed) which should help cleaning this up and avoid further duplication.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/i2c/smbus_eeprom.c
include/hw/i2c/smbus.h