summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-24 09:59:31 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-24 09:59:31 -0700
commit7ecb8358b9ae4594abc9cc6251719283e079a494 (patch)
tree5b9d4a7323515d97f1aaee242e8d9a6091e1d260 /common/main.c
parente8c86b2a6845b5fa9b73a6410c0442a0f03f771d (diff)
downloadchrome-ec-7ecb8358b9ae4594abc9cc6251719283e079a494.tar.gz
Disable PLL at end of init
This saves power. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:8798 TEST=manual Get a proto1 system modified with INA current sensor 1) From chroot: dut-control i2c_mux_en:on i2c_mux:rem dut-control pp3300_alw_mv pp3300_alw_ma 2) From EC console: pll (this should turn the PLL back on; it'll report clock frequency ~66MHz) 3) From chroot: dut-control i2c_mux_en:on i2c_mux:rem dut-control pp3300_alw_mv pp3300_alw_ma Current (ma) should be bigger than in step 1 Change-Id: I806953684c57fd60bf481acb01dddffe2f2ad0ed
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 5293820e9b..8252a231d0 100644
--- a/common/main.c
+++ b/common/main.c
@@ -95,13 +95,15 @@ int main(void)
* RO image and once in the RW image. */
vboot_init();
- /* TODO: reduce core clock now that vboot is done */
-
/* Initialize other driver modules. These can occur in any order.
* Non-driver modules with tasks do their inits from their task
* functions, not here. */
hook_notify(HOOK_INIT, 0);
+#ifdef BOARD_link
+ /* Reduce core clock now that init is done */
+ clock_enable_pll(0);
+#endif
/* Print the init time and reset cause. Init time isn't completely
* accurate because it can't take into account the time for the first
* few module inits, but it'll at least catch the majority of them. */