nyan: Set the CPU voltage differently depending on which PMIC is in use.

The PMIC used on the older pixel based nyan boards and the newer boards are
different and use a different base offset for their voltage settings. We need
to set them to different values in order to get the correct voltage out.

BUG=None
TEST=With this and other changes, built and booted on old and new nyan boards.
BRANCH=None

Change-Id: Ie37b11802d8c08f07f37c350ceb732f519b69280
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://chromium-review.googlesource.com/176905
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
diff --git a/src/mainboard/google/nyan/pmic.c b/src/mainboard/google/nyan/pmic.c
index a12d24e..a625f55 100644
--- a/src/mainboard/google/nyan/pmic.c
+++ b/src/mainboard/google/nyan/pmic.c
@@ -44,7 +44,10 @@
 	 */
 
 	/* First set VDD_CPU to 1.0V, then enable the VDD_CPU regulator. */
-	pmic_write_reg(bus, 0x00, 0x28);
+	if (CONFIG_NYAN_IN_A_PIXEL)
+		pmic_write_reg(bus, 0x00, 0x28);
+	else
+		pmic_write_reg(bus, 0x00, 0x3c);
 
 	/* First set VDD_GPU to 1.0V, then enable the VDD_GPU regulator. */
 	pmic_write_reg(bus, 0x06, 0x28);