summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-05-30 16:42:12 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-30 19:00:22 -0500
commitbc106a09b0ab298ec71b3ef8337fb5f820a7c454 (patch)
treefb37e7d686897b1255398a3408d85f2367252489
parent5bd3978da391d2ebb3698ab782300ca260ecf325 (diff)
downloadtalos-skiboot-06-04-2018.tar.gz
talos-skiboot-06-04-2018.zip
Temporary fix to expose proper MVPD size to host OS06-04-2018
-rw-r--r--hdata/i2c.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c
index 9bbec665..bf29fc11 100644
--- a/hdata/i2c.c
+++ b/hdata/i2c.c
@@ -300,6 +300,15 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
dev->i2cm_engine == 3) {
compat = "spd";
name = "eeprom";
+ } else if (proc_gen == proc_gen_p9 && dev->type == 0x2 &&
+ dev->i2cm_engine == 1 && dev->i2cm_port == 0) {
+ /* HACK
+ * Module VPD is 64k, not 16k
+ * Hostboot is only indicating generic VPD type here
+ * Override to the 64k at24 part
+ */
+ compat = "atmel,24c512";
+ name = "eeprom";
} else if (type) {
compat = type->compat;
name = type->name;
OpenPOWER on IntegriCloud