| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is confusing when browsing since it has no title. Add one.
Also move the 'alternatives considered' to the bottom while we are
here, since that is confusing for people who are less interested in
the motivation for shimming and just want to know what to do.
BUG=b:181253613
BRANCH=none
TEST=check it in gitiles
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I73a4716278396dfdf0661d6ced67b3d6a9785165
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2807487
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To make it easier for people to get started with Zephyr, link in the
existing docs.
BUG=b:181253613
BRANCH=none
TEST=check it in gitiles
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I68f0deb52a64147e705e53410699c372fd1e69b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2807484
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For host based tests, add instructions on emerging and running gdb.
BRANCH=none
BUG=b:178484932
TEST=doc change only
Change-Id: I5c99d2699134d732e4596a0ce9acffb39c22bda6
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2805225
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added a new zmake sub-command `coverage`, which builds all projects
with coverage, runs unit tests, and creates a html coverage report.
BUG=b:183007888
TEST=sudo emerge zephyr-build-tools && \
zmake coverage build/ztest-coverage
BRANCH=none
Change-Id: Idb6af59c223ece00d3eb09982778cb1b500d8db4
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2794925
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Populating sensor information inside the diagram for
dragonclaw/ icetower.
BUG=b:183747042
TEST=rendered with gittiles
Change-Id: Iac0873c3e77c221f2e9528ae36d2d6f21ded8474
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2795071
Tested-by: Aadit Maheshkumar Modi <modia@chromium.org>
Reviewed-by: Yicheng Li <yichengli@chromium.org>
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Commit-Queue: Aadit Maheshkumar Modi <modia@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create a new ninja target 'all.libraries' which is everything that
zephyr.elf depends on, but doesn't actually link the zephyr.elf binary.
This allows creating coverage info for boards that run on SOCs that are
too small for real coverage runs.
Enabled the HAS_COVERAGE_SUPPORT for all boards, so that the
all.libraries target will build with coverage enabled.
HAS_COVERAGE_SUPPORT can't be set in prj files, as it is not directly
user assignable. This is probably somewhat of a misuse of this flag, but
nothing depends on it except for CONFIG_COVERAGE.
Tweaked the instructions to exclude some more directories that are not
useful code, like tests and generate headers.
BUG=b:183007888
TEST=Ran commands in code_coverage.md
BRANCH=none
Change-Id: I6cf1b889b6b3883f7a76d1ae4957805bfa6d7b96
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2786067
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the location of the firmwaretestmanual.html link, which must have
moved on partnersite.
BUG=b:183612768
BRANCH=None
TEST=Visual inspection.
Signed-off-by: Stuart Langley <slangley@chromium.org>
Change-Id: I3ca4e8f9282b583624e5ca35237de41c51ba067d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2789809
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The reset cause will influence the initialization flow. We define some
of initial flow of the reset cause for the following development.
This CL include the following:
1. Add check_reset_cause() which sets the system reset flag.
2. Add chip_bbram_status_check() to clear the error status & show the
error message.
3. Add CONFIG_BOARD_RESET_AFTER_POWER_ON feature.
4. Define the initialize flow for reset cause.
BRANCH=none
BUG=b:178101173
TEST=check the following reset cause by 'sysinfo'
1. power-up
2. reset-pin reset
3. soft by 'reboot' console command
4. watchdog by 'waitms 2000'
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I515868d8cda4544fdbe782210b0108b4dda0d8cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2731180
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Building a zephyr ztest with zmake (say that 3 times fast) creates many
symlinks, and makes it hard to merge the coverage output. The
util/normalize_symlinks.py tool takes a lcov info file as input and
replaces symlinks with their actual paths in all SF: lines.
BUG=b:183007888
TEST=Ran the commands in the md file.
BRANCH=none
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ic8f9aedec30051d7474aa77ba2fb406e0746a719
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2770508
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a developer-only utility for converting a gpio.inc file to DTS.
I hope this gets deleted someday when we aren't doing PoCs anymore.
BUG=none
BRANCH=none
TEST=compile/run instructions at top of file, BOARD=lazor
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I354c8917bac0b82f904e07c3e029806ecb67d6d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752795
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add documentation on how to bring up new Zephyr OS devices for devices
and platforms which already have a CrOS EC OS implementation.
Based this on Lazor bringup.
BUG=none
BRANCH=none
TEST=view in gitiles
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I1d7466bacdd35dc4c5f02e708e87ee748e097236
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752794
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a guide to make it easier for people to add a new Kconfig.
BUG=b:181253613
BRANCH=none
TEST=none
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I2714c02f3541a07c18cfa1d4a40e6b75fb2aa4fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2749762
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revised go/zephyr-shim-how-to, and added in Markdown form to our
existing shim documentation.
Large documentation CL... hoping to non-minor concerns in follow-up
CLs if possible.
BUG=b:181253613
BRANCH=none
TEST=view in gitiles
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ife666bf06ef76b05b4d3d877049d160706441514
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2737245
Commit-Queue: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://crrev.com/c/2689101 is needed in order to configure the sleep
GPIOs correctly on icetower, so the change was cherry-picked to the
release branch to perform the measurement.
BRANCH=none
BUG=b:180445334
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I608a725c6f4c474365814b95a39ed365b2ea1eee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2724876
Commit-Queue: Craig Hesling <hesling@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
model.yaml files no longer have to be created by hand; instead the
Chrome OS Project Configuration tools will generate it.
BRANCH=none
BUG=b:180410925
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Id7eb218b7b908ed77dec33a2b7479bbf5a72fc4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721139
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ib9c7ec288c9efabb454580c6bf6028ee6a0a1373
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2721087
Commit-Queue: Craig Hesling <hesling@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that the full source-out policy has been implemented in the TCPMv2
DPM, modify the previous note about implementation.
BRANCH=None
BUG=b:141690755
TEST=view in Chrome with Markdown Preview Plus
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ic74c780841c42e1e1d88306d366a00bf0fadb3c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2701892
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:179789305
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I2bfe78a25bc148fb2a9242a83b3fad5f97c89ed8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2688118
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:179789305
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Id5bdb84ef94c2585ee3f3036a85b6ce5f0c5662d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2688117
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FRS ports which require 3A should also be considered in the source-out
policy. This updates the diagram to include FRS and includes FRS in the
example flow. Additionally, it changes the policy for re-allocation
on detach from "oldest port" to "lowest number port" since that policy
requires less flash space.
BRANCH=None
BUG=b:141690755
TEST=verify markdown renders in Chrome with Markdown Preview Plus
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I14e359696fa7dc15ae349cade6fc723e7998d941
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2602597
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The FPMCU console UART has been renamed to raw_fpmcu_console_uart_pty in
https://crrev.com/c/2637968. The same CL added "fpmcu_pp3300" as an
alias for "spi1_vref".
BRANCH=none
BUG=b:177331210
TEST=On dragonclaw v0.2 with segger jlink:
./test/run_device_tests.py --board bloonchipper -t aes
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: If616421a55a6ecdfcf589b1c1b663820890b01ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638448
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:178648877
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I0ac5581ba7bc512234d40dbf34222422afa9c725
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2650551
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These instructions clarify how to use J-Link/J-Trace to flash the FPMCU
dev boards.
BRANCH=none
BUG=b:178124518
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I73e0774e0721001f229e3a608262a64129d2ab44
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643588
Reviewed-by: Josie Nordrum <josienordrum@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new section to the Ztest documentation providing details of
what sorts of EC unit tests are not good candidates for porting
to Ztest.
BUG=b:172240633, b:172240757
BRANCH=None
TEST=N/A
Signed-off-by: Paul Fagerburg <pfagerburg@google.com>
Change-Id: I3010dfb338e8e9c835c55b10a79a2e4dce703f96
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648397
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:172240633
BRANCH=none
TEST=build for both EC and Ztest:
`TEST_LIST_HOST=accel_cal make runhosttests`
`zmake configure --test -B build/accel_cal zephyr/test/accel_cal`
Signed-off-by: Paul Fagerburg <pfagerburg@google.com>
Change-Id: Ie787403b36d775d4185cafad8ca134561a97794b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2645198
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change refactors test functionality in test_util.h to better
accomomdate zTests. This is done by:
* Removing the shim version of test_util.h. This was causing a
conflict that made it harder to tell what's being used. This
involved migrating some needed code over:
- Defining different TASK_PARAMS.
- Defining test_pass for Zephyr tests.
* Creating a macro (DECLARE_EC_TEST) that will automatically
handle creating the individual test functions for both
platform and Zephyr tests.
* Creating a macro (TEST_MAIN) that will automatically handle
creating the main test entry function. This use to be
test_main(void) for Zephyr and run_test(int, char**) for
platform/ec. To do this we'll be removing the int, char**
arguments from platform/ec. This may result in some tests
having to be refactored, but overall should improve the
test codebase as tests should remain deterministic (i.e.
not depend on any outside arguments/parameters).
* Creating some common ztest_ function/macros that will
allow writing platform/ec tests in a zephyr like style.
see test/base32.c for an example.
* Update the type of __shared_mem_buf to match Zephyr. This
was causing an issue now with the full test_util.h in
zephyr/test/system/.
BRANCH=none
BUG=b:168032590
TEST=make runhosttests
TEST=zmake configure --test -B build/host/base32 zephyr/test/base32
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I72173a3e94c7df09a2966e7ffeb9f5668d030f29
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2634401
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Zephyr CONFIG_FLASH_SIZE is a Kconfig value that is used
throughout. The issue is that the units don't match. In
Zephyr the value is in KiB instead of bytes. This refactor
simply renames CONFIG_FLASH_SIZE in platform/ec to include
the unit (via _BYTES).
BRANCH=none
BUG=b:174873770
TEST=make buildall
be generated by the build instead of per board
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I44bf3c7a20fcf62aaa9ae15715be78db4210f384
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627638
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding diagram for Icetower in CQ.
BUG=b:171259291
TEST=rendered with gittiles
Change-Id: I3a1d10deb10e19aaa4552e9c04addd4853ea0067
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2593947
Tested-by: Aadit Maheshkumar Modi <modia@chromium.org>
Reviewed-by: Yicheng Li <yichengli@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Aadit Maheshkumar Modi <modia@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update few commands and references in the Getting Started Quickly
document to make this work against the current code base.
BUG=none
TEST=none
BRANCH=none
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I08da587f3df85d93a51276937545984c7ad57b64
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606227
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-measure power numbers on a Bloonchipper dev board connected to a servo
micro.
Put numbers for the 2 possible idle modes of the MCU by toggling the
slp_s3 line:
- regular idle when the host processor is running
- low power idle when the host processor is suspended
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=b:130561737
TEST=view in gitiles
Change-Id: I2cf1f069252dbb8461dd941c4ae83bd62cb48856
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2595270
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Craig Hesling <hesling@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a .default settings.json file for vscode, so that you
do not need to copy/paste form the ide-support.md doc. This also
makes it easier for people that don't known that the ide-support.md
doc exists.
This also adds the .vscode directory to the gitignores, so that local
customization/settings are not always in the git status.
BRANCH=none
BUG=none
TEST=Checked in Gitiles
TEST=Check that my settings.json is not in "git status".
TEST=Check that ec.code-workspace is not in "git status".
Change-Id: I4dd8cfcd79c291a6f4fb0d573df131f0cb0d9844
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2586041
Commit-Queue: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mdformat -w --compatibility docs/ide-support.md
BRANCH=none
BUG=none
TEST=Check in Gitiles
Change-Id: I5c381679bff894b48a49c7a5a20e8e5268678762
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2586040
Commit-Queue: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ib512490365a0f20380813bd871f7effbf374a435
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552604
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gitiles doesn't render backticks in headers.
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I312799ad938d35e8452a90d129baf933ff6639e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552603
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:171422264
TEST=none
Change-Id: I677b1f17a997a21e906674bb4dc9e02a8e207a1f
Signed-off-by: Yicheng Li <yichengli@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552353
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Command used:
(outside) $ mdformat -in_place --compatibility docs/write_protection.md
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I3889b3279165b5897f5489549d4530681b6ac5b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552602
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I1542ceef2f14c06faff2d02fe584c88384e36e21
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552601
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I6d9ca47ee14580092812446992eb785a47874dcf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2546030
Commit-Queue: Yicheng Li <yichengli@chromium.org>
Reviewed-by: Yicheng Li <yichengli@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL extends CONFIG_I2C_XFER_LARGE_READ to also support large
(greater than 255 bytes) write.
Related config name is also updated to reflect the behavior change,
BUG=b:169651794
TEST=flash fw successfully on Zed.
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Icb889013da01f48708cd0227207561b8186bac63
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2537412
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I68d9364c0d02fdf30e00df40f514f68829d2cece
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521835
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ib5a0f5e3e910b238139bee690d059362a40622ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521453
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mdformat incorrectly formats "*** note" blocks, so disable mdformat on
those blocks.
BRANCH=none
BUG=none
TEST=View in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I4a7894402373a4c91688263454d33554b324aece
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521452
Reviewed-by: Craig Hesling <hesling@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename CONFIG_I2C_CONTROLLER and related comments.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ied6a1829bf54a5c9a32e6772982a4b8aa31aaf23
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2518659
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename for CONFIG_HOSTCMD_I2C_ADDR_FLAGS and surrounding comments.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I49dc12753957da7baa1bb387e212d75c75e81d86
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2511093
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With the Ztest API supported now, add the files to build the base32
unit test as a Zephyr test (instead of an EC test).
BUG=b:168032590
BRANCH=None
TEST=follow instructions in docs/ztest.md to build as a Zephyr test
Signed-off-by: Paul Fagerburg <pfagerburg@google.com>
Change-Id: I06dd7864f2de48aab5776950d4840f81728137f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2500465
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide a translation layer in test_utils.h for the Zephyr zassert
macros to map onto EC's TEST_ASSERT macros. With a little bit of
duplicated-but-not-quite-duplicated code (test_main vs. run_test)
and some extra macros for the return type of the test cases, the
tests can build for either the EC framework (by default) or the
Zephyr Ztest framework (#ifdef CONFIG_ZEPHYR).
Update the unit test documentation to explain why (and a brief
"how") developers should use the Ztest API for new unit tests.
BUG=b:168032590
BRANCH=none
TEST=`TEST_LIST_HOST=base32 make runhosttests`
Signed-off-by: Paul Fagerburg <pfagerburg@google.com>
Change-Id: I26e60788c1468e44fed565dd31162759c7587ea6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2492527
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This updates the existing planned type-c power policy behavior, and adds
a note clarifying that this page represents an ideal which has not yet
been added to the codebase.
BRANCH=None
BUG=b:168862110
TEST=rendered the .md file and images to ensure they work correctly
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I82ea19b7b7ac84080bed6fd1841ec7273b55e84a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2460857
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I5ca6773dfdfe41fc99780e6f3f532fa27b25424b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2464007
Commit-Queue: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Command used:
mdformat --compatibility -w ./platform/ec/docs/core_runtime.md
BRANCH=none
BUG=none
TEST=view in gitiles
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I94d9f9580d3bca9b023d30eedcd0c8f408bef0da
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2464004
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We are turning platform/ec code into a zephyr module that we can then
shim into a zephyr build. We are going to do this while we are
transitioning to the zephyr codebase.
BRANCH=none
BUG=none
TEST=none
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I68fb215296e872c68fef1cb5cd92902f3f8ee8e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2438807
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|