ich_descriptors: Pretty print voltage on supported platforms

Seems more and more important to have such clues about 1.8V parts.

Change-Id: Ida9a447d840d63a9fed7c48b3a18546e67284a44
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/396
diff --git a/ich_descriptors.c b/ich_descriptors.c
index 4b8169f..7d9c469 100644
--- a/ich_descriptors.c
+++ b/ich_descriptors.c
@@ -384,6 +384,21 @@
 	msg_pdbg2("\n");
 
 	msg_pdbg2("--- Details ---\n");
+	static const char *const volt_sel[] = { "3.3", "1.8" };
+	switch (cs) {
+	case CHIPSET_300_SERIES_CANNON_POINT:
+	case CHIPSET_500_SERIES_TIGER_POINT:
+	case CHIPSET_APOLLO_LAKE:
+	case CHIPSET_GEMINI_LAKE:
+	case CHIPSET_METEOR_LAKE:
+	case CHIPSET_LUNAR_LAKE:
+	case CHIPSET_ARROW_LAKE:
+		msg_pdbg2("Voltage Select:                 %sV\n", volt_sel[desc->component.modes.volt_sel]);
+		break;
+	default:
+		break;
+	}
+
 	msg_pdbg2("Component 1 density:            %s\n", pprint_density(cs, desc, 0));
 	if (desc->content.NC)
 		msg_pdbg2("Component 2 density:            %s\n", pprint_density(cs, desc, 1));
diff --git a/include/ich_descriptors.h b/include/ich_descriptors.h
index df1a789..a068571 100644
--- a/include/ich_descriptors.h
+++ b/include/ich_descriptors.h
@@ -125,7 +125,9 @@
 		 * Sunrise Point/100:	48		30		7	0:3, 4:7
 		 */
 		struct {
-			uint32_t		:17,
+			uint32_t		:9,
+				 volt_sel	:1,
+						:7,
 				 freq_read	:3,
 				 fastread	:1,
 				 freq_fastread	:3,