| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Increase the low power mode exit delay on Volteer to 50ms. The ps8815
TCPC in particular needs this extra time to work consistently with
non-PD chargers.
This change also ensures the low power mode exit timer is reset anytime
the TC enters the TC_LOW_POWER_MODE state.
BUG=b:160182500
BRANCH=none
TEST=make buildall
TEST=Insert 15W non-PD charger on Volteer: repeat 10 times
TEST=Insert USB type-A (7.5W advertised) on Volteer: repeat 10 times
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I40fb4990478292e381421ef977f83b871796c130
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325265
Tested-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The flash layout for kalista boards splits the flash area into 4
segments, used for RO, RW_A, and RW_B images. The
CONFIG_EC_PROTECTED_STORAGE_SIZE and CONFIG_EC_WRITABLE_STORAGE_SIZE
options need to be adjusted to match.
BUG=b:160330682
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ia087995840dd19250cdbd82de4456e90a9b28685
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2339837
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `charger_dump` command is currently useful for these boards.
BUG=None
BRANCH=None
TEST=Build drawcia, verify charger_dump command is present.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I29cc70113be1c3c3096668c6d5969c4f755f915b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2339843
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow AC prochot threshold to be increased to match PD max current.
BUG=b:162376053 b:162565066
BRANCH=none
TEST=prochot not asserted while battery charges
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I11761e8d2d15b52f7552e8d951c6633583ab5ba8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2334353
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Tested-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Google is working to change its source code to use more inclusive
language. To that end, replace the term "dummy" with inclusive
alternatives.
BUG=b:162781382
BRANCH=None
TEST=make -j buildall
`grep -ir dummy *`
The only results are in "private/nordic_keyboard/sdk8.0.0"
which is not our code.
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change prepares to separate the sleep failure detection out of
intel_x86, such that other chipset power sequence can reuse the code.
It only touches the naming. No logic changes.
* Rename to CONFIG_POWER_SLEEP_FAILURE_DETECTION
* Modify the function and variable names, to avoid S0ix
* Modify the comment to more neutral
BRANCH=None
BUG=b:162083524
TEST=make buildall -j
Change-Id: I6a61c3b0a63af60913ee89e0ca343085fbd22308
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321872
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch rename thermal sensor name by placement for morphius,
and move board_get_temp from baseboard to variant
BUG=b:162325433
BRANCH=none
TEST=verify that thermal sensor name change in EC console
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I46dfe5c8ebef29ed6ee7fdf342cfad9d39fe6ca3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2325496
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds FW_CONFIG field for keyboard backlight present.
BUG=none
BRANCH=none
TEST=make buildall -j
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I9072a6f5a64ff922708201a5d7cc687a3d56e300
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2331976
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define the CONFIG_POWER_TRACK_HOST_SLEEP_STATE, which enable the host to
self-report its sleep state. The handling function is not defined, so it
just saves the state, no further action.
BRANCH=None
BUG=b:148149387
TEST=Without this CL, will show HC 0xa9 error on suspend/resume:
[35.916083 HC 0xa9 err 1]
as the host sleep event (0xa9) is not handled.
With this CL, the HC 0xa9 error doesn't happen.
Change-Id: I68036d9ca611104eaf651b4d4cae15571713ac90
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321870
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This consolidates dedede boards to use a baseboard extpower_is_present()
and also adds the condition to verify that the port is sinking, instead
of providing Vbus. It also converts the RAA489000 boards to use the
cached Vbus presence in pd_snk_is_vbus_provided().
BRANCH=None
BUG=None
TEST=on waddledoo and waddledee, verify "AC on" prints when a charger or
charge-through servo v4 is plugged in, verify no "AC on" prints when a
dongle is plugged in
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I5941da789a4e810f6d8cc40cef4d32a5a03c5662
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317062
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Turning off vbus when we are not sourcing vbus causes
a bad behavior when we are cold booting in a batterless
manner. So made it conditional so we would be able to
run correctly with and without battery
BUG=b:162016100
BRANCH=none
TEST=trembyle cold boot with only AC power
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I77ad0487887078d6dd7514fd375558f10737fccb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317892
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After RSMRST sets, we configure a pull-up on PG_PP1020_ST_OD. This
pull-up is lost during GPIO init after a sysjump, so restore it before
the chipset init.
BRANCH=None
BUG=b:159863180
TEST=on waddledee and waddledoo, boot to the OS and run "sysjump rw" and
"sysjump ro" on the EC console
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I1b543329de976c5f64dbfbebf8f7576e70e63084
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314939
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the chipset task inits before the ADCs, we'll need to provide
pp3300_a_good by preserving it in the sysjump tags.
BRANCH=None
BUG=b:161887378,b:159863180
TEST=on drawlat, boot to S0 and sysjump back and forth between RO and
RW. Observe that the DUT remains at the ChromeOS login screen the whole
time.
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I3086f0bb2cd4b97c988c2365148b75b99954f380
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314642
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enables EFS2 for all dedede boards
BRANCH=None
BUG=b:159350276
TEST=on waddledoo and waddledee, see successful EFS2 jump to RW early in
the boot process
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ib2eccb28e0331bee718f8c5aec261d83115ec22e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299849
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We should check the stable_current by the timestamp
rather than the inited value or not (i.e.
CHARGE_CURRENT_UNINITIALIZED). This is because
the stable_current might be modified to a previous measured
value to let the PDO selection pick the correct PDO by power
consumed. e.g.
1. Pick 9V PDO, set stable timestamp expired for 5 mins,
rewrite stable_current to CHARGE_CURRENT_UNINITIALIZED
2. At next iteration, if we only check stable_current, we
would try to pick a new PDO again, but however, the timestamp
is not expired yet.
BUG=b:160448099
TEST=ensure kakadu charging won't switch back to 5V immediately
after just picking 9V charging
BRANCH=kukui
Change-Id: I2bfd49a9e8fc5c6d5f4b84eb7da4262d2938f7a6
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2309524
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This command allows printing of all the i2c traffic on a given port and
address, and can be useful when debugging driver issues.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I73749c8ba664a8df51e4e846a0e8d848099039cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2309065
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't want the OS to have access to our battery or anything on our
i2c busses. It's just confuses things.
BUG=b:160784792
TEST=See virtual battery being used
BRANCH=none
Change-Id: Icab307ea945d13c0a25dd8b4cd4ff8765b1bf6a4
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2300460
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable Vivaldi keyboard for all Zork devices now that the related
coreboot support is present.
BUG=b:156200330
BRANCH=none
TEST=enter recovery, enter VT2
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Id64a1243aa3845bc61b05f62d888e6b84a8efda9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2307716
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before CBI was being used, zork used I2C probing to
detect basic hardware configuration. Now that CBI
is supporting FW_CONFIG, this is being removed.
BUG=b:151232257
BRANCH=none
TEST=verify zork still boots with valid configuration
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I267d99f8f3894aff2f6301df167c470db373509e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2304380
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I2C is initialized before the HOOK inits now, so retrieve CBI FW_CONFIG
as soon as possible for use in determining which chips are present.
BRANCH=None
BUG=None
TEST=on waddledoo with HDMI DB, ensure charger init comes after
FW_CONFIG is fetched
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia813a480c5f0d0095a3f2e5442dde9541d368431
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2300687
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds FW_CONFIG field for tablet mode present or not.
BUG=none
BRANCH=none
TEST=make buildall -j
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I92432066dee14bb79d882daa9da5d09f4daaecb1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299610
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:161400534
BRANCH=none
TEST=make buildall -j
Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com>
Change-Id: I50c82ea82260e3ef67f19229854bfcc86f11a350
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2304236
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Board FRS configuration is more board-specific than TCPC-specific. Move
the board FRS configuration from TCPCI to usb_common.
Implementing the board-level frs configuration is optional for each
project.
BUG=b:148144711
TEST=Can build volteer image with CONFIG_USB_PD_TCPC set
BRANCH=none
Change-Id: I43d13ec0b23f71273807f58db35e7dd333089efa
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290838
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It will be happy to define LED behavior in boards.
BUG=b:160664441
BRANCH=none
TEST=make buildall -j4
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: Ib81fe8d20fa3ab74064958fba3576a1618635e52
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2296544
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Dedede family may have different temp sensors for other ADCs channel.
This patch moves adc channel to board variant.
BUG=none
BRANCH=none
TEST=make buildall -j
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Id34a924fc9431a553a1467068c6ccee6111102bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289478
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=none
TEST=tested on puff with same chip
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I18db9450f0a1d16d0662e09f7d5e2c6c849ee13f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2278134
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable CONFIG_I2C_UPDATE_IF_CHANGED to reduce I2C traffic a little.
BUG=none
BRANCH=none
TEST=USB-C source and sink still work.
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Id7ec18df00e421570d3e7c897be810014bbbbb5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2294002
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Connect up USB_Cx_SBU_FAULT_ODL to pd_handle_overcurrent().
BUG=b:138600586 b:157058003
BRANCH=none
TEST=USB-C sink and source still works,
forcing USB_Cx_SBU_FAULT_ODL low is reported as fault.
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I59ae65eed169fc5e18f72539a68017bb73c7d93e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2293102
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Different DB options may cause different numbers of charger chips to be
present on the system. Remove constant count for charger chips, and
instead always call into the overridable function to query the count.
BRANCH=None
BUG=b:155963446
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I0e65b8af351ecabe6f7b823e0e56f1932cc280a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277833
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Zork uses CONFIG_USB_PD_VBUS_DETECT_TCPC and ppc_is_vbus_present()
doesn't exist.
BUG=none
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I7eebf598a6bc3caf636111545a4c5e9511662d8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290662
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hold the EC on the initial power on until the CR50 resets it; this
preserves the power on flag for the first boot, which is important when
we are deciding if we want to reset the USB-C PD contract.
BRANCH=none
BUG=none
TEST=doo hold on reset
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I6895be11309d2021436ce7b3aab915dbf27d9616
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2289058
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Increases flash space on Volteer by 872 bytes.
BUG=chromium:1101619
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I1ffc34405a953fb21347cd41a29b1c0fcb96a501
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290196
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Tested-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Coreboot has changed to use CBI, so CONFIG_HOSTCMD_SKUID is no
longer needed and can be cleaned up.
BUG=b:138600504
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Ib9fc1d190d994311f2efcae77821489eddf3cea7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2288152
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit sha 57b95363c05bdab7b7e57d553a9514128393247d
Reverting a CL that was a temporary fix while a real
solution was found. This will now be implemented with
the following CLs
https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282691
https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282699
https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2283697
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I76b92388f5ee5bae4bdb945a82f18eb3df3ab1fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2284728
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Request voltage always keep at 4320mV when cycle_count is over than 600.
We need at a zone for it.
BUG=b:153272421
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I8d065a607226a39335e3a663ddf7a179ff73a0db
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282739
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Undef CONFIG_KEYBOARD_VIVALDI to fix function keys
BUG=b:160269938
BRANCH=none
TEST=Ctrl+Alt+F2 can enter VT2
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Change-Id: Ifdd1982892c25f1773336632d9594a95f44fdcc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2279811
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.If cycle count > 300, set Charge Voltage=4320,
cycle count > 600, set Charge Voltage=4300,
cycle count > 1000, set Charge Voltage=4250
2.If charging over 48 hours and Charge Voltage > 4.25V,
set Charge Voltage = 4.25V
3.If charging over 2 hours,battery voltage over 4.1V and
battery temperature over 45°C, switch to discharge mode and
set Charge Voltage = 4.1V
BUG=b:153272421
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I4968308b984f08a58491586a90b0b239eec07328
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2280865
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move ppc_chips[] to board for board customize.
BUG=b:151978872
BRANCH=master
TEST=check ppc init succeed and switch source/sink correct with type c
device.
Change-Id: I287bbe44b163d72c19a3764dca431c84d86bbdec
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2275971
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove USB-A1 and correct FW_CONFIG.
BUG=b:160293750
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I6e415c3dac85905af812ac5ce26ad3bbf4fcf869
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2277212
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a difference adc data structure order between
it83xx and npcx7. The data structure must be in the
exactly same order as in enum adc_channel. This patch
fixes incorrect order for it83xx.
BUG=none
BRANCH=none
TEST=adc command in EC console
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ibe7326e897814defb57196fd2213f8a3a5dea9db
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2275503
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The FW_CONFIG fields share a common layout across the entire Volteer
program, but the individual fields are defined on a project level. Move
the USB DB fields from the baseboard program to the board project.
BUG=b:155497872
BRANCH=none
TEST=make buildall
TEST=verify FW_CONFIG data on Volteer
Cq-Depend: chromium:2248238, chromium:2248239, chromium:2248240
Cq-Depend: chromium:2248241, chromium:2248242, chromium:2252484
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I7d4f27159907b1cec029d2b2ae867321e70b3326
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247617
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create a common FW_CONFIG layout and access functions for Volteer
boards.
BUG=b:155497872
BRANCH=none
TEST=make buildall
TEST=verify FW_CONFIG data on Volteer
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I1ec14db6c816d82115caa5e6179e0258f2904ec4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2247616
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set up basic files to use for parsing FW_CONFIG. Currently, this just
has a function to return the DB enum value.
BRANCH=None
BUG=b:159246161
TEST=on waddledoo, FW_CONFIG print appears during boot with current
value (tested 0, 3, and 4)
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Id9ef2ea5ed297bb662d8455123452b1aeb06ae39
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2274992
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The TCPC on zork appears to enable Vbus sourcing some
of the time when we come out of auto-toggle. It looks
like about a 60ms delay before it is enabled. We then
go to AttachWait.SRC and since the exit condition to
get to Attached.SRC is a debounced/valid Attached.SRC
CC and Safe0V, it has to be disabled manually in order
to move to Attached.SRC
BUG=b:160227699,b:160253746
BRANCH=none
TEST=dut-control servo_v4_role:snk should attach
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I1dfc5d2536aaa4d7a5ffc7bbb52c647b15764196
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276463
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the crash command from RO images to increase RO flash space by
256 bytes on kodama.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I09ad7d4a62cb448db590e938febe894c8339f85a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2276142
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Volteer is very tight on space when building the TCPMv2 stack. Disable
the tcpci_dump command to save about 1100 bytes of RW flash space.
BUG=b:158572770
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I6aa7c1116464778a29bdd52e9ae822ec71fc00fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2273552
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ectool battery need to show proper OEM name when using dump battery.
BUG=b:159918228
BRANCH=kukui
TEST=make -j board=kakadu
TEST=make buildall
TEST=ectool battery
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I27e355881d6f6692edb2599fef7fb2c2c30a1062
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2269393
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this adds a config option for the ps8815 to override the TCPCI Device
ID field based on the chip hardware revision reported in vendor
defined registers. early ps8815 A1 firmware still reports the same
Device ID value as the A0 chip which makes the two chips
indistinguishable using standard methods. so, we check a vendor
defined register to distinguish the two parts and "patch" the Device
ID. newer ps8815 firmware will correct this, so after we have flushed
out early firmware, we can disable this override feature.
BRANCH=none
BUG=b:158857815,b:159289062
TEST=reflashed FW on ps8815 A0 and A1
Change-Id: I2db3150740c15a77836dea0e9db72e5d99fdc050
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2254992
Tested-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
EFS2 boards need to call system_jumped_late in HOOK_INIT to avoid
running init code twice per boot.
system_jumped_to_this_image and system_jumped_late are functionally
equivalent for non EFS2 boards.
This patch will prevent system_jumped_to_this_image from being used
for EFS2 boards when code is copied from a past project.
BUG=chromium:1072743
BRANCH=none
TEST=buildall
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I73fb5cedc5325d1c80825f9346954013046ee1df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2267685
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch update S0_PWROK_OD for schematic change.
BUG=b:150278507, b:152841287
BRANCH=none
TEST=make buildall, verify EC code can power on rework MB.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Iaf8f2458c2dfe49f40eada8dced1febe2c4c4687
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2255826
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
|