Wolf: Add 2GB memory support in mosys.

Add 2GB memory support in mosys for probing HWID.
BRANCH=factory-4455.B
BUG=chrome-os-partner:23534
TEST=execute "mosys -v -l memory spd print id"
Check the output of the command having the deisred memory information.

Change-Id: I2c9d5ebe2e641ead19486863cc0947c8faa9a922
Signed-off-by: chuckche <chuck.chen@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/176781
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-by: Mohammed Habibulla <moch@google.com>
diff --git a/platform/experimental/slippy/memory.c b/platform/experimental/slippy/memory.c
index 9ecafef..1fa527c 100644
--- a/platform/experimental/slippy/memory.c
+++ b/platform/experimental/slippy/memory.c
@@ -130,8 +130,17 @@
 		 * {1,1,0} = 2G Samsung
 		 */
 		return slippy_get_spd_index(intf) >= 4 ? 1 : 2;
+	} else if (!strncmp(intf->name, "Wolf", 4)) {
+		/* Wolf RAM_ID
+		 * {0,0,0} = 4G Micron
+		 * {0,0,1} = 4G Hynix
+		 * {0,1,0} = 4G Samsung
+		 * {0,1,1} = 2G Micron
+		 * {1,0,0} = 2G Hynix
+		 * {1,0,1} = 2G Samsung
+		 */
+		return slippy_get_spd_index(intf) >= 3 ? 1 : 2;
 	}
-	/* FIXME: Add Wolf handling (if needed) */
 	else
 		return SLIPPY_DIMM_COUNT;
 }