Candy: Update SPD entries

Update SPD entries based on the latest RAM config table.

BUG=chrome-os-partner:55040
BRANCH=None
TEST=emerge-candy mosys, run "mosys memory spd print all" on candy
Signed-off-by: Ted Kuo <tedkuo@ami.com.tw>

Change-Id: I7ff3bbdb2035f9553b586661a39d5a5e2d6b7cd7
Reviewed-on: https://chromium-review.googlesource.com/358334
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
Tested-by: Ted Kuo <tedkuo@ami.com.tw>
diff --git a/platform/experimental/rambi/memory.c b/platform/experimental/rambi/memory.c
index b36f97d..23a44ea 100644
--- a/platform/experimental/rambi/memory.c
+++ b/platform/experimental/rambi/memory.c
@@ -65,7 +65,8 @@
 {
 	int gpio_count;
 
-	if (!strncmp(intf->name, "Glimmer", 7))
+	if (!strncmp(intf->name, "Candy", 5) ||
+		!strncmp(intf->name, "Glimmer", 7))
 		gpio_count = 4;
 	else
 		gpio_count = 3;
@@ -128,16 +129,22 @@
         }
         } else if (!strncmp(intf->name, "Candy", 5)) {
 		/*
-		 * {0,0,0} = 2 x 2GiB Micron
-		 * {0,0,1} = 2 x 2GiB Hynix
-		 * {0,1,0} = 2 x 2GiB Samsung
-		 * {0,1,1} = 1 x 2GiB Samsung
-		 * {1,0,0} = 1 x 2GiB Micron
-		 * {1,0,1} = 1 x 2GiB Hynix
+		 * {0,0,0,0} = 2 x 2GiB Micron
+		 * {0,0,0,1} = 2 x 2GiB Hynix
+		 * {0,0,1,0} = 2 x 2GiB Samsung
+		 * {0,0,1,1} = 1 x 2GiB Samsung
+		 * {0,1,0,0} = 1 x 2GiB Micron
+		 * {0,1,0,1} = 1 x 2GiB Hynix
+		 * {0,1,1,0} = 2 x 2GiB Samsung
+		 * {0,1,1,1} = 2 x 2GiB Micron
+		 * {1,0,0,0} = 1 x 2GiB Samsung
+		 * {1,0,0,1} = 1 x 2GiB Micron
+		 * {1,0,1,0} = 2 x 2GiB Hynix
+		 * {1,0,1,1} = 1 x 2GiB Hynix
 		 */
 		int index = rambi_get_spd_index(intf);
 		switch (index) {
-		case 3: case 4: case 5:
+		case 3: case 4: case 5: case 8: case 9: case 11:
 			return 1;
 		default:
 			return 2;