| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the interest of making long-term branch maintenance incur as little
technical debt on us as possible, we should not maintain any files on
the branch we are not actually using.
This has the added effect of making it extremely clear when merging CLs
from the main branch when changes have the possibility to affect us.
The follow-on CL adds a convenience script to actually pull updates from
the main branch and generate a CL for the update.
BUG=b:204206272
BRANCH=ish
TEST=make BOARD=arcada_ish && make BOARD=drallion_ish
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=zork
TEST=verify DUT can power on normally.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ic9b7c953a0dda88529e2886ab1fd9e736760bb2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3151210
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch update AC only power on limit from 50W to 40W,
and remove unused config.
BUG=b:199254041
BRANCH=zork
TEST=make sure AC only can auto power on with 45W adapter.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I55b6f2a91b68fd1f2bd287228719f8b9a35ba532
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3147971
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, only the virtual mux driver uses the mux ACK feature, but the
actual wait for the host command ACK is a part of the usb_mux general
code. Generalize this mux ACK wait so it's available if needed in the
future for more muxes.
Additionally, moving this wait out of the mux set will allow us to lock
the muxes intelligently between tasks, without keeping the muxes locked
during the inactive ACK wait.
BRANCH=None
BUG=b:172222942,b:186777984
TEST=tast typec.Mode*.manual on voxel
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I61a043425a482cc6f3170548c888d91ec20c2a82
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078411
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split after-reset time for NCT3807 and NCT3808, since the after-reset
time is not the same.
From the datasheet (section 4.4.2 Reset Timing) as following:
* | Min | Max |
* ----------------------+-------+-------+
* NCT3807 (single port) | x | 1.5ms |
* ----------------------+-------+-------+
* NCT3808 (dual port) | x | 3ms |
* ----------------------+-------+-------+
Currently the after-reset time for NCT3807 is zero. Change to 2ms to
fit specification as well.
BUG=none
BRANCH=none
TEST=On Redrix. Initial success with NCT3807.
TEST=On Dirinboz. Initial success with NCT3807.
TEST=make buildall.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I1f47f57c0d8955946b1c2522e1a1736739217f41
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068492
Reviewed-by: caveh jalali <caveh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add keyboard_factory_scan_pins and keyboard_factory_scan_pins_used to
keyboard_scan header so they do not need to be declared as extern by
individual boards. These constants need to be defined if
CONFIG_KEYBOARD_FACTORY_TEST is enabled.
BUG=None
TEST=Build
BRANCH=None
Change-Id: I1a100f626b3cea251ca72703d17b2d27db0f8f28
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3053101
Commit-Queue: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are 2 tablet mode triggers:
* Lid: when the lid angle close to 360 degree, either detected by
a GMR sensor or by the angle computed by 2 motion sensors.
* Base: when the detachable base is detached.
These 2 triggers set the tablet mode status, which as a boolean,
resulting a race condition.
This CL fixes the race condition. Each trigger updates its own bit. The
final tablet mode status is the OR of all bits.
BRANCH=Trogdor
BUG=b:193873098
TEST=Attached the base, checked tablet_mode enabled;
detached the base, checked tablet_mode disabled;
flip base to 360 degree, checked tablet_mode disabled;
move the base out of the lid, checked tablet_mode disabled.
Change-Id: Ia9d9d2d66c194796c1039cc8b746c8d1f28a4496
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044414
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The naming string should be DYNAPACK.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: I32f2498d4e51a83bd323d313a862622b6e69967d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038017
Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The NCT38xx driver is now storing boot information which should be
cleared whenever the TCPC is forcibly reset through the reset line. Add
these reset calls to all zork boards.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I89089a32d4d17dc260df7928028c2dc5fef45aa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965846
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use board-specific override files when generating VIFs for boards.
BUG=b:172276715
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch add thermal protect parameter for gumboz(same as dirinboz):
All trigger/release by charger thermistor,
Charging current 0.5A: Trigger > 58’C ; Release < 57’C
CPU PROCHOT: Trigger > 63’C ; Release < 62’C
Set USB-C0 port to 1.5A: Trigger > 63’C ; Release < 62’C
BUG=b:181803301
BRANCH=zork
TEST=verify EC behavior intended when trigger/
release thermal protection.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ia2d840536b6e96474de293c7a014ae76816eb607
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780818
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
C++ doesn't allow forward enum references.
BRANCH=none
BUG=b:144959033
TEST=make buildall
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I7e1f8890005e05136eeb4e5084505988dbbb15b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2740566
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename ioexpander i2c address to match current conventions and update
any calling locations.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iddad457f73d0dd0167496b794c00e274f8985615
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2697855
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ifdef HAS_TASK_MOTIONSENSE is only necessary for board that may not
have sensor. Only oak board may be compiled without the sensor stack.
BUG=none
BRANCH=none
TEST=compile.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I7d8e4ff1a647e73251b91a185780025bfae78187
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2693915
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For accelerometer presented to Android, set default range to 4g.
Required by Android CDD - Section 7.3.1 - Paragraph C.1.4.
mems_setup can correct it, but it is cleaner if the default setting is
right.
BUG=b:144004449
BRANCH=none
TEST=compile
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I781eafc003823e2595d46d7170f717aaee08dc6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657956
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GPIO-only MKBP only works when the AP is awake; we need to use
GPIO_AND_HOST_EVENT in order to support waking the AP in response to
MKBP events; in particular DP_ALT_MODE_ENTERED.
We also configure the MKBP wakeup mask so powerd can apply configuration
at runtime per chromeos-config: if no mask is configured then the
hostcmd to set the wakeup mask is not included in the firmware.
Wake on MKBP (and thus wake on DP) also requires AP firmware support.
https://review.coreboot.org/c/coreboot/+/48844 implements it for Zork.
BUG=b:174121852
TEST=Generating DP event via EC console on morphius with patched AP
firmware successfully wakes system from S3.
BRANCH=zork
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: Ifb193399259674da17694aac5213bfd1f189ee59
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607026
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch update led on/off level by board version
and USB-C port:
1.board version >= 2 && USB-C right port
led on: gpio set high
led off: gpio set low
2. board version < 2
led on: gpio set low
led off: gpio set high
BUG=b:173476148
BRANCH=zork
TEST=verify on rework board, led behavior as intended.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I261f4a7f8adb737888de41e3fa7600cd220064a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2599727
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL change lid accel motion sensor to KX022 from lis2dw12.
BUG=b:175284218
BRANCH=zork
TEST=ectool motionsense to make sure sensors work.
Signed-off-by: jason.guo@quanta.corp-partner.google.com
Change-Id: I995cb7b9ee1076db4ff719785e2c33ed0eace391
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597123
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=zork
TEST=Check screen rotation with tablet mode.
Check keyboard disabled and on-screen keyboard enabled with tablet mode.
Signed-off-by: jason.guo@quanta.corp-partner.google.com
Change-Id: Ieb0935d39d385cc8d4c0bb35379ddd1370b15b8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2581134
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is an option in the task_set_event function which force
the calling task to wait for an event. However, the option is never
used thus remove it.
This also will help in the Zephyr migration process.
BUG=b:172360521
BRANCH=none
TEST=make buildall
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ic152fd3d6862d487bcc0024c48d136556c0b81bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521599
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This path update power led behavior as following:
system s0 power led on
system s0ix blinking white
system s5 power led off
BUG=none
BRANCH=Zork
TEST=none
Signed-off-by: jason.guo@quanta.corp-partner.google.com
Change-Id: Ic77e5795494a543405b513878ea643f41028af3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2567862
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.reword battery comments
2.reword all Dirinboz name to gumboz
BUG=none
BRANCH=zork
TEST=make BOARD=gumboz
Signed-off-by: jason.guo@quanta.corp-partner.google.com
Change-Id: Ia7a4b8a65a6a06065da20d0bdfc38b8ad24ccadc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2556728
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
Create the initial EC image for the gumboz variant by copying the
dirinboz reference board EC files into a new directory named for
the variant.
(Auto-Generated by create_initial_ec_image.sh version 1.2.0).
BUG=b:173536689
BRANCH=none
TEST=make BOARD=gumboz
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I3cdbcac1d7447b17048888f491e1632d738fc2d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2547609
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|