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>2019-04-24 08:01:56 +0000
commit48661b7267f49ad65383a1a6aff300a88b55dbf6 (patch)
treea7d738b2cede0a4f178058c0a604258cc539d01f
parente3209592cd93eebc76e25eabb5eb7dc0a2865fbd (diff)
downloadblackbird-skiboot-48661b7267f49ad65383a1a6aff300a88b55dbf6.tar.gz
blackbird-skiboot-48661b7267f49ad65383a1a6aff300a88b55dbf6.zip
Temporary fix to expose proper MVPD size to host OS
-rw-r--r--hdata/i2c.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hdata/i2c.c b/hdata/i2c.c
index e3615a59..23a760b1 100644
--- a/hdata/i2c.c
+++ b/hdata/i2c.c
@@ -309,6 +309,15 @@ int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
&& dev_addr < 0x58) {
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