rush: PMIC: initial AS3722 PMIC writes for Rush
Still waiting on VDD_CPU value, etc. from board guys, but this is a start. BUG=None BRANCH=None TEST=Built and flashed rush, saw 'PMIC init done' string OK. Original-Change-Id: I6f8b16c4ebf1e9c159f8175d59262119ef0e498f Original-Signed-off-by: Tom Warren <twarren@nvidia.com> Original-Reviewed-on: https://chromium-review.googlesource.com/206412 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit 96a9ff8f632c2b9bf3f81f5b8fc4f3b6784a02bc) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I9d3d7ff55f2d6ca88ebdcc8ad1d7de135f5136d2 Reviewed-on: http://review.coreboot.org/8582 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
parent
d2907c1e02
commit
dfe7ea2b4e
|
@ -92,19 +92,13 @@ void pmic_init(unsigned bus)
|
|||
/* Restore PMIC POR defaults, in case kernel changed 'em */
|
||||
pmic_slam_defaults(bus);
|
||||
|
||||
/* First set VDD_CPU to 1.2V, then enable the VDD_CPU regulator. */
|
||||
if (board_id() == 0)
|
||||
pmic_write_reg(bus, 0x00, 0x3c, 1);
|
||||
else
|
||||
/* SDO0: Set VDD_CPU to 1.2V. */
|
||||
pmic_write_reg(bus, 0x00, 0x50, 1);
|
||||
|
||||
/* First set VDD_GPU to 1.0V, then enable the VDD_GPU regulator. */
|
||||
/* SDO6: Set VDD_GPU to 1.0V. */
|
||||
pmic_write_reg(bus, 0x06, 0x28, 1);
|
||||
|
||||
/*
|
||||
* First set +1.2V_GEN_AVDD to 1.2V, then enable the +1.2V_GEN_AVDD
|
||||
* regulator.
|
||||
*/
|
||||
/* LDO2: Set +1.2V_GEN_AVDD to 1.2V */
|
||||
pmic_write_reg(bus, 0x12, 0x10, 1);
|
||||
|
||||
/*
|
||||
|
@ -113,4 +107,6 @@ void pmic_init(unsigned bus)
|
|||
*/
|
||||
pmic_write_reg(bus, 0x0c, 0x07, 0);
|
||||
pmic_write_reg(bus, 0x20, 0x10, 1);
|
||||
|
||||
printk(BIOS_DEBUG, "PMIC init done\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue