summaryrefslogtreecommitdiff
path: root/board/reef
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-04-18 18:55:30 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-19 19:28:42 -0700
commit8faa22cb27bd9cbee39b810e6a3d48593ba96242 (patch)
treeef9beb2922947907d7e63e44f5990248038f5f62 /board/reef
parente54c3e1728cc4648e2c489770bcad678e985b129 (diff)
downloadchrome-ec-8faa22cb27bd9cbee39b810e6a3d48593ba96242.tar.gz
APL/GLK boards: Use chipset_pre_init_callback
This change updates all APL/GLK boards to use chipset_pre_init_callback instead of hook. BUG=b:78259506 BRANCH=None TEST=Verified that yorp still boots. Change-Id: I71ab0f1111e89a254db83fc58abfdfe8eacd3575 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/1018734 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/reef')
-rw-r--r--board/reef/board.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/reef/board.c b/board/reef/board.c
index 868656559e..977a10f70c 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -496,7 +496,7 @@ const struct temp_sensor_t temp_sensors[] = {
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
/* Called by APL power state machine when transitioning from G3 to S5 */
-static void chipset_pre_init(void)
+void chipset_pre_init_callback(void)
{
/*
* No need to re-init PMIC since settings are sticky across sysjump.
@@ -523,7 +523,6 @@ static void chipset_pre_init(void)
/* Enable PMIC */
gpio_set_level(GPIO_PMIC_EN, 1);
}
-DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, chipset_pre_init, HOOK_PRIO_DEFAULT);
static void board_set_tablet_mode(void)
{