| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ISH and UFS are in same PCI slot function 0. To enable UFS, ISH has to
be enabled too.
This ISH firmware is a lite version; only provides power management.
If no activities, ISH will be in deep sleep all the time.
BUG=b:234136500
BRANCH=none
TEST=make BOARD=adl_ish_lite
TEST=on ADLP RVP
Flash ISH enabled Coreboot (ISH BUP and loader are stitched to CB)
Copy ec.bin to DUT's file system: /lib/firmware/intel;
Rename it as adlrvp_ish.bin and "sync".
Reboot system, host dmesg shows ISH main firmware is loaded.
And ISH console shows ISH is in deep sleep.
dmesg: "ish-loader {C804D06A-55BD-4EA7-ADED-1E31228C76DC}:
ISH firmware intel/adlrvp_ish.bin loaded"
EC console: "[15.038421 Disabling console in deep sleep] "
Signed-off-by: Li Feng <li1.feng@intel.com>
Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Change-Id: I93877d7f50af985a63895bbb7785ca67d0ec0747
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3925007
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
host_packet_receive() is defined when HOSTCMD task is enabled; so add a
check of HOSTCMD; otherwise there is build error for board which doesn't
enable HOSTCMD task.
One of ISH solutions is to provide power management functionalities. It
powers on ISH and puts it in deep sleep. HOSTCMD task is disabled in this
case to avoid waking up ISH periodically.
BUG=b:234136500
BRANCH=none
TEST=build tglrvp_ish
Signed-off-by: Li Feng <li1.feng@intel.com>
Signed-off-by: Guangfu Hu <guangfu.hu@intel.com>
Change-Id: I64cd6ad4d292847d477f08708ece4d41b4e94650
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3892628
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
panic_set_reason() and panic_get_reason() are called from
system_common_pre_init() if CONFIG_SOFTWARE_PANIC is enabled. A followup
commit removes CONFIG_SOFTWARE_PANIC since all boards enable it, so we
need stub implementations for the host in order to successfully compile.
LOW_COVERAGE_REASON=legacy code
BRANCH=none
BUG=none
TEST=make buildall
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I33322b593f707f3c8937f4a7cd2189841b197aa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935024
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a function in a header is marked as weak (test_mockable), that tells
the linker that it is ok for the symbol to be missing. We never want
that.
If a function implementation is marked as weak, that tells the linker it
is ok to use a non-weak symbol instead of this one. This is what we want
when we are trying to override functions.
Remove all test_mockables from headers, except for one inline function
that I wasn't sure what to do with.
BRANCH=None
BUG=None
TEST=make -j$(nproc) runhosttests buildall && zmake build -a && \
./twister -v -i --clobber
LOW_COVERAGE_REASON=Added stub get_ap_reset_stats() for tests that
don't care about that function, and it's always unused.
Change-Id: Ic00a897131c93ef134544f26a8e368ce1f78a5de
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935720
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These tests were using an invalid size when trying to erase flash
causing the test to get skipped unknowingly
BRANCH=None
BUG=b:251471020
TEST=./twister --clobber -i -s zephyr/test/drivers/drivers.default
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: Icdc08d371f74ab193a0ff08f31c6bcff6aa5be47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3939826
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit disables the host interrupts before sysjump. This prevents
the ISR from trigger during sysjump to cause the unexpected symptom.
BANCH=none
BUG=b:246963730
TEST=in skyrim, the hostcmd broken after sysjump symptom is fixed by
the related PR and CL.
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I861c907b0c251c642ae3e59d1a6553c3c52be38a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3937849
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: CH Lin <chlin56@nuvoton.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add test that verifies the system_get_chip_vendor/name/revision() all
invoke the chip-specific cros_system device driver routines.
BRANCH=none
BUG=b:236074898
TEST=twister --clobber -i -s zephyr/test/system_shim/system_shim.default
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I1291ec392c69f8fa6f81dc7fa1a567296a4f4df7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935638
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add test that verifies the system_hibernate() function calls the
chip-specific cros system routine for hibernation and can respond to an
error from the aforementioned test without going into an infinite loop.
BRANCH=none
BUG=b:236074898
TEST=twister --clobber -i -s zephyr/test/system_shim/system_shim.default
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: Ice3aed18d7f9f858263aac4aecc980ca6720bfe1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3936482
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows passing a pipe file as the image, which could be used to
invoke flash_ec thorough ssh and a pipe for the image file.
BRANCH=none
BUG=b:176500425
TEST=ssh DUT -- flash_ec --board=bloonchipper "--image=<(cat)" <.../ec.bin
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I509037626e8c7299613ebdaf5391edfa0cf6a6fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3937047
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test the motion_lid.c subcommands of the motion_sense host command.
BRANCH=None
BUG=b:250726941
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: Ifb496e7e7d1bf91d320b6dce04a4e90c13975954
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3934412
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test the `hash` console command and verify the hashes it returns
BRANCH=None
BUG=b:236074638
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: I56205425272632ee8ec9f559bf369223189d00ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3932113
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add tests for reverse(), parse_offset_size(), wait_for_ready(),
binary_from_bits(), and ternary_from_bits()
BRANCH=None
BUG=b:249823196
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: If90c33fdbc9bd25dc52a3aa3f5141c90de4b7296
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3925111
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an option --fix to util/check_clang_format.py to easliy fix all
formatting problems.
BRANCH=None
BUG=None
TEST=./util/check_clang_format.py --fix
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I7e3c4d57c29da89d5ca27503e52d8362f0c0a1e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3939649
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify default rp value when bist share mode in order to pass the
TDA.2.3.1.1.
BUG=b:242957100
BRANCH=none
TEST=Pass TDA.2.3.1.1
TEST=make host-coverage-usb_typec_drp_acc_trysrc
TEST=make test-coverage
Change-Id: I873c9a2bb135e69c24df7891215c84c0603e6d73
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906517
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These flash tests are currently being skipped. Set this
as expected until failed assumptions are fixed.
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I5f06b41c4ae352c57a44480e60f5897da43a6ca9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935719
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prevent tests that are skipped pass CQ
BUG=None
BRANCH=NONE
TEST=Verify FAILURE on ./twister -T zephyr/test
Add ZTEST_EXPECT_SKIP for expected skips and
verify SUCCESS on ./twister -T zephyr/test
Cq-Depend: 3935719
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I546f27fe4f19136609612f5139cff4b4dc1da4ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935718
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The flags we implemented is not used anywhere in the codebase.
BUG=none
TEST=zmake
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I72b01806463aec903b1bfe23bb1c12a58a97265d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3896556
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't need this. It was previously used to source detachable base.
BUG=none
TEST=zmake
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I597facaac26a6264e3a6faef2c29a50206355926
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3896557
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify fan actual RPM log for recording actual RPM every 2 minutes.
Deadline won't update in S0ix, so get the current time to avoid
recording actual RPM every second.
BUG=b:251019895
BRANCH=none
TEST=make BOARD=crota
Signed-off-by: Elsie Shih <elsie_shih@wistron.corp-partner.google.com>
Change-Id: Id3332a705bcd0a274848a86d36848163c3eefc6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3928458
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Frostflow io-db only has the combination of PS8811-PS8818, convertible,
and FAN models, so delete the unuse FW_CONFIG code.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BUG=b:246873434
BRANCH=none
TEST=zmake build frostflow success.
Signed-off-by: ridden_liu <ridden_liu@compal.corp-partner.google.com>
Change-Id: I6b32d4bc203608c9cf0e914c6b936b763ab1ddd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3928625
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL enable bist share mode control by ec console.
BUG=b:242957100
BRANCH=none
TEST=pd bistsharemode [disable|enable]
TEST=./twister -v -T zephyr/test
TEST=make run-usb_pd_console
TEST=make buildall
TEST=make test-coverage
Change-Id: I3aaaf91eaa1321d57fd773bba18d126ead29f944
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3924556
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
enable customization define, implement customization matrix
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=none
BUG=b:246873434
TEST=zmake build frostflow pass
Signed-off-by: Leo-Tsai <leocx_tsai@compal.corp-partner.google.com>
Change-Id: I56877bc5efb6a285f0fc9bed7dbddd6a031ac881
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3929903
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When entering PE_SNK_Ready or PE_SRC_Ready, clear the
PD_STATUS_EVENT_HARD_RESET flag so that the kernel does not
receive stale events (which can disable the USB port).
The hard reset can be triggered if the EC cannot distinguish
between a reset and a power-on reboot (such as occurs with the IT81302),
and so is flagged as a power-on.
A power-on reset flag will reset the PD connection.
The hard reset PD status event flag is set, and then PD negotiation
may proceed and complete. Eventually the kernel starts, and will read
the PD status, and see the (now stale) hard reset event flag,
and take action to disable the USB port.
BUG=b:231401624
TEST=zmake build nereid; Enter recovery via keyboard
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Icc179d19e0a0b6fce215021e464516471cdd47cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3897917
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify the EC_CMD_RTC_GET/SET_VALUE host commands by setting the value
to two different arbitrary values via the SET host command and
subsequently retrieving these values via the GET host command.
Also adds a new test-binary under the drivers tests for shim rtc code.
BRANCH=none
BUG=b:236161110
BUG=b:236160901
TEST=twister --clobber -i -s zephyr/test/drivers/drivers.shim_rtc
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I8b843c15d7f73e6905caccfec5a3ee5046bbfff8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3938407
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Validate pd_task_loop EVENT_RESET_DONE handling
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I98d4f4ed94f32ec6f58dec3f7154b8628a44f946
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935860
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The zassume macro loudly fails a build when it fails in a
setup/before/teardown. However, it does not fail the build loudly when
it fails in a test.
Temporarily make all zassumes in util zasserts until zassume failures in
a test fail the entire test.
BRANCH=none
BUG=b:251281997
TEST=/twister --clobber -i -s zephyr/test/drivers/drivers.default
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I8545ce8db5e94e997ec70f25283d7de9c7b75237
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3937223
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify the charger from ISL9241 to ISL9238
BUG=b:249707388
BRANCH=none
TEST=zmake build winterfold skyrim frostflow morthal success
TEST=Can get the ISL9238 charger by console cmd "charger" on Whiterun
TEST=Charging/ discharging normal on Whiterun.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com>
Change-Id: Ie23d69b44654502a061be473c20303292197dcb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3932380
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Code-Coverage: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jonathon Murphy <jpmurphy@google.com>
Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Separate the charger to the respective dts file so let each board can
change the charger.
BUG=b:249707388
BRANCH=none
TEST=zmake build winterfold skyrim frostflow morthal success
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com>
Change-Id: Icc83e92b44e674a1ad52e1c56e345b65656c0585
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3932275
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the root level CMake for the EC module to the top level directory.
This will simplify future changes where zephyr logic is intermixed with
legacy EC logic during the migration effort.
BRANCH=none
BUG=b:246839061
TEST=zmake build -all && ./twister -v
Change-Id: I5e67310b2237aeffdf8033c5cf1201cb67559158
Signed-off-by: Yuval Peress <peress@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3932868
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Validate pd_task event loop pause APIs
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I65450cd8652ca5c95978bb0e52c57b46187b908d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935301
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:247796816
BRANCH=None
TEST=./twister -T zephyr/test/rex --clobber
Signed-off-by: mparuchuri <mparuchuri@google.com>
Change-Id: I9451056c8707f3e7d9c3d6d0f9f7aa5a94a576d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3931332
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 003f969d94550ee09c3de16de6430fd7c98f4a10.
Reason for revert: changed backlight brightness to PMIC control
Original change's description:
> evoker: Enable backlight control
>
> Enable backlight control
>
> BUG=b:241512602
> BRANCH=none
> TEST=zmake build evoker
>
> Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
> Change-Id: Ib8a542cfb1732b5ce65397ecdc2870c8b3708f15
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3826465
> Reviewed-by: Wai-Hong Tam <waihong@google.com>
> Commit-Queue: Wai-Hong Tam <waihong@google.com>
Bug: b:241512602 b:249434213
Change-Id: Ia191c4a0245fc2443ab40166c9304f822aa67e60
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935727
Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Silicon Mitus say that writing to flow2 enable bits when flow1 is set to an
active state (sinking or sourcing) will have no effect, and a silently
failed write like that may lead to unexpected (but not dangerous) behavior
because the enable bits will not be in the expected state. Most code paths
already satisfy this, but disabling the sink currently does not: change
sm5803_vbus_sink_enable to disable sinking before updating other
configuration, the mirror of ordering when enabling sinking.
BUG=none
TEST=nereid battery still charges/discharges as expected when PD source is
connected or disconnected
BRANCH=none
LOW_COVERAGE_REASON=no emulators currently exist for sm5803
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I50c7bf20569d7cad058c19aa238aeed8eaf2aa56
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3930177
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update enable pin for fan2 to follow schematic.
BUG=b:234053836
BRANCH=none
TEST=make BOARD=agah
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ic9c07435e9a2db4ba76dc01088e933849ee8adba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935982
Reviewed-by: Devin Lu <devin.lu@quantatw.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
yaviks design without HDMI port.
BUG=b:241964549
BRANCH=none
TEST=zmake build yaviks
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ic164323aa16e2f19d9297641d69a218da1003ca6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858967
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Yaviks design without keyboard backlight enable pin.
BUG=b:241964549
BRANCH=none
TEST=Keyboard backlight work intended.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ib226d99f64a6a7c87625b9cb433e9ce0c04d61d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3930165
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add bist share mode enable/ disable command.
This command will only be effective if system is unlocked.
Tested this command by sending Get_Source_Cap command.
DUT will return Source Cap with 5V/3A after BIST share mode be enabled.
BUG=b:242957100
BRANCH=none
TEST=ectool typeccontrol 0 5 [0 | 1]
TEST=./twister -v -T zephyr/test
TEST=make buildall
Change-Id: I307596b9b59d60b72ff1e594919fadfb644dcc53
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3881522
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify the idlestats console command fetches the idling time stats from
the cros system chip specific driver. Adds a new cros system driver for
native posix explicitly for testing purposes.
BRANCH=none
BUG=b:236074898
TEST=twister --clobber -i -s zephyr/test/system_shim/system_shim.default
TEST=CQ
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I44a5bea19923ecf46a1906a323aaa446b51bba41
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3933259
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add krabby, nivviks, and skyrim specific coverage builds to cq and
gitlab. In cq this is just lcov commands, no new builds will actually
be run.
BRANCH=None
BUG=None
TEST=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I59120b9a2b7cff7fbe5f7d24c92a4c877ccd79b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3936944
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of passing the static var state to power_common_state(), just
use the static var directly. This should make no change in the live
code, but will allow tests to call power_set_state() while the
chipset_task is blocked waiting for events.
BRANCH=None
BUG=b:236074354
TEST=CQ
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I3a59f1e3008bf23a88d2b07d26c2ebd9720588a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3936945
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This disables the BB's USB3 retimer to save power during S0ix.
BRANCH=none
BUG=b:245753005
TEST='make buildall' passes
verified BB register 0x04 changes from 0x21 -> 0x01
on lid-close; is restored to 0x21 on lid open.
Change-Id: Ib0007f4db9a7f4f9080d876ff2681349a202fa59
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3914995
Reviewed-by: Diana Z <dzigterman@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cover default case for bad argument when argc greater than 2
BUG=None
BRANCH=NONE
TEST=./twister -T zephyr/test
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: Idfd6e53d9f10c84cd6df8808185941d8b941b34b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3935031
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds support for utils into both the RO/compile_commands.json and
the RW/compile_commands.json.
Additionally, it adds a dedicated util/compile_commands.json to the
build directory.
Usages:
> make all-ide-compile-cmds -j$(nproc)
Creates R[WO]/compile_commands.json and util/compile_commands.json
for all boards.
> make ide-compile-cmds-$BOARD -j
Creates R[WO]/compile_commands.json and util/compile_commands.json
> make BOARD=$BOARD build/$BOARD/util/compile_commands.json
Creates just the util/compile_commands.json using the minimal
number of JSON conversions.
BRANCH=none
BUG=b:250077363,b:236389226,b:176500425
TEST=make ide-compile-cmds-bloonchipper -j
ln -sf build/bloonchipper/RW/compile_commands.json
# Ensure that the entry for ectool.cc is correct in the json file.
# Ensure that lang support works in ectool.cc and clangd doesn't
# report "ASTWorker building file ... with command inferred from ...".
# Ensure that the command reported in the clangd output is correct
# for an x86 based machine.
TEST=make ide-compile-cmds-hatch -j
# Do the same check as above.
TEST=make all-ide-compile-cmds -j
TEST=# Board kukui_scp only has an RW image.
make ide-compile-cmds-kukui_scp
# Only an RW compile_commands.json should be created.
TEST=make BOARD=hatch build/hatch/util/compile_commands.json
# Should produce the above compile_commands.json for
# just the utils of hatch.
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I7c2ac0ee9de2397abae296a30c3794da1676030e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3926090
Reviewed-by: Andrea Grandi <agrandi@google.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:250077363,b:236389226,b:176500425
TEST=make ide-compile-cmds-bloonchipper -j
TEST=make all-ide-compile-cmds -j
TEST=# Board kukui_scp only has an RW image.
make ide-compile-cmds-kukui_scp
# Only an RW compile_commands.json should be created.
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I90abed48bef4db848bf7678ca49a7d2b882d9051
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3926089
Reviewed-by: Andrea Grandi <agrandi@google.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is important to note that this CL moves the format
of the compile commands json away from the simplified
commands that bear outputs. It instead inserts the
arguments that we actually use for compilation.
One caveat with this approach is that we still don't
capture special modified args that are associated with
a specific build target, like the following:
$(out)/RW/common/blah.o: CFLAGS += -g
This is because our compile commands json targets
will not match this rule.
This is benchmarked using the following command:
> time make ide-compile-cmds-hatch
Note that the extra $(shell sed ...) invocation
slows the benchmark down by about 1sec.
BRANCH=none
BUG=b:250077363,b:236389226,b:176500425
TEST=# bloonchipper doesn't work without c++ support
make ide-compile-cmds-hatch -j
TEST=# Board kukui_scp only has an RW image.
make ide-compile-cmds-kukui_scp
# Only an RW compile_commands.json should be created.
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I0a3542bbd5478311e8f2b253f88c936915ed5032
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3866112
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Andrea Grandi <agrandi@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, chan command takes only mask in hex representation. This
patch allows the command to accept channel name. For example,
> chan pwm
chan pwm disabled
> chan pwm
chan pwm enabled
enables pwm channel if it's disabled or enables pwm channel if it's
enabled.
BUG=None
BRANCH=None
TEST=On Agah
TEST=./twister --clobber -i -s zephyr/test/drivers/drivers.default
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I0cfc4beff54451d5bc211c5b3c30f5b0747e6d28
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3930855
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use Zephyr's K_THREAD_DEFINE to statically create the needed threads
instead of dynamically creating them with k_thread_create().
This saves a small amount of RAM (40 bytes) and increases flash usage by
about 140 bytes.
This change should not merge until
https://github.com/zephyrproject-rtos/zephyr/pull/50508 merges.
BUG=none
BRANCH=none
TEST=zmake build -a
TEST=./twister
TEST=verify zephyr image boots on herobrine. Verify thread priorities
are unchanged.
Cq-Depend: chromium:3936185
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ie11c8fd99e0d424e2a03f33c545fa847d9d73ff9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3916581
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently we set the init color to white (0xff). This causes a glitch
during bootup if there's a delay in set color host command. Initialize
this to 0 instead.
BRANCH=None
BUG=b:247882525
TEST=none
Signed-off-by: Parth Malkan <parthmalkan@google.com>
Change-Id: I58eef1c67e6099b5eae75716027f7111fcf4cf22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3915336
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TCPMv2 does not support entering Google alt mode, so restrict the code
that supports composing Google VDMs to TCPMv1.
BUG=b:250015035
TEST=Attach hoho to voxel; observe no Google alt mode traffic
BRANCH=none
LOW_COVERAGE_REASONE=TCPMv1 is deprecated.
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I463c396ed9f1da913eb54d519aa7acd4b64e4bda
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3931182
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TCPMv2 does not support the Google alt mode and therefore cannot
implement this host command.
BUG=b:250015035
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I81eb12ee200a95019053c7e3bab6f351348cb963
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3931181
Reviewed-by: Diana Z <dzigterman@chromium.org>
|