summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2014-07-01 17:08:27 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-03-04 19:56:26 +0100
commitdfe7ea2b4eb86afcb59819fc9a72a41ceede8215 (patch)
tree5a25cbebcadb0d383783a030bac89088ee2be31e /src/mainboard
parentd2907c1e0267eddd1a04e4d6d9670ef95c43e0b9 (diff)
downloadcoreboot-dfe7ea2b4eb86afcb59819fc9a72a41ceede8215.tar.xz
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/rush/pmic.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mainboard/google/rush/pmic.c b/src/mainboard/google/rush/pmic.c
index c114066e8e..7aa7dc93d4 100644
--- a/src/mainboard/google/rush/pmic.c
+++ b/src/mainboard/google/rush/pmic.c
@@ -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
- pmic_write_reg(bus, 0x00, 0x50, 1);
+ /* 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");
}