diff options
author | Furquan Shaikh <furquan@google.com> | 2018-04-18 19:03:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-19 19:28:45 -0700 |
commit | e5d961ae9673486f905d82a3dc7a85b1a28ef7e3 (patch) | |
tree | 07d8090784d86126795224e80e9b6ba004ed0768 /power/stoney.c | |
parent | 91148de7c836a382e3433e6a7a1d8adc48148799 (diff) | |
download | chrome-ec-e5d961ae9673486f905d82a3dc7a85b1a28ef7e3.tar.gz |
stoney: Use chipset_pre_init callback
Similar to intel_x86, move chipset stoney to using chipset_pre_init
callback.
BUG=None
BRANCH=None
TEST=make -j buildall
Change-Id: I995bbda01ec78ecd28c302f269cf15739913ecd9
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1018738
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'power/stoney.c')
-rw-r--r-- | power/stoney.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/power/stoney.c b/power/stoney.c index a3c6467dd7..fcc3ddcf73 100644 --- a/power/stoney.c +++ b/power/stoney.c @@ -159,8 +159,13 @@ enum power_state power_handle_state(enum power_state state) gpio_set_level(GPIO_EN_PWR_A, 1); #endif - /* Call hooks to initialize PMIC */ - hook_notify(HOOK_CHIPSET_PRE_INIT); +#ifdef CONFIG_CHIPSET_HAS_PRE_INIT_CALLBACK + /* + * Callback to do pre-initialization within the context of + * chipset task. + */ + chipset_pre_init_callback(); +#endif if (power_wait_signals(IN_S5_PGOOD)) { chipset_force_g3(); |