drivers/ocp/dmi: Add OCP_DMI driver for populating SMBIOS from IPMI FRU data
commitad0ccb336d0184c7e4bd8157483bc80a5dfd5ab4
authorJohnny Lin <johnny_lin@wiwynn.com>
Fri, 10 Apr 2020 10:28:33 +0000 (10 18:28 +0800)
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>
Sat, 4 Jul 2020 11:31:16 +0000 (4 11:31 +0000)
treed77f608549c5fbc0a1c2e5530a14534c2f53e96d
parent29f61a2110a04b3e21f374d9ad5a853146f74485
drivers/ocp/dmi: Add OCP_DMI driver for populating SMBIOS from IPMI FRU data

It implements the SMBIOS IPMI FRU mapping table defined in
https://www.opencompute.org/documents/facebook-xeon-motherboard-v31
22.3 SMBIOS FRU mapping table.
Mainboard needs to configure the correct values for FRU_DEVICE_ID and BMC_KCS_BASE.

For type 11 string 1 to 6 are common and implemented in this driver, the
rest are project dependent and can be added in the mainboard code.

Tested on OCP Tioga Pass.

Change-Id: I08c958dfad83216cd12545760a19d205efc2515b
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40308
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/ocp/dmi/Kconfig [new file with mode: 0644]
src/drivers/ocp/dmi/Makefile.inc [new file with mode: 0644]
src/drivers/ocp/dmi/ocp_dmi.h [new file with mode: 0644]
src/drivers/ocp/dmi/smbios.c [new file with mode: 0644]