From 31507f6a575220737ee5683b312cd162600f89cc Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 14 Nov 2013 13:46:08 -0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/176905 Reviewed-by: Julius Werner Commit-Queue: Gabe Black Tested-by: Gabe Black --- src/mainboard/google/nyan/pmic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/nyan/pmic.c b/src/mainboard/google/nyan/pmic.c index a12d24eaeb..a625f550a0 100644 --- a/src/mainboard/google/nyan/pmic.c +++ b/src/mainboard/google/nyan/pmic.c @@ -44,7 +44,10 @@ void pmic_init(unsigned bus) */ /* 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);