| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We change the A+G sensor from BMI160 to ICM40608
then the direction of the frame is wrong
so we should modify the matrix
BUG=b:178339361
BRANCH=kukui
TEST=1.make BOARD=katsu
2.rotate the DUT and check the direction of the frame
Change-Id: Ibb14123c2d7fa9a3ea7016db933860cffe667dc3
Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674685
Reviewed-by: Sunwei Li <lisunwei@huaqin.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Sunwei Li <lisunwei@huaqin.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add detect accel/gyro sensor in HOOK_INIT for sysjump rw.
Use "HOOK_PRIO_INIT_ADC + 2" For sku_id checking.
And make sure detect sensor when chipset power on.
BUG=b:175918382
BRANCH=hatch
TEST=sysjump ro/rw to check motionsense data.
Change-Id: Ib5de2225b0534d91bda4127a8a22a23cdbea59ae
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2669748
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
set CONFIG_VBUS_VOLTAGE_TARGET
BUG=b:178066852
BRANCH=none
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I462d4afd8e9c258191798d922a3a4c600ca119a3
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2670622
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set the correct values for the flash layout as well as the
boot RAM size.
BRANCH=none
BUG=b:176828988, b:174481378
TEST=zmake testall
TEST=build volteer, flash, be able to interact with EC.
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I38876eaea1a4f35a95c5146e65e23dd42b90d04a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2656918
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the dts file used by binman to use the correct
CONFIG_PLATFORM_EC_PROTECTED_STORAGE_* and
CONFIG_PLATFORM_EC_WRITABLE_STORAGE_* values for packing the flash
image.
BRANCH=none
BUG=b:176828988, b:174481378
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I39729a5802d7c258c5e4109106f97cf707d1a574
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2656917
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bring both flash.c and system.c into the build.
zephyr/shim/src/system.c now includes only code that is needed
to stub out the chip specific system.c implementation in
platform/ec (which is now using the devicetree values).
BRANCH=none
BUG=b:176828988, b:174481378
TEST=zmake testall
TEST=build volteer, flash, and test flashinfo.
Cq-Depend: chromium:2631353
Change-Id: I5c542fca01dcc4af98401bcbbf402e579cd45e36
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649463
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds a script that can be used to update release branches
via a merge strategy from the main branch. It leverages the existing
`update_release_branch.sh` script, but was rewritten in python and
made generic such that it could work with any branch.
It also allows baseboards to be specified along with a separate text
file that can contain other paths of interest.
The default merge strategy is the 'recursive' strategy with the
'theirs' strategy option. The user may provide a different merge
strategy using the '-s' and '-X' options.
The script can be invoked in the following manner:
$ util/update_release_branch.py --baseboard dedede \
--relevant_paths_file util/dedede-relevant-paths.txt \
firmware-dedede-13606.B-master
The syntax for the relevant_paths_file is simple. Each path should be
own its own line and use the glob syntax that `git log` would expect.
Comments may be used with the `#` symbol.
BUG=None
BRANCH=None
TEST=util/update_release_branch.py --baseboard dedede \
--relevant_paths_file util/dedede-relevant-paths.txt \
firmware-dedede-13606.B-master; Verify that merge commit is made and
commit message is as expected.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: Iedd650104bbe6fd231805cf79aedfdca0bd16dd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666675
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ROM resident support is not needed in Zephyr at this time.
BUG=b:179153863
BRANCH=none
TEST=make buildall
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I08b6e6f47b9cb165b70138b6afd6b590ea1f62a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668184
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create the initial EC image for the kracko variant by copying the
drawcia reference board EC files into a new directory named for
the variant.
(Auto-Generated by create_initial_ec_image.sh version 1.5.0).
BUG=b:178092096
BRANCH=None
TEST=make BOARD=kracko
Signed-off-by: Tony Huang <tony-huang@quanta.corp-partner.google.com>
Change-Id: Ib76db1a171dd5075140ab61b3c49de3ee558c3b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2670603
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
change PROCHOT debounc time : 1ms -> 500us
BUG=b:178064079
BRANCH=None
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: Id28aadb53e0f70309fc4864653a2f8f4258782ee
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666561
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Charging Voltage (Battery → Charger IC)
Need 100mV margin between battery allowable voltage
and Charger IC set voltage.
8860mV → 8760mV
8400mV → 8300mV
Charger Current
Need 10% marging between battery allowable current
and Charging current.
- Normal temperature (Battery → Charger IC)
~8.24V : 6916mA → 6224mA
~8.44V : 5320mA → 4788mA
~8.86V : 4256mA → 3830mA
BUG=b:178565802
BRANCH=None
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I41dca90d7ff830a392093163d7d2141cbbd17f09
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2654666
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This replaces the stm32mon console output with more useful
command name, instead of the command byte codes.
BRANCH=none
BUG=b:176500425
TEST=make -j buildall
TEST=make -j proj-bloonchipper
./util/flash_ec --board=bloonchipper --verbose
TEST=emerge-strongbad ec-devutils
# Ran on CoachZ with patched flash_fp_mcu
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I6a8c7861ad1629ed2253c120ae38d4a1e1820dad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2234744
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable CONFIG_HIBERNATE_PSL and CONFIG_LOW_POWER_IDLE.
Reorginize power configs.
BUG=None
TEST=Build
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: If2c1de703c72d660a1ad61a4270c735161dd6abe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645080
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL Connects Zephyr host interface APIs for KBC to lpc_keyboard_*
functions.
BUG=b:178747744
BRANCH=None.
TEST=pass "make buildall"
TEST=pass "zmake testall"
TEST=check console, see 8042 protocol hankshaking messages printed:
21-02-01 16:22:22.142 [25.885700 KB Clear Buffer]
21-02-01 16:22:22.143 [25.887600 KB enable]
21-02-01 16:22:22.143 [25.888900 KS enable]
21-02-01 16:22:22.143 [25.890800 KB Clear Buffer]
21-02-01 16:22:22.143 [25.893700 KB scancode set to 1]
21-02-01 16:22:22.151 [25.896400 KB Clear Buffer]
21-02-01 16:22:22.151 [25.899000 KB Clear Buffer]
21-02-01 16:22:23.144 [00025887] <inf> espi_shim: KB put 55
21-02-01 16:22:23.144 [00025887] <inf> espi_shim: KB put 00
21-02<inf> espi_shim: KB put fa
21-02-01 16:22:23.156 [00025898] <inf> espi_shim: KB put fa
21-02-01 16:22:23.156 [00025901] <inf> espi_shim: KB put fa
Signed-off-by: JunLin <CHLin56@nuvoton.com>
Change-Id: I39ee19630da8561e392de34a277c043dbeae4c6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2659137
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the A+G sensor from BMI160 to ICM40608
Use the driver of icm426xx to enable ICM40608
BUG=b:178339361
BRANCH=kukui
TEST=1.make BOARD=katsu
2.ectool motionsense can get the sensor data
Change-Id: If3b497914da10bcf103a3c3376c55b19d87ab81b
Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2671260
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
system_common_shutdown -> handle_pending_reboot was assuming that
once pd_set_suspend returned, CC open had been achieved. This was
not true, because pd_is_port_enabled saw get_state_tc return
TC_DISABLED while tc_cc_open_entry was still waiting for its cflush
to finish. Add TC_FLAGS_SUSPENDED to fix this, and ensure CC open
timing is correct.
Use tc_pause_event_loop in tc_disabled_run instead of
task_wait_event(-1), to align with tc_low_power_mode_run.
In tc_run, don't keep entering TC_DISABLED if we are already there.
BUG=b:174526198
BRANCH=zork
TEST=ectool reboot_ec cold at-shutdown
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I5db6da787049361dac43d1f03b7c1fea770dfb85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666523
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The key objectives are to
* allow util targets to be added from outside of util/build.mk
(for adding tools per board, like ectool_servo)
* allow for easier conditioning of tool inclusion
(for auto adding tools based on characteristic, like CHIP_NPCX)
* reduce the number of tools being built
(we can remove irrelevant tools for some boards, like removing
stm32mon for npcx boards or iteflash for stm32 boards)
We have tons of boards in EC now. This takes a significant amount
of time to build, so we should be a bit more careful when adding
utils for all boards. This and subsequent changes sets the precedent
for selectivity.
This shifts the initialization/control to the board and baseboard's
build.mk and allows the util/build.mk to add items to these variables.
Ideally, we would use multiple variables to aggregate the utils
selection from the three sources (baseboard/build.mk, board/build.mk,
and util/build.mk), but I don't think the addition complexity is
currently warranted.
BRANCH=none
BUG=b:176500425
TEST=# Check all output artifacts from before and after this CL.
make clobber
make buildall STATIC_VERSION=1 -j
mv build build-orig
# Apply the change
make clobber
make buildall STATIC_VERSION=1 -j
diff <(find build-orig | sed 's/build-orig//' | sort) <(find build | sed 's/build//' | sort)
# Nothing should be different
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I23153850eda10fc1c88d386b9f3cd8296df9c6f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606511
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Swap EC_LID_OPEN and TABLET_MODE_L GPIO setting.
BUG=b:178953622
BRANCH=firmware-volteer-13672.B
TEST=make BOARD=copano
1. Verified pass with factory test.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I38181719d46a543a3a7580aa6c96bce608b18462
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662233
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add setup_thermal for setting thermal table
BUG=b:178678269
BRANCH=main
TEST=thermal team verify value on AP
Signed-off-by: yu-an.chen@quanta.corp-partner.google.com
Change-Id: I8b55a6e8c488e3a5eee713e6d73f908def3bec00
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666558
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On soft reset SOP', the cable's PD revision is lost causing
Thunderbolt and USB4 devices to downgrade. Hence, this patch
retains the cable revision by storing it again after a soft
reset SOP'.
BUG=b:173725284
BRANCH=None
TEST=No downgrade seen with USB4 with 100 continuous hotplugs
Signed-off-by: Ayushee Shah <ayushee.shah@intel.com>
Change-Id: I4498c6b397503058e5c4c2bce91e7d31960f6395
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2669418
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CONFIG_HOSTCMD_VBNV_CONTEXT is deprecated and removed.
Cleanup preprocessor statements to assume it's never defined. This
makes CONFIG_STM32_RESET_FLAGS_EXTENDED obsolete, since it's now
always defined, so that gets removed too.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id040ce2ceca95ecde37de0014aafdbfd3087e00d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668688
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
switch keyboard backlight enable/disable by fw_config BIT14
BUG=b:162632407
BRANCH=none
TEST=Set FW_CONFIG to 0x4000 and make sure "ectool inventory"
had keyboard backlight present.
Change-Id: I766b5179340c155a98fb854bba66e93f820d1e6b
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662935
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If CCD not active, set port 0 SBU_EN=0 to avoid power leakage during
hibernation.
BUG=b:175674973
BRANCH=grunt
TEST=no power leakage during hibernate
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I05b8079aebc1282b9bb955bbf153c0fc2399bee1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668063
Tested-by: Peichao Wang <pwang12@lenovo.corp-partner.google.com>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Peichao Wang <pwang12@lenovo.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The position of KX022 on the lid (screen face up):
^ +z lid_standard_ref_kx022=
| -- --
| | -1, 0, 0 |
+x <----- | 0, -1, 0 |
/ | 0, 0, 1 |
/ -- --
+y <
The address changes to 8-bit address 0x3C (7-bit: 0x1E)
BUG=b:175663607
BRANCH=trogdor
TEST=ectool motionsense display correctly on rework DUT with KX022
and ICM40608.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Iee87a9ce578e0d2fe6f06995f87057a16e38631f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666559
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL introduces cros_system driver. Currently, Zephyr doesn't have
the system related API (e.g., reset cause, system reset). Add a
cros_system driver to put those system chip drivers. This CL adds reset
cause function initially.
BUG=b:178101173
BRANCH=None.
TEST=zmake testall
TEST=check reset cause by powerup, reset_pin, debug_rst, watchdog_rst
Cq-Depend: chromium:2661921
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I7c956c2a9c10f3be913400bb33d2f4002dcbabb3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657912
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds implementations of STATIC_IF and
STATIC_IF_NOT that work with Zephyr's Kconfig values.
Note that when using COND_CODE_1 both extern and static
have to be wrapped with parenthesis since COND_CODE_1
requires them and will strip them.
BRANCH=none
BUG=b:176828988, b:174481378
TEST=zmake testall
TEST=make runhosttests
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ib7f61758fc34acf2f609cb395cfa33ce7c71d759
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668869
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:178648877
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ia1736c4fef0b76c752393462808b5af1da15801e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668977
Commit-Queue: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
No current devices implement these commands, but there's still some
external code (e.g., in depthcharge) that reference the constants.
Mark it deprecated and we can remove once it's gone elsewhere.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I221c18da588ee7cffced22563f3ea960aa9e7c17
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668693
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
No current devices use vbnv in EC BBRAM... delete.
BUG=b:178689388
BRANCH=none
TEST=zmake testall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ie24e979c3879832cfba1ff7f468619f68377a4b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668691
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Nothing uses this anymore, we can free up these indexes for future
use.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id7df3091edc3a8d8d07ebdfb0347a26a51389163
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668690
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unused, as VBNV storage in EC bbram is gone.
This makes inxedexs 0x10 to 0x1F in bbram available for future use.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I013bc2885f06aa853b1fbdabe98d9e5658811e44
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2668689
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a configuration file so that new commits can be tested by gitlab.
Also add a basic README for the Zephyr EC.
BUG=b:178731498
BRANCH=none
TEST=follow instructions in README.md
Change-Id: Ibc3b4c5859e0b2e45ecd1c1518e096bc8272d155
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657103
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Chagne CHARGE_V_STEP from 64mV to 8mV
BUG=b:179098188
BRANCH=none
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: Ia6e221cf4f91c8684c5ab152022ca767146da59b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2666311
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tune usb_eq and usb_gain on port 1
BUG=b:176862264
BRANCH=None
TEST=make -j BOARD=sasuke
update ec and check usb eq register
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: Ief9bc8d545e94d2e4726ed61d12739e7e872aabc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649895
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
add function to tune usb eq and gain
BUG=b:176862264
BRANCH=None
TEST=make -j BOARD=sasuke
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I50ff040643cd2635968c5cfb988998ad3a82a836
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649894
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, the TC can miss exiting modes during a power transition to S5
with a sinking DP dongle. Correct this and simplify the number of call
locations needed by putting any mode exit on detach in the existing
detach handler.
BRANCH=None
BUG=b:176213187
TEST=on drawcia, verify HPD is de-asserted when:
- unplugging sinking DP dongle in S0
- unplugging sourcing DP dongle in S0
- powering off to S5 with sinking DP dongle
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I2f7f3b09c4fd875e26d6c5e71de1b3250526dbe3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662212
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Correct the rotation matrix for X axis direction.
BUG=b:178451001
BRANCH=firmware-zork-13434.B
TEST=make BOARD=shuboz
1. Using "ectool motionsense" check x/y/z value.
2. Using "ectool motionsense lid_angle" check angle.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I7e6b7742b6b306e7e34b961518de19cb366a26dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662864
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, pchg sends a host event for any event including charging
update. This will prevent the host from staying in S3 while charging
a peripheral device.
This patch makes pchg notify the host only a device attach or detach
event when the system is in S3/S0ix.
Tested resume on detach as follows:
1. Verify system can suspend with a stylus attached.
2. Detach a stylus.
3. Verify system resumes.
Tested resume on attach as follows:
1. Suspend with a stylus detached.
2. Attach a stylus.
3. Verify system resumes.
BUG=b:177664326,b:173235954
BRANCH=trogdor
TEST=CoachZ. See above.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: Icf7c6c46f94f27f1f24eb2ac9634d317bc14f4d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2665407
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add code to disable internal Rp detection in the PS8815 prior to
presenting Rp.
BUG=b:178664884
BRANCH=volteer
TEST=make buildall
TEST=Connect SNK devices to Delbin and observe PD contract established
reliably.
TEST=Connect dual-role USB-DP monitor, observe display comes up.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ic1f58a7fc0e01a4c19c8d1de7fafda0b5d4551c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2659678
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Branch names have changed as part of go/coil initiative.
BUG=b:165682717
BRANCH=none
TEST=none
Signed-off-by: dossym@chromium.org
Change-Id: I901984a7786ca31d4b8d85492fc4a7953080c6e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2667026
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is no longer set by any boards, and we don't intend to use it on
future projects again.
BUG=b:178689388
BRANCH=none
TEST=buildall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I7aa64d52bc197778873e7eb880961c37fb9f34e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657721
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add Kconfig options for the various RTC features. Add stubs for the
actual implementation, to be implemented using Zephyr API calls to the
RTC driver, when available.
The duplication of RTC functions across different chips can be
addressed in b/179055201
Also add the <init.h> header to zephyr_host_command.h since otherwise
we get a build error. It seems better to have the header there than in
the files that use DECLARE_CONSOLE_COMMAND().
BUG=b:178230662, b:179055201
BRANCH=none
TEST=build volteer for zephyr, try rtc and rtc_alarm command
make BOARD=volteer -j8
Change-Id: I036b1f3d91543a357ad779e475a03584759a3de4
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645570
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=`mux config:0, port:0, rv:36` disappear
BRANCH=main
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I514601b5c6e82805b861b9ca345052a76fcebb74
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662513
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disable/Enable tablet mode by fw_config
BUG=b:178456852
BRANCH=cros/main
TEST=`make buildall` PASS
Change-Id: I829b2486f63430ef7bf59bf582b914d33dae71c0
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2649885
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Progressed enough in development that we no longer need to
force an unlocked state on the EC.
BRANCH=None
BUG=b:178569971
TEST=make -j buildall
Change-Id: I6574acc424509dec027c18898d1fe060b770ae03
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2663095
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix Juniper accel icm matrix.
BUG=None
BRANCH=kukui
TEST=Check CTS-V accelerometer measurement tests pass.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I6c9313b0efb6fc913016660a91c949db51b6f1a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662220
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Correct the rotation matrix for X axis direction.
BUG=b:176393206
BRANCH=firmware-volteer-13672.B
TEST=make BOARD=copano
1. Using "ectool motionsense" check x/y/z value.
2. Using "ectool motionsense lid_angle" check angle.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: Ic31b17419aed98a72eaa0a05a4b6f36127d62e39
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662228
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update thermal table for settings provided by thermal team on 2021-01-29.
BUG=b:178768749
BRANCH=firmware-volteer-13672.B-master
TEST=make buildall
TEST=test pass by thermal team
Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Change-Id: I60c3211b80ede4877c3469820519b2d62f2efbe0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2620719
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix aleena accel icm matrix.
BUG=None
BRANCH=grunt
TEST=Check CTS-V accelerometer measurement tests pass.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Ic340aa5df4e4121986c99828ac3a88b8ac68708f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2662219
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a forward declaration for struct usb_mux used in a function
prototype.
BRANCH=none
BUG=none
TEST=buildall passes
Change-Id: I81b198c5bacacece565b2ec8797f2672654e4b1c
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2654739
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|