| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Check if in isr before calling uart_write_char in uart_write_char.
console_buf_notify_chars attempts to acquire a mutex, which isn't
allowed from an isr.
BUG=None
BRANCH=None
TEST=Pass rw_safe_mode tests
Change-Id: If5a5a4c99fae9342f2e1e3c1bf0c841e5490f692
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4065004
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make sub-board support a config option so that
variants can have fixed hardware configurations without
having to deal with sub-board options.
BUG=b:260779639
TEST=build nissa boards
BRANCH=none
Change-Id: Icac6767a9405362ba229626a1038e2bc4c42895c
Signed-off-by: Andrew McRae <amcrae@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4059932
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sort all includes in test with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Iae52f99a3a8b5623c1c92722c325ca92816fa856
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052760
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After a downstream change LOG_PRINTK is enabled by default when PRINTK
and the ZTEST_NEW_API are enabled. LOG_PRINTK seems to timeout/fail our
tests.
Add a KConfig override that disables LOG_PRINTK by default.
BRANCH=none
BUG=b:260772137
TEST=twister
TEST=CQ
Change-Id: Iec189124c891a53a8230a2291bc7852e44acc94e
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4065008
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Generated by: ./update_release_branch.py --zephyr -r --board nissa firmware-
nissa-15217.B-main
Relevant changes:
git log --oneline 8db83b0a94..ea174bbf20 -- zephyr/program/nissa
ea174bbf20 zephyr: Sort remaining includes
4bc3db0d0d xivur: Initial zephyr config for xivur project
591d2bed63 craask: add Fw_config structure for FAN control
1fc2ef1334 nissa/sm5803: avoid charging from 12V with 3S battery
f80955b5fc pujjo: add GPIO_VOLTAGE_1P8 flag support
298925efab Xivu: modify motionsense rotate mapping
62720a799b nissa: use device tree for USB-C config
5dbfddec42 pujjo: Add missing gyro config default-range
e414805dd4 craask: add Fw_config structure for Keyboard backlight
43b53e0045 Add default implementation of board_set_charge_limit
2e3437828d nissa: Configure mux resets for ANX7483
057c0257d6 zephyr: usb: enable pi3usb9201 driver and emulator automatically
BRANCH=None
BUG=b:163093572 b:260271871 b:258754576 b:247100970 b:213963699
BUG=b:257387315 b:258325854 b:259551403 b:259466064
TEST=`make -j buildall`
Force-Relevant-Builds: all
Cq-Depend: chromium:4065059
Change-Id: If6c17dbd407c11b69e0853e67419726f3fe44964
Signed-off-by: Andrew McRae <amcrae@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is the last of the files in platform/ec.
Sort all includes with the clang-format rules used by the zephyr
project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I95e37e74d860cbb7c74ec478b543aef0b0e967e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062620
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Sam Hurst <shurst@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Organized the skyrim program into folders for projects.
Similar .dtsi files in project directory will be merged into program
directory in a followup CL.
BUG=b:254097911
TEST=Ran zmake compare-builds
BRANCH=none
Signed-off-by: Jason Yuan <jasonyuan@google.com>
Change-Id: I1e0b9b4ea096f2e4ffa97067fe8aecdea171fc00
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4035057
Tested-by: zhi cheng yuan <jasonyuan@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: zhi cheng yuan <jasonyuan@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sort all includes in chip with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I13454e38fa3766aa0ba26a058075f51965b8462e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4053346
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sort all includes in common with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I70c2ed7bb2ce50c968f3e2dbdc274de3a455129a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049889
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sort all includes in driver with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I675e0db416b6b7cbcfce031c97fd24ad97b66f4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052767
Reviewed-by: Yuval Peress <peress@google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a new test binaries to verify the EC_CMD_READ_MEMMAP command. This
command is only provided when the host interface is not eSPI and not
LPC.
One binary verifies operation with CONFIG_PLATFORM_EC_SWITCH enabled,
and one with CONFIG_PLATFORM_EC_SWITCH disabled.
BUG=none
BRANCH=none
TEST=twister
Change-Id: Ice44bb9a0c57e62231dbc3b494cb540dbd153f79
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4063184
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Update the deprecated host command tests to support non-X86
configurations.
BUG=none
BRANCH=none
TEST=twister
Change-Id: I4da2ff748a10b56cfb80272df5cced0ef6134016
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4063183
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Select pcf85063a oscillator capacitor to 12.5 pF
BUG=b:260165217
BRANCH=none
TEST=check CAP_SEL bit can set
LOW_COVERAGE_REASON=RTC driver currently has no tests
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: Ida74a1c3cadcc376a68d2386f60d7972ba0b8040
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4050011
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Bob Moragues <moragues@chromium.org>
Tested-by: Bob Moragues <moragues@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
bc12_rt9490.c is only being built if the driver or emulators are
enabled, and the emulator defines both compatibles anyway, so it's not
really needed.
Also fix a dts syntax thing.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I622dbf07f74f52b5c3bdbe634c5c1bcd0774845e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4054624
Reviewed-by: Sam Hurst <shurst@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Select EMUL_BB_RETIMER and EMUL_PCT2075 when unit testing, drop the now
unnecessary explicit settings.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Idda7529476de7bc1e5e2b7dade47c8322628f16d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4055682
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sort all includes in include with the clang-format rules used by
the zephyr project.
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ic23f440ebd93519e4341423cf6cb7a298620cbfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049883
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are some circular include problems here also.
Add "config.h" for CONFIG_ZEPHYR.
Add <zephyr/devicetree.h> for DT_NODE_EXISTS
Add <stddef.h> for size_t
Add <sys/types.h> for ssize_t
Add "gpio_signal.h" for enum gpio_signal
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ifbadcba90c2c0774713dc7ed3992e58f1d15d70d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052766
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Validate log is captured
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test/drivers
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: Ic8edb5994bf3a6f12a9fb7a2d222d98813c7d3f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049885
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Support to select the internal oscillator capacitor to 12.5 pF for
PCF85063A, default setting is 7 pF.
BUG=b:260165217
BRANCH=none
TEST=zmake build evoker
LOW_COVERAGE_REASON=RTC driver currently has no tests
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I3418adb08fb4f56bba06a0844acec7806b2bc35d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4050010
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Sam Hurst <shurst@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove CONFIG_PLATFORM_EC_FPU. Use Zephyr's CONFIG_FPU option instead.
BUG=b:217926701
BRANCH=none
TEST=twister -T zephyr/test/
TEST=zmake compare-builds -a
Signed-off-by: Mark Hasemeyer <markhas@google.com>
Change-Id: Icd0fdbc440f0dd574b75bf5ca0f1750f1e858b40
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049382
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The floating point math tests fail to build if PLATFORM_EC_FPU is
enabled on a native posix board.
Include the math library to support fpu tests for native posix builds.
BUG=b:217926701
BRANCH=none
TEST=twister -T zephyr/test/math/
Signed-off-by: Mark Hasemeyer <markhas@google.com>
Change-Id: I2cc5d2c22d182d8b1f6ca66fff68c0a5da0c24cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049381
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
BUG=b:246366702
BRANCH=none
TEST=test/run_device_tests.py -b bloonchipper -t benchmark
TEST=make run-benchmark
Signed-off-by: Andrea Grandi <agrandi@google.com>
Change-Id: I73bacbd76194055d79ca3a250a4fab6d0c67ff4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062574
Reviewed-by: Bobby Casey <bobbycasey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use the generic FRS enable driver function in the generic TCPCI driver.
BUG=b:260630630
TEST=twister -s zephyr/test/drivers/drivers.usbc_frs
BRANCH=none
Change-Id: I711fb41569d477f1dad3d14fa18a7b7f8f217ce4
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4063186
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The code that's non posix cannot be tested with current infrastructure.
Remove it from the coverage reports.
BRANCH=none
BUG=none
TEST=twister -C
Change-Id: Ic4725334ac7dad893d35bb97bed1c9757dc2bd72
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062993
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Zephyr uses a -emul suffix on all emulation bindings. Rename some of the
EC emul bindings so that they are consistent with upstream and the other
ones we already have.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I666b74bb243da10a79dd1d0da56028c2b142d360
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4047463
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Initial EC Zephyr config for xivur
Reuse most of nivviks sources.
BUG=b:258325854
TEST=zmake build xivur --clobber
BRANCH=nissa
LOW_COVERAGE_REASON=Initial xivur project, board test under developement(b/258325854)
Signed-off-by: jeffrey <jeffrey_lin@pegatron.corp-partner.google.com>
Change-Id: Iffbaed8bfe3dc292bc263ecd4fb4016941de78cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022845
Reviewed-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org>
Code-Coverage: Kyle Lin <kylelinck@google.com>
Commit-Queue: Kyle Lin <kylelinck@google.com>
Reviewed-by: Kyle Lin <kylelinck@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Craask need to implement FW_FAN config in
bit 17 of cbi fw_config.Enable/Disable fan control
by FW_FAN flag.
BUG=b:257387315
BRANCH=none
TEST=check fan workable by FW_FAN flags setting.
Change-Id: I94876d0092f713d4c29980f76338803081276503
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060382
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This function previously had no coverage for the case when
TCPC_FLAGS_CONTROL_FRS was set.
BUG=none
TEST=twister, verify lines are now covered
BRANCH=none
Change-Id: I1b8d902fc0551388fcb12200e9c85a1f62ed7209
Signed-off-by: Clayton Whitelaw <cawhitelaw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4063190
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This function previously had no coverage for the case where standard
registers should be dumped.
To support this test, mark tcpc_dump_std_registers as test_mockable.
BUG=none
TEST=twister, verify lines are now covered
BRANCH=none
Change-Id: Id7bbba6f77c1684a7eeafb1be1f990fb9176e16b
Signed-off-by: Clayton Whitelaw <cawhitelaw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062461
Commit-Queue: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Yuval Peress <peress@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This function previously had no coverage for this particular path.
BUG=none
TEST=twister, verify lines are now covered
BRANCH=none
Change-Id: Ia09dff83a8cc9d54b93e1158d834d091feaa512c
Signed-off-by: Clayton Whitelaw <cawhitelaw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4061756
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This function previously had no coverage this particular path.
BUG=none
TEST=twister, verify lines are now covered
BRANCH=none
Change-Id: I7fef8ab28251c2658fba8162d1077d2e78a9479f
Signed-off-by: Clayton Whitelaw <cawhitelaw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4061754
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Yuval Peress <peress@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add unit tests to get uart_printf.c to 100% coverage.
BRANCH=none
BUG=none
TEST=twister
LOW_COVERAGE_REASON=the lines showing up as red are tested by existing tests. I'm not sure why those tests don't count towards this CL.
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: I6fc4321a7a46836f212c285aca67c71613011b95
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4009401
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This CL adds a DATA_RESET state to the DPM state machine. The check
for data reset being required remains in the mode entry/exit helper
functions as the criteria is different between the 2 cases. However,
data reset being handled in its own state removes the need to check if
a data reset is ongoing.
BUG=b:194504052
BRANCH=none
TEST=Verified that mode entry/exit is successful for DP, TBT, and
USB4 on Voxel.
ectool typeccontrol <port> 0 -> exit mode
ectool typeccontrol <port> 2 0 -> DP
ectool typeccontrol <port> 2 1 -> TBT
ectool typeccontrol <port> 2 2 -> USB4
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I7346d521531c800c787c9794fedd81e485b5912e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3965269
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Frostflow has different thermal settings and add the fan step function.
This patch also allows the EC to manage the fan table when the unit is
in clamshell or tablet mode.
BUG=b:257174577, b:257149501
BRANCH=none
TEST=zmake build frostflow. Thermal test pass.
LOW_COVERAGE_REASON=no unit test for skyrim board yet: b/247151116
Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com>
Change-Id: I3976bb73bf3f5867c451c90b4c553485c5e607a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4025402
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
BRANCH=none
BUG=b:172020503
TEST=CC=clang make BOARD=burnet
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: If04c6b209990822ccad384a1a6cbd66870eefcaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4024564
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
"Default input current" is not a very clear name, so rename this option to
better express its use as a default value that is set in the charger.
This is made possible by splitting other uses into
CHARGER_MIN_INPUT_CURRENT_LIMIT, making the only use for
CHARGER_INPUT_CURRENT be as a default.
BUG=b:163093572
TEST=make buildall; zmake build -a
BRANCH=none
LOW_COVERAGE_REASON=isl9241 and sm5803 currently lack emulators
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: Ia9c1df9061825b15477466e85343afeb2a371288
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4025404
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Recent changes make board_set_charge_limit the correct place to apply
adjustments like the existing minimum current limit done here, so change
this host command to simply call that function.
Most other code that used this pattern was converted in commits
b75dc90677f29424e6f0d63f294dce4b39782135 and
43b53e004573a56a255ca57d4a6d04ac4bed44d7, but this one was missed.
BUG=b:163093572
TEST=make buildall, zmake build -a
BRANCH=none
Change-Id: I29d3dd332aa748afdee8fa3c4da53ccab85e3fd1
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060434
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This CL splits the ready state to be either DFP or UFP specific. The
check for mode entry being done is moved into the DFP_READY state
handler.
BUG=b:194504052
BRANCH=none
TEST=Verified that mode entry/exit is successful for DP, TBT, and
USB4 on Voxel.
ectool typeccontrol <port> 0 -> exit mode
ectool typeccontrol <port> 2 0 -> DP
ectool typeccontrol <port> 2 1 -> TBT
ectool typeccontrol <port> 2 2 -> USB4
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I905a5c758cb5e5e71a86c54c1bace1e2f5e0da34
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3965268
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This CL adds support for USB_Enter and DATA_RESET messages to the
tcpc emmulator. In addition it adds a test suite for USB4 mode.
The usbc_tbt_mode test suite was used as a starting reference.
BUG=b:260095516
BRANCH=none
TEST=manual
twister -c -v -i -s <path>/drivers/drivers.usbc_usb4_mode and
verify that the tests pass.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I34e104a1e53b1540b20451fbd0631bbd9d42559b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4029517
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The combination of 12V VBUS and 3S battery is extremely inefficient with
the SM5803, so completely reject 12V PD contracts when the battery design
voltage is consistent with a 3S battery and the board uses SM5803.
BUG=b:260271871, b:258754576
TEST=With PD max voltage limited to 12V and a charger with 12V source caps,
nereid negotiates a 9V PD contract instead.
BRANCH=nissa
LOW_COVERAGE_REASON=no emulator for SM5803 yet
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: Ieb93d5ca410e8b942686c23cb4b761416f8981d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4054762
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
BUG=b:260607990
TEST=run_device_tests.py --help
BRANCH=none
Signed-off-by: Andrea Grandi <agrandi@google.com>
Change-Id: I51166b553497a20e2ba8743d2da682768a3d2cd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4062572
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add support for unittest coverage in our own toolchain.
BRANCH=none
BUG=none
TEST=./twister -c -v -i --gcc -p unit_testing -C
TEST=./twister -c -v -i --llvm -p unit_testing -C
Change-Id: I3e7ffd7bbea809ae9c6ab1d9b6e6104627245abf
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060364
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This function had no coverage previously.
Added tests for both cases where the driver does and does not implement
these functions.
Since the function is conditionally included, guard the tests by
checking the same configuration.
BUG=none
TEST=twister, verify lines are now covered
BRANCH=none
Signed-off-by: Clayton Whitelaw <cawhitelaw@google.com>
Change-Id: I287642975e05b7331333b7016af8e571c9e28676
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052580
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Detecting PC in case of assert (cause 3) from r3
BRANCH=none
BUG=none
TEST=manually on redrix crash reports
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: Ifab41cfd081dd61a18db9cee2cd83b5e58fa06ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4053343
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Ricardo Quesada <ricardoq@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When the tabletmode is being forced by 'tabletmode on' or 'tabletmode
off', the actual HW orientation can still change between tablet and
clamshell mode. When 'tabletmode reset' is issued, the device should
behave correctly based on the current HW orientation.
This also updates the test drivers.default.tablet_set_mode to fix
spelling errors and adds comments to explain the various zassert_equal()
values being checked.
BRANCH=none
BUG=b:256015402
TEST=./twister -v -i --coverage -p native_posix -p unit_testing \
-s zephyr/test/drivers/drivers.host_cmd
./twister -v -i --coverage -p native_posix -p unit_testing \
-s zephyr/test/drivers/drivers.default
TEST='tabletmode on' in clamshell mode, convert DUT to tablet mode,
'tabletmode reset', verify DUT is in tablet mode.
Change-Id: I1039bda7790e0623b013db01e673fe43fa7d8fc8
Signed-off-by: Tim Van Patten <timvp@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4006302
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
EC reboots when hibernate command is triggered on EC console.
Only LID_OPEN, ACOK_OD and MECH_PWR_BTN_ODL needs to be configured as
PSL wake-up pins. The additional congifured signal GSC_EC_PWR_BTN_ODL
which is the passthroug signal from H1 is causing reboot on hibernate.
Hence removed the unused PSL signal from PSL configuration.
BRANCH=None
BUG=b:260129864
TEST=No reboot observed on hibernate using EC command.
EC is coming out of hibernate state when Type-C
charger is conncted.
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: I433519186f864ad939e4d6fb984c087899e2a3da
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4049896
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Returning SENSOR_CONFIG_MAX will cause out of bound read.
Return one of the legal values.
BUG=b:64477774
BRANCH=none
TEST=make -j buildall
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: I1d2b407cb42da8b6fa78fb61be39d05ea1d64401
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4032916
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Ricardo Quesada <ricardoq@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This CL adds a call to set_usb_mux_with_current_data_role after
performing a successful DATA_RESET. This is being added to satisfy
6.3.14 Data_Reset Message, item #3:
If the Port was operating in [USB 3.2] or [USB4] reapply the port’s
Rx Terminations (see [USB 3.2]).
Without this call a mode entry attempt that is either not successful,
or rejected by the port partner would leave the USB3.x SS lanes
disconnected. This would also be the case following an Exit_Mode
request from the AP when DATA_RESET is supported.
BUG=b:260095516
BRANCH=none
TEST=using drivers.usbc_usb4_mode integration test to verify that the
mux ends up in the correct state following a DATA_RESET.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I3b6f9d00beb5fcc5a68c44887bde03d22b61d3e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4040832
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch also makes KEYPROTO task hold sending a scancode when it
receives SETLEDS command until it returns ACK to the second byte (and
leaves STATE_ATKBD_SETLEDS).
This patch also removes and repositions some kblog_put calls because
checking OBF and writing to DBBOUT must be done as atomically as
possible to minimize the race condition.
BUG=b:237981131,b:247795316
BRANCH=None
TEST=Taniks. Press search+alt then 'k' 100 times.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I7ccfae99b3657ead5fa9e3c337db623aaffdb0bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3901253
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After EC received interrupt from monitor on GPIOB4/ GPIOB5/ GPIO10. EC
will power on the system.
If EC received interrupt during s0ix, EC will trigger powr button to
wake AP.
BUG=b:239634608
BRANCH=none
TEST=make BOARD=moli
Signed-off-by: Elsie Shih <elsie_shih@wistron.corp-partner.google.com>
Change-Id: Ia407468afc103595d33b6ce526d8e05bc66c76a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3771361
Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|