summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_tasks.h
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-051-90/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* zephyr: add HOOKS taskKeith Short2021-01-291-0/+4
| | | | | | | | | | | | | | | | Enable the HOOKS task so the periodic HOOK_TICK and HOOK_SECONDS are called. HOOK_TICK is required by the PWM LED support. BUG=b:174851299 BRANCH=none TEST=make buildall, zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id00f38833d05e32b921d92d2441831058294c994 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2636481 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: add motion sense supportHyungwoo Yang2021-01-221-0/+4
| | | | | | | | | | | | | | | | | | | Add support for motion sense in zephyr. This change adds basic functions for motion sense task to do meaningful work. sensor_map.h included by board.h will be used to get board specific sensor configuration. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I906316d2e97428cf46b9a15071666c8e3b039b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638909 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Enable the power-delivery interrupt taskSimon Glass2021-01-121-0/+16
| | | | | | | | | | | | | | | | | Enable this task so that power-delivery interrupts are serviced correctly. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr run and see lots of charge_requests and activity, none of it very useful Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ic9af885b9d9635d806f6d1c662abfb695e41fedc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617205 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Enable the power-delivery taskSimon Glass2021-01-121-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Enable the PD_C0-3 tasks so that the power-delivery logic can run. Drop the PLATFORM_EC_USB_PD_TCPMV2 Kconfig which does not actually exist. We always use TCPMV2 with Zephyr. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr run and see lots of charge_requests and activity, none of it very useful: [658 Battery 26% (Display 24.2 %) / ??h:?? to full] [662 charge_request(13200mV, 2584mA)] [666 charge problem: set current, 0x0 -> 0xfffffffb after %.6llds] [673 charge problem: set voltage, 0x0 -> 0xfffffffb after %.6llds] [679 charge problem: set mode, 0x0 -> 0xfffffffb after %.6llds] [707 charge problem: chg params, 0x0 -> 0x1f after %.6llds] Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2623427 Change-Id: Icde0f7f4205d85e02cffded351c54047fe220c9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617204
* zephyr: Enable the chgramp taskSimon Glass2021-01-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This task is used to ramp up charging from an external source. Add support for this along with required Kconfig options. Add one more stub in system to make it build. This is covered by the existing bug. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr So far the output is not interesting (need more drivers): uart:~$ chgramp Chg Ramp: State: 0 Min ICL: 0 Active ICL: 0 Port 0: OC idx:0 OC 0: s-1 oc_det0 icl0 OC 1: s0 oc_det0 icl0 OC 2: s0 oc_det0 icl0 Port 1: OC idx:0 OC 0: s-1 oc_det0 icl0 OC 1: s0 oc_det0 icl0 OC 2: s0 oc_det0 icl0 Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2613607 Change-Id: I603ba43d4384b62ed0c1a64b580599b42ae85e81 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617039 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Add the USB charger tasksSimon Glass2021-01-091-3/+15
| | | | | | | | | | | | | | | | | | Add these tasks so that we can enable USB charging. For now it is left off since the driver is missing. Move the charger task to the top so that things are in alphabetical order. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr Change-Id: Ib1f48438a2b33069624beb2cd9330db475f76333 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2615620 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Make HAS_TASK_HOSTCMD a Kconfig optionSimon Glass2021-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | This option is implied so we may as well create it. Set it to be visible (and automatically enabled) only if PLATFORM_EC_HOSTCMD is enabled. This mostly mimics the current behaviour. Also select the hostcmd task automatically if PLATFORM_EC_HOSTCMD is enabled, since that feature cannot work without the task. If PLATFORM_EC_HOSTCMD is not enabled there is no need for the task. BUG=b:176449230 BRANCH=none TEST=ninja -C /tmp/z/vol/build-ro menuconfig Check the operation of HAS_TASK_HOSTCMD and PLATFORM_EC_HOSTCMD Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I837c6b30bfc9746a17a697b9ee94a7870a01fb56 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606577 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Make HAS_TASK_KEYSCAN a Kconfig optionSimon Glass2021-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | This option is implied so we may as well create it. Set it to be visible (and automatically enabled) only if PLATFORM_EC_KEYBOARD is enabled. This mostly mimics the current behaviour. Also select the keyproto task automatically if PLATFORM_EC_KEYBOARD_PROTOCOL_8042 is enabled, since that feature cannot work without the task. If PLATFORM_EC_KEYBOARD_PROTOCOL_8042 is not enabled there is no need for the task. BUG=b:176449230 BRANCH=none TEST=ninja -C /tmp/z/vol/build-ro menuconfig Check the operation of HAS_TASK_KEYSCAN and PLATFORM_EC_KEYBOARD Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I576f2ee3560a307e00d11bc6b8b6c04acb81dd24 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606574 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Make HAS_TASK_CHIPSET a Kconfig optionSimon Glass2021-01-061-2/+2
| | | | | | | | | | | | | | | | This option is implied so we may as well create it. Set it to be visible (and automatically enabled) only if PLATFORM_EC_POWERSEQ is enabled. This mostly mimics the current behaviour. BUG=b:176449230 BRANCH=none TEST=ninja -C /tmp/z/vol/build-ro menuconfig Check the operation of HAS_TASK_CHIPSET and PLATFORM_EC_POWERSEQ Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I7dc698c15fa65eb16ec40724a06b67d7e4ddc27d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606573 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Enable the charger taskSimon Glass2020-12-241-0/+4
| | | | | | | | | | | | | | | This supports monitoring and charging the battery. Enable it for Zephyr. BUG=b:175248556 BRANCH=none TEST=build and run zephyr on volteer No visible change, except more code is compiled in Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I21ff976ba2f5de6e8f069e30028770eda408041a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2600229 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: fix build for keyboard shimYuval Peress2020-12-051-0/+30
See platform/ec/common/build.mk for reference. The use of keyboard_scan.c should only be allowed when HAS_TASK_KEYSCAN is defined. As such, we should always set HAS_TASK_KEYSCAN to 1 if CONFIG_PLATFORM_EC_KEYBOARD is defined. Further, CROS_EC_TASK_LIST was defined per project and it doesn't need to be, we can instead define it once for all boards depending on which tasks are set to 1 in shimmed_tasks.h Note that shimmed_tasks.h can still be used in tests. BRANCH=none BUG=none TEST=zmake testall Cq-Depend: chromium:2566421 Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Id0ed49dd49e3c4eb2ac23184cf943c91dcd261eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567560