summaryrefslogtreecommitdiff
path: root/include/hooks.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-02 12:55:58 -0700
committerChromeBot <chrome-bot@google.com>2013-04-03 11:49:07 -0700
commit4d1aadaf601f04be9f45a540284f9b1184681787 (patch)
treebb1611c290acab471e004c439377d44ac477b5da /include/hooks.h
parent9137686ebec50f44300168d48617790edf67bece (diff)
downloadchrome-ec-4d1aadaf601f04be9f45a540284f9b1184681787.tar.gz
Trigger dma_init() via HOOK_INIT
There's no need for it to be initalized in board_init(); it just needs to be done before ADC / I2C / SPI initialize. BUG=chrome-os-partner:18343 BRANCH=none TEST=boot spring; verify EC communication and 'adc' console command still work Change-Id: I6039848fe031222d5ca59b459adfe18fc3e8ef08 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47182 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r--include/hooks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h
index 71939d05da..084e9bb36b 100644
--- a/include/hooks.h
+++ b/include/hooks.h
@@ -17,6 +17,8 @@ enum hook_priority {
HOOK_PRIO_LAST = 9999, /* Lowest priority */
/* Specific hook vales for HOOK_INIT */
+ /* DMA inits before ADC, I2C, SPI */
+ HOOK_PRIO_INIT_DMA = HOOK_PRIO_FIRST + 1,
/* LPC inits before modules which need memory-mapped I/O */
HOOK_PRIO_INIT_LPC = HOOK_PRIO_FIRST + 1,
/* Chipset inits before modules which need to know its initial state. */