diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2016-05-03 14:47:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-05-05 01:12:25 -0700 |
commit | b803590c27796573f8e889796d15c16427225028 (patch) | |
tree | ece28d9c4da17acf73879dff94ffd4303be183c7 /chip/it83xx | |
parent | d6546857dab57079c50ae9f1140941fd8fb37229 (diff) | |
download | chrome-ec-b803590c27796573f8e889796d15c16427225028.tar.gz |
hooks: Add relative HOOK_INIT priority for peripherals
Using HOOK_PRIO_DEFAULT for peripheral initialization necessitates using
HOOK_PRIO_DEFAULT+1 for board-level code. Instead, use a
higher-than-default relative priority for peripheral initialization
outside of board.
BUG=None
TEST=Verify PWM and ADC are functional on kevin.
BRANCH=None
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ia8e90a7a866bdb0a661099dd458e3dfcaaa3f6bb
Reviewed-on: https://chromium-review.googlesource.com/342171
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'chip/it83xx')
-rw-r--r-- | chip/it83xx/fan.c | 2 | ||||
-rw-r--r-- | chip/it83xx/pwm.c | 2 | ||||
-rw-r--r-- | chip/it83xx/spi.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chip/it83xx/fan.c b/chip/it83xx/fan.c index f61fbaa6f7..d412e14123 100644 --- a/chip/it83xx/fan.c +++ b/chip/it83xx/fan.c @@ -475,4 +475,4 @@ static void fan_init(void) ext_timer_ms(FAN_CTRL_EXT_TIMER, EXT_PSR_32P768K_HZ, 0, 0, FAN_CTRL_BASED_MS, 1, 0); } -DECLARE_HOOK(HOOK_INIT, fan_init, HOOK_PRIO_INIT_PWM); +DECLARE_HOOK(HOOK_INIT, fan_init, HOOK_PRIO_INIT_FAN); diff --git a/chip/it83xx/pwm.c b/chip/it83xx/pwm.c index 89f71f9a1d..db9f180455 100644 --- a/chip/it83xx/pwm.c +++ b/chip/it83xx/pwm.c @@ -257,4 +257,4 @@ static void pwm_init(void) } /* The chip PWM module initialization. */ -DECLARE_HOOK(HOOK_INIT, pwm_init, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_INIT, pwm_init, HOOK_PRIO_INIT_PWM); diff --git a/chip/it83xx/spi.c b/chip/it83xx/spi.c index e02c3d590d..6e876b3aee 100644 --- a/chip/it83xx/spi.c +++ b/chip/it83xx/spi.c @@ -168,4 +168,4 @@ static void sspi_init(void) /* Disabling spi module */ spi_enable(spi_devices[i].port, 0); } -DECLARE_HOOK(HOOK_INIT, sspi_init, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_INIT, sspi_init, HOOK_PRIO_INIT_SPI); |