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>
This commit is contained in:
parent
1d05fd5bc4
commit
31507f6a57
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue