| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL adds GPIOs required to build and alt-func for EC
console. Nothing else is included.
BUG=b:155137749
BRANCH=None
TEST=make BOARD=quiche and verify that image builds successfully.
Signed-off-by: Udaya Kiran Ammu <udaykiran@google.com>
Change-Id: Ic4fda8b21a4710bc5c27610177b5938f71631e3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2171041
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add temp sensor for reading temperature.
BUG=b:166732783
BRANCH=master
TEST=Use console "temps" to check temperature.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I45a2ff451714ff5078f3440d081a5513cde7cee5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391189
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:165442828
BRANCH=zork
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I32795377040221ac9459eb4c30cb6cf9648855b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389321
Tested-by: Keith Tzeng <keith.tzeng@quanta.corp-partner.google.com>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is simply a symlink to asurada
BUG=b:163789704
TEST=make BOARD=hayato
BRANCH=none
Change-Id: I682a4bd8ab1ae196b01de6b93653ed22dc3ea374
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2397929
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A new field has been added to the f/w config for defining
the thermal solution used on the board.
Add support for this new field. The config specific handling
for this field has not been added yet.
BUG=b:167981895
TEST=make buildall
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Idd2616ef25fdf13245d31f63751e47b4565cad07
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2396975
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Tested-by: Andrew McRae <amcrae@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The keyboard config copied from Jacuzzi does not suitable for
Asurada for following two reasons:
- `output_settle_us` too short causes the scan timing of
column 2 and 3 overlapped.
- Jacuzzi adjusted the scan delay to reduce bitbang error rate.
Asurada does not need that.
The default config should be good enough for us.
BUG=b:167652253
TEST=press refresh key doesn't trigger 't'
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ic2310bf1f9e37310d380da8d7efc26d1d0dbbd85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2392074
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Eve will now be able to wake up from suspend on any MKBP event, however
we don't want to do that by default. Defining
CONFIG_MKBP_EVENT_WAKEUP_MASK will allow the host to define which MKBP
events it wants to be woken up for.
BUG=chromium:985228
BRANCH=firmware-eve-9584.B
TEST=Flash eve, verify that no MKBP events wake the system from suspend.
Change-Id: I9677011dac63eb6e5dafe65ed20ead64ce9a9a48
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1719753
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320267
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To keep console quiet enough.
BRANCH=none
BUG=b:167634229
TEST=make BOARD=kukui_scp
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Change-Id: Idb5a6983fb9bae64e3b25fc58490f6780070ffc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2394975
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit a49f19a1aa9ad3f4951490f96f0320fa646b572e.
Battery life in S3 (not Deep S3) is terrible, so reverting this
change until we determine if improvements can be made.
BUG=b:79346372
BRANCH=eve
TEST=none
Change-Id: I570c5ea1b2b74f17fb41cd46424bfe2a5749d49a
Reviewed-on: https://chromium-review.googlesource.com/1047845
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Duncan Laurie <dlaurie@google.com>
Tested-by: Duncan Laurie <dlaurie@google.com>
Trybot-Ready: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320266
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Code update according to following pwm changes in rev1.
- PWM0 netname changed from PWRLED to LED1_SUB.
- PWM1/2 connected to a real led.
- PWM3 became PACKET_MODE_EN, not a PWM pin anymore.
Also lowered the brightness of the led connected to PWM 2/3.
BUG=b:162814191
TEST=none
BRANCH=master
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ib7009d987826cd777c5295c18b014a5675f9a3ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2342985
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of doing I2C traffic in an init hook, move it to a
deferred function to be called outside of INIT_HOOK processing.
BUG=b:77336348
BRANCH=eve
TEST=build and boot on Eve
Change-Id: If1289a48925f5921ee43fe4ab9d7131dd55e2d00
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1001474
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320265
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new battery vendor command to fix the OTD recovery temperature
register in the battery flash.
BUG=b:74242993
BRANCH=eve
TEST=make -j BOARD=eve
Change-Id: If707d6083fa101a6af29ac7b15872cc52066c58c
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/967107
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320264
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The battery_check_disconnect() function was checking for both XCGH and
XDSG to be set before returning BATTERY_DISCONNECTED. This works
consistently when recovering from a battery cutoff when issued via a
I2C command. However, if the battery cutoff was initiated due to a
cell under voltage (CUV) trip, only the discharge FET will be
disabled. When an external charger is connected, the battery may not
be able to recover if the CUV event happened while SOC > 3%.
By modifying the battery_check_disconnected to look only at XDSG then
the normal battery cutoff and CUV triggered cutoff are recovered
properly when an external charger is connected.
BUG=b:67332823
BRANCH=eve
TEST=Had two different units where I was able to confirm that a CUV
event had happened. I obsereved that the system would brown out when
the AP was powered up, preventing the EC from being able to charge the
battery to get out of the CUV condition. Once I loaded FW that only
checked XDSG, then verified that the AP was not powered on and the
battery was able to be charged by the EC.
Change-Id: I893cfcdd4123810137e2d09a15256d51c918b38b
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/705055
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320262
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The charger timeout threshold settings are not correct. This can lead
to the CTOS (charge timeout suspend) safety alert getting set. Until
the batteries flash can be updated, disable this check by clearing bit
4 of the protect_c register.
This CL implements battery_set_vendor_param() and
battery_get_vendor_param() where param of 0 means to disable the CTO
bit in the protect_c flash register (bit 4 of 0x482c).
BUG=b:66457399
BRANCH=eve
TEST=Sent 'ectool batteryparam set 0 <key>' and verifed that new value
of this register is 0x5. Also, used debug console command to write the
value back to 0x15 and repeated the test.
Change-Id: Ia77a505fddfbcedfe31a92caae37e09e0a7f17a1
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/696436
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Trybot-Ready: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320261
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch add mst function support for
board version >=3 dali sku.
BUG=b:159304034
BRANCH=zork
TEST=verify on rework dali DUT mst hub can work
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I09172b9355af8e50e636c84b564dd70bc86b1155
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2386693
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=eve
BUG=b:64196191
TEST=boot eve and check hash done time
Change-Id: I48e64d126b67c3f58fc3a8cd4f0aa3226ce89f33
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/664164
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320260
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable discharge on ac when battery is full.
BUG=b:64913617
BRANCH=eve
TEST=test that when on AC and battery is full it goes into discharge mode
Change-Id: I71397e7f0b24e449b13c00da87c8f81cfd806c2c
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/662907
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320259
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One of the pulse red patterns has been removed, so only 1 pulse red
pattern is required. In addition the double tap length of the two
lowest battery patterns has been increased.
BUG=b:35584895
BRANCH=eve
TEST=Manual Used 'battfake' EC console command to move through the
different battery charge states and verifed that the correct double
tap pattern is displayed.
Change-Id: I6f92ecdbdd5476da2eb0d9f09e9f853ed5f45b53
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/663951
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320258
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently all of board_pmic_init() is skipped if you jump to the
image, which means it never runs on RW, or on RO if it is updated
by flashing, and requires a power+refresh boot to take effect.
Move a few of these that are adjusting important settings to also
run on system jump so they get applied when rolling out a new FW.
BUG=none
TEST=manual: flash new ec.bin and check that pmic register is set
to disable VCCIO from ALL_SYS_PWRGD.
Change-Id: I07a96dd052d142e5026778a7e785e1cb4c4849a1
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/617267
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320257
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add new battery config : AP18C8k/AP18C4K.
BUG=b:166237036, b:166237839, b:166736661
BRANCH=master
TEST=Check found battery info in console and cutoff work.
Change-Id: Ib352f13701c5feac5dae03fe1c82340c3828bab3
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2379354
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Checking the input voltage to make the decision of 2S battery or 3S
battery is not reliable. The 3S battery with very low charge might be
under 10V that we initialized the switchcap to 2:1 mode. When the
battery was then charged up to 12V, VOUT would go to 6 V which would
be a problem.
This change moves the decision to board customization. It checks the
SKU ID. It can be extended to other ways, like checking the battery
manufacturer and device names.
To prevent any damage when attaching a 3S battery to a 2S-SKU board,
add a check before configuring the switchcap to 2:1 mode.
BRANCH=None
BUG=b:163867792, b:151393598
TEST=Built successfully.
Change-Id: I3f69132bc00b13ec39b229e98a34a5f7f75008f1
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391210
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configure the sensor count to 0, disable the tablet mode switch,
and disable the interrupt line for the clamshell SKUs.
BRANCH=None
BUG=b:166934151
TEST=Tested Lazor; its sensors working properly.
Change-Id: Id70c2f2925a5538e3492810fec9aad000514ea17
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391203
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a marco to define the board version
and use it to determine what TCPC is used.
BUG=b:167476139
BRANCH=none
TEST=make BOARD=pompom
Signed-off-by: AlvinCC_Hsu <alvincc_hsu@compal.corp-partner.google.com>
Change-Id: If8cb4a7f213c68b37883a8a8a6f53478d8fd5924
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391027
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch removes configurations (I2C, GPIO, TASK and
Interrupt...) about TCPC port1 for pompom.
BUG=b:167476139
BRANCH=none
TEST=power on after flashing FW and it works normal.
Signed-off-by: AlvinCC_Hsu <alvincc_hsu@compal.corp-partner.google.com>
Change-Id: I1275c1ef7e7d3e65d695dace834a9bcbb4e66dcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391022
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The polarity of the enable pins of DA9313 and LN9310 are different.
DA9313 is active-high while LN9310 is active-low. For power saving,
the enable pin of LN9310 has an external pull-up; so EC should
configure it open-drain.
The existing code causes an issue that the switchcap is turned off
when sysjump to RW. We should configure the enable pin properly.
DA9313 is GPIO-controlled without needing any configuration. So the
default setting in gpio.inc should favors DA9313, i.e. GPIO_OUT_LOW;
otherwise, DA9313 may turn on unexpectedly.
In the board init, should not set the level; otherwise, it will
override its level and shutdown the switchcap when sysjump to RW.
LN9313 is similar but a bit tricky. As the gpio.inc configures it
GPIO_OUT_LOW. When sysjump to RW, will output push-pull a short
period of time. As it outputs LOW, should be fine.
The GPIO changes like:
(1) EC boots from RO -> high-Z
(2) GPIO init according to gpio.inc -> push-pull LOW
(3) This function configures it -> open-drain HIGH
(4) Power sequence turns on the switchcap -> open-drain LOW
(5) EC sysjumps to RW
(6) GPIO init according to gpio.inc -> push-pull LOW
(7) This function configures it -> open-drain LOW
BRANCH=None
BUG=b:163867792, b:151393598
TEST=Tested on Lazor: when sysjump to RW, switchcap not off.
Change-Id: Iec8ea7e16f525fa431230546d712c3e081fdab5c
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391830
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disable the PMIC shutdown timer for power button to prevent
it from being able to shutdown the system. Refresh+Power is
still the best way to do a PMIC reset.
BUG=none
TESET=manual: Close lid and enter suspend, hold power button for
>30 seconds and ensure EC stays up and system stays in suspend.
Change-Id: I1e03c6acab57aeba10083eb7bb6a6141bfa56993
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/614600
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320256
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous LED behavior was to have only the LED on side that was
charging show white or green. The other side LED was always off.
This CL modifies the behavior so that when double tap patterns are
allowed and a charger is connected to display the double tap pattern
on the opposite side LED which was previously off.
In addition, when the device is charging, if the power level is such
that AP can't boot, the opposite side LED will display the BLINK_RED
pattern continuously as it would duirng a double tap event.
In order to support the ability to have different LED patterns
simultaneously, the LED code was refactored so that static variables
used to manage the patterns and varialbes required to manage color
gradient transitions were grouped together in to a static led
descriptor. In addition, the led_manage_pattern and change_color
functions had to be modified to deal with each LED independently.
BUG=b:35584895
BRANCH=eve
TEST=Manual
Used EC console command 'battfake' to force different charge levels
and verified the correct patterns for double tap events. Confirmed
that double tap patterns are displayed on the non-charging port when a
charger is connected. Tested connecting and removing charger while
observing non-charging port.
Change-Id: I05e1671deada761388bf898096ed7d3ae6f8da0f
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/611781
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320255
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hibernate after 7 days, or 1 day if battery is less than 10%.
BUG=b:35584895
BRANCH=eve
TEST=check that hibernate delay by default is 604800 seconds,
but only 86400 seconds if the battery is less than 10%.
Change-Id: I826b6df170f296afb2af8c053c05521383030cb1
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/611017
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320254
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To keep console quiet enough.
BRANCH=none
BUG=b:167634229
TEST=make BOARD=asurada_scp
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Change-Id: I3b82d809f5172ac25dd384879b81caf1b1479668
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391026
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To work around rail issues with VCCIO remove it from the PMIC
ALL_SYS_PWRGD tree.
BUG=b:64228149
BRANCH=eve
TEST=manual stress testing on 5x units
Change-Id: Ic1eca099c3ef1f3b296bd3ebb6dba8d6ae8a676a
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/611016
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320253
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
change mux to ps8762 for C1 typec port.
BUG=b:166057842
BRANCH=none
TEST=USB3 device enumerates, DP display normal.
Change-Id: I98c56047b7164d4a2cf7f73b149ce12aa2f53b6a
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2388363
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
config mb gpio pin define.
BUG=b:160363945
BRANCH=master
TEST=make buildall PASS.
Change-Id: Iee9295b09d4629be3fbbe7852db43d1b607f1086
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2388364
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Initialize the keyboard
BUG=b:149536282
BRANCH=none
TEST=halvor test
Change-Id: I0081587e62836e09e2874589047ef46813e13238
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2366317
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch update fan curve and thermal protect point.
BUG=b:161470415
BRANCH=zork
TEST=verify fan curve and thermal protect behavior as expected
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I842494acc62446be81b6df0f857c0e65e65380ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389720
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch disable read thermistor:TEMP_SENSOR_5V_REGULATOR
when DUT in G3, the thermistor is powered by PP3300_A,
which is power off in G3.
BUG=none
BRANCH=zork
TEST=verify EC not read TEMP_SENSOR_5V_REGULATOR in G3
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ifdbe81c963455e941ac8e907650f21a296da39ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389721
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
define CONFIG_USB_PD_TCPC_LOW_POWER to enable TCPC low
power mode for draw* family of hardware.
BUG=b:165030094
BRANCH=none
TEST=Build/flash the fw and check the port C1 low power mode prints
Cq-Depend: chromium:2362372
Signed-off-by: Divagar Mohandass <divagar.mohandass@intel.com>
Change-Id: I82c427be551344983527612ce90ff056bf6ee4a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2381570
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch update CPU temperature shut down point to 105.
BUG=none
BRANCH=zork
TEST=make BOARD=morphius
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ib4f8ae1a31fd016fe94639c226ae6b03e73888dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389724
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add missing defines and use this enum instead of numbers
throughout board.c.
BUG=b:35581264
BRANCH=eve
TEST=make -j BOARD=eve
Change-Id: I5bbe1f67748942ed3a62db9f5d47ef9753cfb16d
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/611015
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320252
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wait 1 second before starting the LED task upon initialization so that
any battery state will have settled and we don't see unexpected color
pulses on the LEDs coming out of hibernate and when doing sysjump.
BUG=b:64454939
BRANCH=eve
TEST=boot from hibernate on Eve and ensure there is no red LED pulse
Change-Id: I2262ddb119d6a5750d2d49656cc25c11be4fb9ce
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/604757
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320251
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The motion sense task prints "double tap!" when it detects a double tap,
so we don't need to also print a string in the board level function.
Also remove the TODO comment here since the LED status is now updated.
BUG=b:35584895
BRANCH=eve
TEST=manual testing to check that this string is not printed when a
double tap is detected.
Change-Id: Id26d41d5a8b4c4e4c2beb3d113ededda99db5114
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/592718
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320250
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Tested-by: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update new thermal table
BUG=b:166696500
BRANCH=master
TEST=Thermal team verified thermal policy is expected.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: Ie729cb44469ab07bb7a72b661685f833a7871ede
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2379367
Reviewed-by: Andrew McRae <amcrae@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we ever see the battery in a disconnect state then delay the
battery presence state until a 1 second timer has elapsed.
This prevents power-up until the battery has recovered from its
disconnect state, and ensures that the delay happens even if the
battery out of the disconnect state before the charger task has
started.
I also reworked the if statement checking for battery disconnect
to be explicit about the states it is checking for, and testing
cutoff/init/disconnect checks as one large "or" statement instead
of having disconnect be a separate "or" check as that was leading
to it being called every time battery_is_present is called even
after the disconnect state has been cleared.
BUG=b:63957122
BRANCH=eve
TEST=manual testing with many, many boots after battery disconnect
and cutoff state, using extra verbose debug prints (that were removed
from this commit) to ensure the right checks are happening.
Change-Id: Ib191e95febf9df15373769bea2dd047fd716189d
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/592717
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320249
Tested-by: Patryk Duda <pdk@semihalf.com>
Commit-Queue: Patryk Duda <pdk@semihalf.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=1) See SW_TABLET_MODE in `evtest`
2) Pass factory tablet mode test
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I278586a22245fdfe0a2c798f84ab11a7175c2fc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389089
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reorder code blocks so functions for the same component can be grouped
together.
BUG=none
TEST=make
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I12f931f9e14d29240081e287edbd982ff2402dbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2389088
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The charging current value needs to be reduced by half.
BUG=b:158257062
BRANCH=none
TEST=halvor test
Change-Id: Iefa736ffbbe9a4d6893682c10cc65e26c9022b0f
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311999
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add USB_C0_RT_INT_ODL/USB_C1_RT_INT_ODL default
INPUT dtype for mb typec C0/C1 port.
BUG=b:166003345
BRANCH=master
TEST=make buildall PASS, check system can power on.
Change-Id: Ibeb457d127b22d6d7c93481536cea864a7750dd9
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2386684
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Separate keyboard_scan_config keyscan_config
from volteer baseboard to each project board.
To meet different configurations on each board.
BUG=b:149536282
BRANCH=none
TEST=make buildall
Change-Id: I9070953c02ff7d3eb4950191db6505b635371792
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2383359
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The PD function can be enabled.
BUG=b:153705222
BRANCH=none
TEST=Enable Halvor PD Port 0,Port 1 and Port 2
Change-Id: Id171e7c9f900098b2b727e4f69479ee49ea995b3
Signed-off-by: Samsp_Liu <Samsp_Liu@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311998
Tested-by: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: SamSP Liu <samsp_liu@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Madoo doesn't support HDMI sub-board. By removing it to prevent unwanted
outcome.
BRANCH=None
BUG=b:167168822
TEST=on function works on madoo proto build with type C sub board.
Signed-off-by: Ko_Ko <Ko_Ko@compal.corp-partner.google.com>
Change-Id: I8b3e95c520c71b0e0541d5786c296375e7556cb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2385022
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Commit-Queue: Ko Ko <ko_ko@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We would prefer to use CONFIG_CHARGE_RAMP_HW to enable legacy BC1.2
charging but that feature of ISL9241 is broken (b/160287056) so we
have to use CONFIG_CHARGE_RAMP_SW instead.
BUG=b:163864475,b:167257846
BRANCH=none
TEST=ramp up to 1.5A from legacy charger
Signed-off-by: Denis Brockus <dbrockus@chromium.org>
Change-Id: I636e2bd6db57c11ce6da24cc2417b35bb59c6d07
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2388081
Reviewed-by: Edward Hill <ecgh@chromium.org>
|