diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-06 14:18:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-09 19:13:17 +0000 |
commit | 1b4e189e44379cf1db7639f2549441a8d678a978 (patch) | |
tree | b3e9758c6bc59808cb6e3d11bfc8b3f684795e9c /zephyr/shim/include | |
parent | 8141e8d7eeeb915f2b529de39570e2efc8b86466 (diff) | |
download | chrome-ec-1b4e189e44379cf1db7639f2549441a8d678a978.tar.gz |
zephyr: move from SYS_INIT to main
We are going to need to perform initialization in Zephyr's main before
we start the EC tasks or call the INIT hooks. If we rely on SYS_INIT,
all of that happens before main is called.
BRANCH=none
BUG=none
TEST=pass tasks unit tests and run on volteer
Cq-Depend: chromium:2523462
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Icd035695b86fc9690cea88887902be61d9b37a18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523380
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/include')
-rw-r--r-- | zephyr/shim/include/ec_tasks.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/shim/include/ec_tasks.h b/zephyr/shim/include/ec_tasks.h new file mode 100644 index 0000000000..0380920492 --- /dev/null +++ b/zephyr/shim/include/ec_tasks.h @@ -0,0 +1,12 @@ +/* Copyright 2020 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_EC_TASKS_H +#define __CROS_EC_EC_TASKS_H + +/** Starts all of the shimmed EC tasks. Requires CONFIG_SHIMMED_TASKS=y. */ +void start_ec_tasks(void); + +#endif /* __CROS_EC_EC_TASKS_H */ |