| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add BB retimer emulator on i2c bus. Emulator properties can be defined
using device tree or runtime emulator API. Emulator checks if RO
registers and reserved bits are accessed correctly. API allows to set
custom read/write i2c messagess handlers to emulate complex behaviour.
BUG=b:184856919
BRANCH=none
TEST=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I4b641a90e6fb55e89aaee388c0ac04ab7bf367ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3110085
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL fixes the config options used to ignore the hardware write
protection signal to the CBI EEPROM. Honeybuns is only using this to
store the user MF prefence bit. The config option that had been used
to flip the polarity of WP_L (the default write protect signal) has
been removed.
BRANCH=quiche
BUG=b:164157329
TEST=Verfied that MF preference bit is stored in CBI.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I4f5cbe4b20dd2347e71429dadaf9f0c103b222de
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139097
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add Kconfig options CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8805 and
CONFIG_PLATFORM_EC_USB_PD_TCPM_PS8815 to enable/disable the workaround
for PS8805/PS8815 firmware reporting the incorrect device ID.
BUG=none
BRANCH=none
TEST=zmake testall
TEST=On herobrine, verify that "ectool pdchipinfo 0" reports a device ID
0x02.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I16367ae5276e974671b034294275104d5831df21
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3140325
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define vivaldi keybd for gooey.
BRANCH=keeby
BUG=b:198113136
TEST=make buildall -j
Test the top row on gooey
Test the Alt + VolUp + r combo on gooey
Test the Esc + Refresh + Power combo on gooey
Test all the other keys also
Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com>
Change-Id: I359db5fcc47abd94415cb66d7ffdbf9c77a346ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139618
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:198226222
BRANCH=none
TEST=make -j BOARD=primus
Signed-off-by: Terry Chen <terry_chen@wistron.corp-partner.google.com>
Change-Id: Ibcd2bd8d8fac5efdf6816442ccb9b786dafa4f7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3134886
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL read (load operation) an EC's extended interrupt enable register
one time after configured. The load operation will ensure chip-level's
interrupt has been disabled before enabling CPU interrupt.
This CL will also assert failure if EC get interrupt number 0 in ISR.
BRANCH=dedede
BUG=b:197308582
TEST=No system reboot on storo during the drop test.
Change-Id: I593d78626d1e3bb92e5316d1ff78f0ee54711741
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3124483
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CL:3084331 added logic to retry reading the PS8xxx FW version register
to ensure the chip has woken up from low power mode. If the PS8xxx
device is damaged/missing, there was an unbounded loop so the
initialization never completed, hanging the corresponding PD task.
BUG=b:198619831
BRANCH=none
TEST=Verify herobrine boots AP when the battery and right I/O board are
disconnected. Also observe "LPM recovery failed" reported on the
console for the missing type-C port.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I578f20a9a63dd54fc777dcc0acc26a7540a1bb46
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139975
Reviewed-by: Michał Barnaś <mb@semihalf.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=make buildall -j
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I7963baa87d6edbd208fb8bad5c80866f26527748
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3138385
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Same bug as CL:3113487. charge_manager accidentally overwrites other
global variable when supplier = -1.
BUG=b:198552518
TEST=Add debug log in charge_manager.c, make sure charge_manager does
not receive invalid arguments.
BRANCH=main
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I12787ab66fba7d8328440835867262e3828ac723
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3140013
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL read EC's IER one time after configured. The load operation
will ensure chip-level's interrupt has been disabled before enabling
CPU interrupt.
BRANCH=asurada, icarus
BUG=b:179206540
TEST=create stress test on it8xxx2 evb:
- Loop calling task_disable_irq() and task_enable_irq() to
enable and disable IRQ 13 (keyboard KSI interrupt).
- Toggle KSI continuously.
Without the patch, EC will hit IRQ 0 issue in two seconds.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Change-Id: I56bad182bd101d45b00368083b60aabbd9fb8bdb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3139652
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our GitLab builder uses different toolchains than the supported ones
we use for development. At present, this means that the GitLab CI
needs to call -t for each build with the desired toolchain, preventing
us from using the more general commands "zmake coverage" or "zmake
testall".
Extend the idea of toolchain in our config files to be "supported
toolchains" instead (i.e., multiple toolchains can be supported
instead of one. We do this by refactoring our toolchain support code
to consist of two related methods:
- "probe" returns True if the toolchain is detected on the system, or
False otherwise
- "get_toolchain_config" returns the BuildConfig associated with the
toolchain for the system, mirroring the functionality previously
implemented in lambda functions.
Also dropped support for arm-none-eabi, as I believe this was only
used early on during scarlet development, and am not aware of any
current users.
BUG=b:178731498
BRANCH=none
TEST=./run_tests.sh
TEST=zmake testall
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I9b2ad508ae6703f0c3b56518fc32606c0ff1777c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3134668
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disable CONFIG_CMD_MFALLOW and CONFIG_CMD_TYPEC commands to free up
RO flash space on kukui boards.
BUG=None
TEST=Build all
BRANCH=None
Change-Id: I1d60355b4d1c60c848a3373ce7eadf74a1a73056
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3136037
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable CONFIG_LTO to free up flash space.
BUG=None
TEST=Build
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: I12b399005e55b004ffb312fef05484ee14fdfbad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3136036
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tasks should have a void pointer parameter.
BUG=None
TEST=Build all
BRANCH=None
Change-Id: I6d8e289929862b60cef4901b59c78448173090ea
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3136035
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:198226222
BRANCH=none
TEST=make -j BOARD=primus
Signed-off-by: Terry Chen <terry_chen@wistron.corp-partner.google.com>
Change-Id: I39c37810e6532913bcc491519acf102da1ae76d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132554
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:198226222
BRANCH=none
TEST=make -j BOARD=primus
Signed-off-by: Terry Chen <terry_chen@wistron.corp-partner.google.com>
Change-Id: If672b3dd422713e0110a0eaf0dc63666b4434f85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132169
Reviewed-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we are running zmake -j1 coverage, then wait after each job so that
nothing runs in parallel.
BUG=None
TEST=zmake -j1 coverage
BRANCH=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ic709cd187414f3886bc28731f78748993bfac95e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3130624
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configure interrupt enable register is redundant on nds32 core chip
(IT8320). We just need to configure extended IER.
BRANCH=asurada, dedede
BUG=b:197308582
TEST=buildall passes, storo and hayato boot.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Change-Id: I8f99f7b937ac98d95b2f50f5be7b461ae3e9a413
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3134888
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the logic to find the gpios on herobrine.
BUG=None
BRANCH=None
TEST=flash_fp_mcu on Herobrine
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Change-Id: I8ed4f0df41d36f279a6e1d3a4dab74063d489f0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3135042
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch removes unnecessary function as following:
1. Remove ALS.
2. Remove Accelerometers.
3. Remove PCHG.
4. Remove FAN2.
5. Remove tablet mode.
BUG=none
BRANCH=none
TEST=make BOARD=anahera
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I19c939d9b8359fc58cb56323e0a3e1537f4515a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3127822
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Reviewed-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds battery configuration as following:
1. 996QA193H Simplo HIGHPOWER Battery
2. B00C407792D0001 CosMX Battery
BUG=b:197998092
BRANCH=none
TEST=make BOARD=anahera
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Icf7a8e14c42b19f033deec2ede6cb08d22a987b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3127464
Reviewed-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Return the status of the init function. This will be used in
testing to verify that initialization was correct.
BRANCH=none
BUG=b:184856083
TEST=make buildall -j
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I578b32b24b3ee59abf646307fb9670d2db74fe3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133624
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a reland of commit 769264c30d58e0b12795411e99e7d3efbbf78e2d.
CL:3131701 removes the "zephyr" use flag, so the hatch and trogodr
builders will no longer build both zephyr_ec and cros_ec images.
Original change's description:
> zmake: add NPCX monitor to output packer list
>
> Add the NPCX monitor binary to the output directory when using the NPCX
> output packer.
>
> BUG=b:197162681
> BRANCH=none
> TEST=Build zephyr for volteer, verify npcx_monitor.bin is present in the
> output directory with the zephyr.bin image.
>
> Signed-off-by: Keith Short <keithshort@chromium.org>
> Change-Id: I5ab29a797830b6870df5b86e70ebe86a62ff430b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3122866
> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
> Reviewed-by: Yuval Peress <peress@chromium.org>
BUG=b:197162681
BRANCH=none
TEST=Build zephyr for volteer, verify npcx_monitor.bin is present in the
output directory with the zephyr.bin image.
Cq-Include-Trybots: luci.chromeos.cq:cq-orchestrator
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Iee33430047257ab2eaf5f88252a91aca60ee60ab
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133466
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The line RETURN_ERROR(rt1718s_gpio_ctrl(...)) caused EC not able to turn
on sink path on C0 when daughter board absent.
To make C0 workable under this situation, ignore the error and print
some error message instead like other boards do.
BUG=b:198114418
BRANCH=none
TEST=device charging when daughter board not connected
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I09941310370a60be6145e38395a4922df52c2b9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3135516
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
nipperkin have charg leds on left side and right side, each side
have two colors amber and white.
The led behavior define as following:
Charging led: led on with charging port active, other port is off.
Charging: Amber.
Discharging: Off.
Battery Error: Blinking white (0.4 sec on, 0.4 sec off)
Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off)
Force idle for factory: Blinking amber (1 sec on, 1 sec off)
System suspend with non-charging state:
Blinking both side LED white (1 sec on, 1 sec off)
BUG=none
BRANCH=none
TEST=make sure led behavior intended.
make sure ectool led left white/amber/off/auto work correctly.
make sure ectool led right white/amber/off/auto work correctly.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ice3d474dc98e050dc4db79a5ea903edbf807e084
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3124476
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:193395015
BRANCH=none
TEST=make BOARD=nipperkin
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Iac675dde355eff9599cdbd20f22c777624033ec8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3122697
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Rob Barnes <robbarnes@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move test point and led gpio
from base_gpio.inc to variant.
BUG=none
BRANCH=none
TEST=make BOARD=guybrush, make BOARD=nipperkin,
make BOARD=dewatt all pass.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ic6ef1d74e1e751cbc39c2d63cd782c70f85d0644
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3122696
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Rob Barnes <robbarnes@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the spec, add the battery swelling function.
BUG=b:196308789
BRANCH=keeby
TEST=make BOARD=cappy2 pass
After testing, consistent with the battery spec.
Signed-off-by: wangganxiang <wangganxiang@huaqin.corp-partner.google.com>
Change-Id: Ie8232d720a04974ccbb71c26b95fb0c0097b4a53
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3090226
Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove unused task USB_CHG_P2, PD_C2.
BUG=none
BRANCH=none
TEST=make buildall -j succeeded.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Id0182660bf1b4f69bf12d6b345c5675e7c90d9f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132557
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:197924913
BRANCH=none
TEST=make -j BOARD=gimble
Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com>
Change-Id: I7b7f151fb692c091617d73133957e4adadfe77d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3121205
Reviewed-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since Kappa didn't support tablet mode. Remove tablet mode to
prevent unexpected triggering.
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=make BOARD=kappa
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ic35832e73ba51e68933986a487f641f4f5fd94e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3131327
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support dynamic PDO selection CONFIG_USB_PD_DPS.
This config controls the charging voltage and power according to the
input power and battery configuration.
DPS would continuously evaluate the system load and current charging
voltage, and decide a new one by below:
1. If the PDO can fulfill system desired power.
2. If the PDO is efficient for the battery configuration.
To detect if the system load cannot be fulfilled by the current PDO,
it checks:
1. if the input current closes to the PDO current limit.
2. if the input power closes to the PDO maximum power.
To detect if the system load can be fulfilled by a more efficient PDO,
it checks:
- if the voltage of a new PDO is closer to the battery voltage than the
current PDO, and the power is able fulfill the system load.
BUG=b:169532537
TEST=1. tested on asurada, the charging voltage is able to switch to
different PDOs under different system loads
2. tested that the DPS is able to switch charge port
(e.g. C1 12V -> C0 9V) based on the provided PDOs.
BRANCH=asurada
Change-Id: I7c7706b331dc0d4f8ac68569dc7ed852fc9308e3
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2897064
Tested-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=make buildall -j
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I2df3668b826a0f5aef3b6ac5dc9a55dca965eea8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133801
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The npcx eSPI driver only prints if eSPI_DEBUG is on. Without ESPI_DEBUG,
critical eSPI errors are hidden and it may not be obvious why the
system is failing. This change forces eSPI bus error messages to always
print.
This is inside of an interrupt_handler, so printing too much could
cause other interrupts to be missed. The error message is short and it
did not cause additional errors during testing. Since eSPI bus errors
are often fatal, this risk is acceptable.
BUG=None
TEST=Boot image with known eSPI errors, see error message
Boot with known good image, see no error message
Remove condition, boot good image, eSPI functions normally
BRANCH=None
Change-Id: Ic1431800560091001b73dafcd77362e061323c1a
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3111457
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
STT interface is not available outside of S0, so report that the
interface is not powered and allow the STT hook to exit quickly in this
condition.
BRANCH=None
BUG=b:197745639
TEST=No STT errors with board in G3 state
Change-Id: Id0c926ce896cdb4d3096746b3e7cc99db83bdd2d
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3126700
Tested-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There's a bug in the chip_revision calculation. Also, add a missing
include which causes a warning during build.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: Id636f4abcfffc0158d879d4b9333c7cb3ac1ee21
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3133800
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Tested-by: Yuval Peress <peress@chromium.org>
Auto-Submit: Yuval Peress <peress@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
zephyr toolchain doesn't allow unused vars, so this is preventing
running tests on gitlab.
Add -Werror=unused-variable to clang args so that this doesn't
backslide.
BUG=None
TEST=zmake coverage on docker
BRANCH=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I7749041fd0f09e5cf35e6a6c1d4555af805469c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3131880
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify that we can call host commands from driver tests by adding a test
that calls the EC_CMD_GET_PROTOCOL_INFO host command. Add a few
convenience functions to host_command.h when building with CONFIG_ZTEST
enabled. Also, add eSPI emulator to support the test.
Coverage:
- lines 17.4% -> 17.8%
- functions 21.4% -> 22.0%
BRANCH=none
BUG=b:189954415
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ib9e750eeab555ea629a560cbf3beed28e346c460
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3031842
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As a followup to CL:3104290, give the TCPCI TRANSMIT and
RX_BUF_FRAME_TYPE types more consistent names. Most of them can be used
for receiving, not just transmitting. Fix lint errors thus revealed.
BUG=b:155476419
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I399ec479eacc18622fc4d3f55f8bdabf4560fcff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3125995
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a "math.h" to "builtin" and rename "math.h" in the "core"
directories to "fpu.h". "builtin" is the directory containing headers
that mirror those in the standard library and is used for device builds.
The host builds exclude the "builtin" directory and use the standard
library. Without this change, building host tools such as "ectool" and
attempting to include "math.h" would result in incorrectly picking up
the "math.h" from the device "core" directory, not the standard library
version.
BRANCH=none
BUG=b:144959033
TEST=make buildall
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Id6b2df42cb0ff5ec2cfc07aa8f29861da6804bdf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3130625
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using ztest_unit_test the default setup/teardown functions should
be before_test() and after_test().
BRANCH=none
BUG=none
TEST=make buildall -j
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ia1a65923a39d3f193a9cedecdc9d716dcf136eb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132306
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify EC for bugzzy based on schematics.
BUG=b:191505716
BRANCH=None
TEST=make -j BOARD=bugzzy
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I9bf663be20480e313b98f328c3dacbd63feb2f77
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3112920
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Edward Doan <edoan@chromium.org>
Commit-Queue: Henry Sun <henrysun@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In chroot, you can always use llvm-cov to parse the coverage files, but
in zephyr sdk, you have to use the right gcov binary for each toolchain.
Use cmake to build a gcov shell script, and call it from zmake coverage.
BUG=None
TEST=zmake coverage in chroot and gitlab
BRANCH=None
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I6203445f0a412193e8280bb5cdf7994d5346fdbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3130622
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Yuval Peress <peress@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the Type-C AC plug-in and got AC status from RAA489000
then enables charger the OTP/OVP protect function.
BUG=b:197039091
BRANCH=keeby
TEST=make BOARD=corori
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: Ic7c3db22c2eece70b2f93970fce0089b54a75722
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3121585
Reviewed-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
felwinter doesn't auto-generate ,so combine generated-gpio.inc
and gpio.inc.
BUG=b:197593632
BRANCH=none
TEST=build ec.bin and brya p2 can boot.
Signed-off-by: Owen_Ou <Owen_Ou@compal.corp-partner.google.com>
Change-Id: I7f1ef058a7547be41dc7e28d1f9531d70bcc984f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3122694
Tested-by: Owen Ou <owen_ou@compal.corp-partner.google.com>
Auto-Submit: Owen Ou <owen_ou@compal.corp-partner.google.com>
Reviewed-by: Ko Ko <ko_ko@compal.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:197804802
BRANCH=none
TEST=On Redrix mockup, check the screen rotation was normally.
Make sure the x-y-z axis direction is indeed.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I7a9dffaea3a16e2beb5d6df2af605086a4e13b48
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3117527
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the Type-C AC plug-in enables charger the OTP/OVP protect
function.
BUG=b:196923269
BRANCH=keeby
TEST=make BOARD=driblee
Signed-off-by: Matt_Wang <Matt_Wang@compal.corp-partner.google.com>
Change-Id: If070a8c38cbf249b69df939778510fdf93e47f15
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3102335
Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com>
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since we have definitions for HPD IRQ and level in the mux flags, extend
this to the HPD update function in the usb_mux structure as well.
BRANCH=None
BUG=b:172222942
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I19c3a65fc821a341338d73fabd7876339b37fe7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095437
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The mux HPD update is the only function not currently going through
configure_mux(). Pull out its contents so it may be run with the rest
of the mux changes.
BRANCH=None
BUG=b:186777984
TEST=tast typec.Mode*.manual on voxel
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I5d91ca89dcdab0dcb0ba844494f9009948ee5abc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078412
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix ps8815 init target page
Init ps8815 via board_ps8xxx_tcpc_init
BUG=b:194985848
BRANCH=volteer
TEST=check all register is correct via ectool i2cread
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I7b2c4a3ec0a23d29157735eda5a9890f087e153d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115732
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|