diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-08-09 13:11:09 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-09 14:38:16 -0700 |
commit | 3c708cb802d395fc38350a8f856ae77e9a1315ba (patch) | |
tree | 7f62d8efa2929dd64373e130ae8e9de00dd3dbfc /common/main.c | |
parent | 37470f1e778157f5ca3680820ca68353f3c4ab38 (diff) | |
download | chrome-ec-3c708cb802d395fc38350a8f856ae77e9a1315ba.tar.gz |
Enable PLL only briefly during ADC init
It was previously only enabled for 1500us during boot, but in a way
that triggered a needless round of notifications to other modules.
This is cleaner.
This also fixes adc_init() not initializing the task IDs to wake when
interrupts come in, and removes some unneeded code from other init
functions.
BUG=chrome-os-partner:12472
TEST=boot system and run adc command. Should still provide reasonable data.
Change-Id: I9ae5857d988c727caf5d53f551a2f12b30974c0f
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29806
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/main.c b/common/main.c index 79ad7bfac2..22906cb7be 100644 --- a/common/main.c +++ b/common/main.c @@ -52,7 +52,7 @@ int main(void) #ifdef CONFIG_FLASH /* - * Initialize flash and apply write protecte if necessary. Requires + * Initialize flash and apply write protect if necessary. Requires * the reset flags calculated by system initialization. */ flash_pre_init(); @@ -121,10 +121,6 @@ int main(void) */ 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. Not completely accurate because it can't take * into account the time before timer_init(), but it'll at least catch |