| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because Halvor is support three USB-C
So add the 3rd USB-C GPIO and interrupt function
BUG=none
BRANCH=none
TEST=make BOARD=halvor
Change-Id: Ia4d4aa13f0a43f15f24d6d8321fd7a111fdb3ea5
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2148982
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Initialize the Jinlon keyboard configuration.
BUG=b:146501925
TEST=TEst the top row on Jinlon
BRANCH=firmware-hatch-12672.B
Signed-off-by: Rajat Jain <rajatja@google.com>
Change-Id: Ib8ffdbd783126aa097c097dfc968c9d226ac042b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2135567
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
H1 can't enable EC uart if UART_H1_TX_EC_RX is always pulled up.
BUG=b:154279402
TEST=flash over ccd works
BRANCH=None
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Idac8355d5653f9a97e9083f5d23b1c46b2426578
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2159939
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:150341271
TEST=`ksstate on`, verify key press shows on ec console
BRANCH=none
Change-Id: Iea6102caa085ba65498fc32f80d7a0c3cd51d17d
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2148987
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adjust the rotation matrix of base and lid sensor to get expected XYZ
data.
BUG=b:152434719
BRANCH=none
TEST=Base & lid accel sensor XYZ data are expected with command 'ectool
motionsense'in VT2.
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: Ia234e0df7150543133afef15e21877dc87bb70e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156687
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Malefor supports three batteries:
- LGC: L19L4PG2
- SUNWODA: L19D4PG2
- SMP: L19M4PG2
BUG=b:154155827
BRANCH=none
TEST=boot malefor board with battery, charging/discharging/cutoff
work as expected.
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: I5c639e00bb13f11d0ad11e78d2ede5085c33ca0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152027
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the VolUp button location can vary now, take that into account.
Signed-off-by: Rajat Jain <rajatja@google.com>
BUG=b:146501925,b:154167876
TEST=TEst Alt + VolUp + r on Jinlon
BRANCH=firmware-hatch-12672.B
Change-Id: I4dbc8692f6418fd786e5d33053e8c368cc5529ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2151854
Commit-Queue: Rajat Jain <rajatja@google.com>
Tested-by: Rajat Jain <rajatja@google.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Vivaldi is a new keyboard that allows individual boards to have
additional or different top row keys and/or to reorder those keys.
The primary agenda of vivaldi is to allow customization of the top
row keys. However, as a secondary objective, it also allows coreboot
to send a keymap to the kernel, for only the keys that are actually
present on the keyboard.
As part of enabling vivaldi, another feature that get enabled
is to start sending action codes instead of function codes for the top
row of the keyboard.
go/vivaldi-prd
go/vivaldi-design
go/vivaldi-fw-design
With this patch, things remain unchanged for any boards that do not provide
board_set_vivaldi_keybd_config(). For boards that do provide it:
* EC begins to send action scancodes instead of function scancodes for the
top row when top row keys are pressed.
* EC responds to an EC command from the coreboot, that asks for the
layout for the keyboard. Coreboot uses this to expose corresponding
keycodes to the kernel.
BUG=b:146501925
TEST=Check on Jinlon the (new) expected scancodes are output from EC.
BRANCH=firmware-hatch-12672.B
Signed-off-by: Rajat Jain <rajatja@google.com>
Change-Id: I1f45ce6eee138a984f8d4caef1ec76c9538dd30b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2135566
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the vivaldi requires the scancode to be mutable, and vivaldi
shall be enabled by default for all boards, thus make the scancode
table to be always mutable and get rid of the config option it hides
behind.
BUG=b:146501925
TEST=Build
BRANCH=firmware-hatch-12672.B
Signed-off-by: Rajat Jain <rajatja@google.com>
Change-Id: Iaedcd6d84caf31c91a61854f96414bcea38f5c2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2133825
Reviewed-by: Jett Rink <jettrink@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moves chip specifics (ex. charger, TCPC) from baseboard out to the
waddledee board files in anticipation of Wheelie.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I99bf33d683cc89e6508fbbe305cd0b4c05a53090
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2157949
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to tPLT17 in the PDG, the time from SLP_S3_L assertion to
VCCIN_EN de-assertion should be less than 200us, but this was not
occurring on waddledoo. This commit adds a special interrupt handler
in order to meet that timing requirement by immediately deasserting
ALL_SYS_PGOOD once SLP_S3_L is asserted.
BUG=b:152552074
BRANCH=None
TEST=Build and flash waddledoo, boot and shut AP down, verify that the
time between SLP_S3_L asserting and ALL_SYS_PGOOD deasserting is less
than 200us.
TEST=`make -j buildall`
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: Ib34016d5bdfa956f410dde3e3b3074bd306a18f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142744
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The parameter of GPU fan follows the data that thermal team provide.
BUG=none
BRANCH=none
TEST=make BOARD=mushu
Change-Id: I4dd815344352113432a8cbd481c13771f4634a1e
Signed-off-by: loganliao <Logan_Liao@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156696
Reviewed-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Logan Liao <logan_liao@compal.corp-partner.google.com>
Tested-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:150341271
TEST=boot on asurada, verify `chgstate` and `battery` looks good
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Icf1bda085307280ffb4bd96d22ed5e6e760a5336
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2148852
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implemented alt functions and interrupts except usb / power seq / sensor
related things.
BUG=b:150341271
TEST=make
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I5ccc96c26369e75fdeb20d5a7f0e565a28605346
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2107116
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't support blue LED, so remove it.
And change LED brightness to 255.
BUG=b:152719659
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I34e48fe9ea2475a0a07720606e38981b03612533
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152033
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
move common configs from jacuzzi derivatives into baseboard
BUG=None
TEST=make
BRANCH=kukui
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I5baf8c5bbb6520c324be4d30824b642141eeb331
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147824
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the hw requirement, Jacuzzi should be able to provide 5V/3A
when it's not providing power on any other port.
BUG=b:153699375
TEST=1. Connect juniper to another chromebook
2. in ec console, `pd 0 dualrole source` to force juniper sourcing
power
3. make sure another device is receiving 5V/3A.
BRANCH=kukui
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I3f1b95d3a63b15828b4ea860c32fe2a638593f2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145128
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch add thermal sensor tmp432 on morphius.
BUG=b:154189125
BRANCH=none
TEST=use temp cmd in ec console, can get tmp432 internal temperature.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I0f0f07a72e38b3d429f43c296e878a150a9f4916
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2123619
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds force charging idle led behavior for factory.
BUG=none
BRANCH=none
TEST=use ectool chargecontrol idle then make sure led blinking amber.
Change-Id: I096fbaf4260d170b3fd48cc6f433e5319584260d
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152038
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The AP requires near-instant response when turning on the S0 rails
coming out of suspend; using an interrupt directly helps, but latency is
still 30-60 uS and causes AP hangs when it's too slow.
To reduce the latency further, make two changes:
* Increase the interrupt priority for that GPIO bank to reduce jitter.
* Move the interrupt definition to the top of the GPIO file so the
dispatcher in npcx/gpio.c needs to scan the minimum number of entries
to find the appropriate ISR.
I haven't been able to directly measure the new latency, but it seems
much more stable. Without this I observe a resume failure rate of around
0.8%, and it appears to be less than 0.01% with this change.
BUG=b:152377365
TEST=suspend_stress_test passed 10000 cycles
BRANCH=None
Change-Id: Ia0f6122209a653b6304028806add0c2226574c2f
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152029
Reviewed-by: Andrew McRae <amcrae@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Align names for PS8743_REG_MODE with similar PS8802_REG2_MODE.
BUG=b:152736880
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I8b8ebe41eb2bffad14cee8347549447d5583da47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2151791
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch rename AMD AP I2C port name
for zork and grunt family.
BUG=b:154189125
BRANCH=none
TEST=make buildall and verify EC can get AP temperature through temps
command in EC console on morphius board.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I846bf671983c9788ad1f42986bfbefda09d5c9b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152032
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:152267803
BRANCH=none
TEST=Check fan tacho.
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I993da17dd51dee7b3ffb174635346f6b9b1a51b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152031
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Tested-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configure I2C pins and i2c_ports for Halvor
BUG=none
BRANCH=none
TEST=make buildall, make BOARD=halvor
Change-Id: Ie80723563e39af07907cca5d5a0fc50ec0851032
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147765
Reviewed-by: Ruby Lee <ruby_lee@compal.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:154159907
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
TEST=panel rotate correctly in OS.
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I6ec1adaf5878c646fac777d715a02fee9a59fa1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152026
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set correct mode and HPD_IN_DB for TUSB544/PS8743.
BUG=b:152736880
BRANCH=ezkinil
TEST=Check typec both side usb speed shows 5G in "lsusb -t" and display is
workable.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I9b16e650f15eedbcd7b35b69fdfe93c3268942f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2141371
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify thermal_params and fan_rpm_0
Add fan_table:
on off RPM
step0 2 0
step1 15 2 2800
step2 23 13 3200
step3 30 21 3400
step4 38 28 3700
step5 45 36 4200
step6 55 43 4500
step7 66 53 5300
BUG=b:153937447
BRANCH=none
TEST=make buildall
Change-Id: I25aedc034dcdc473b2dca36d7eac0aa2ba93f7bf
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147768
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Vincent Wang <vwang@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:153454399
BRANCH=none
TEST=PS8740 still works
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Iaf09c4986b3a03ee2bf4c2408f6dd61ea64388af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2151648
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split ps874x.[ch] into ps8740.[ch] and ps8743.[ch]
since we need to support both at runtime for Dalboz.
I left PS8742 in ps8740.[ch] since it is not very different.
BUG=b:153454399
BRANCH=none
TEST=make -j buildall
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I92b02e08f377d1781c130a0bbe1482a936ad7a4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2151647
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
remove unused GPIO pin defined in gpio.inc
BUG=b:144227077
BRANCH=none
TEST=make buildall -j
Change-Id: I7ac7d63b2c124843d1ccdaada1838669f02d534b
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2143071
Tested-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PI3DPX1207 config needs to be board specific.
BUG=b:144227077
BRANCH=none
TEST=none
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Ib2760f3786dabb5a14baab546d6320792e2d2e3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2150557
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split i2c_ports[] into Trembyle and Dalboz variants.
Change I2C_PORT_BATTERY to I2C7 for Dalboz V1 HW.
Check for V0 HW on boot to re-map back to I2C2.
BUG=b:153459542
BRANCH=none
TEST=battery still works on V0 HW
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Ic3b115ef3bae66da63c1aebe8d2ae47e9705baa6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2149751
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:153996396
BRANCH=none
TEST=make buildall -j
Change-Id: I91091e8bb46ef986e8f0f3363e90107e86e928e0
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2149273
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:153995632
BRANCH=none
TEST=make buildall -j
Change-Id: I283049e74073799ac086a16e801bd282817b5e94
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2149271
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dalboz has a power led.
BRANCH=none
BUG=none
TEST=S0: on
S3: blink
S5: off
Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com>
Change-Id: Ic63f18cdf3ce697d2a1b612629c0c6067932e1d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147767
Reviewed-by: Edward Hill <ecgh@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Base ALS is too low on nightfury. It is related with lens
transmittance. So, we need to increase default_range so that
we can get correct lux from base ALS.
BUG=b:153665433
BRANCH=firmware-hatch-12672.B
TEST=emerge-hach chromeos-ec
flash ec.bin on DUT
Verify lux with ectool motionsense
Signed-off-by: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Change-Id: I5186c228bf7c769116237e062e241a42a3b66287
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145546
Reviewed-by: Bob Moragues <moragues@chromium.org>
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Bob Moragues <moragues@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because the Halvor I2C bus setup is different than other Volteer boards
Use this change to move I2c configure from baseboard to variant.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: I3a5e0c885f2e0c609a2456c6b493af9e6ecee4f9
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147760
Reviewed-by: Ruby Lee <ruby_lee@compal.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch enable battery smart charge feature on morphius.
System in S0 disable battery smart charge.
System in S3/S5 enable battery smart charge.
BUG=b:153660274
BRANCH=none
TEST=check battery's charge current
is different when system in S0 and S5.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Id58a1a06016ad805e19390acb1d0a0600f46c398
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142845
Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add pd console commands that enables the device
to work with PD FAFT. Other pd commands such as
bist, vdm and ping will be added in another CL.
BUG=b:151481791
BUG=chromium:1021235
BRANCH=none
TEST=make -j buildall
manual:
Verified that system:
pd tryscr 0 - did not trysrc
pd tryscr 1 - did trysrc
pd tryscr 2 - normal trysrc operation
pd 0 tx - started as snk
pd 0 charger - started as src
pd 0 dev 5 - charged at 5V
pd 0 dev 12 - charged at 12V
pd 0 dev 15 - charged at 15V
pd 0 dev 20 - charged at 20V
pd 0 disable - pd was disabled
pd 0 enable - pd was enabled
pd 0 soft - sent soft reset
pd 0 hard - sent hard reset
pd 0 dualrole off - stayed in src and switched to snk on disconnect
pd 0 dualrole on - toggled from snk to src and vice versa
pd 0 dualrole sink - was a sink only
pd 0 dualrole source - was a source only
pd 0 dualrole freeze - stayed in current power role and switched
to snk on disconnect
pd 0 swap power - initiated a power role swap
pd 0 swap vconn - initiated a vconn swap
pd 0 swap data - initiated a data role swap
Change-Id: Id1542001c0e52d1d5bfbc5b9cb826b9a204e5b2e
Signed-off-by: Sam Hurst <shurst@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1962506
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
modify fan_rpm_0
rpm_min=2400
rpm_start=2400
rpm_max=4000
BUG=b:153589525
BRANCH=none
TEST=make buildall -j
Change-Id: I69411522c7e11172e8095dcc0b4c46850334d749
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2141374
Reviewed-by: Peter Ou <peter.ou@quanta.corp-partner.google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Tested-by: Peter Ou <peter.ou@quanta.corp-partner.google.com>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update GPIO to match schematic.
First pass at CONFIG_* definitions.
Just enough [base]board.c changes to build.
BUG=none
BRANCH=none
TEST=make BOARD=halvor
Change-Id: Ic5b48581b860833e6d9e74600f807b4875862ad4
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2120757
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL move fan configure from baseboard to variant.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: I5109a0b18e5e3f740db67c13cf6473ab2c926b42
Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142835
Reviewed-by: Ruby Lee <ruby_lee@compal.corp-partner.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Kakadu does not support double tap.
BUG=b:153612734
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I355966aa1f209da6972e0bb12d4e03370f4a0313
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145544
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove redundant include file.
BUG=b:153699591
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Change-Id: I74c0f706311a86a2b833293288771751803cb403
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2147413
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't support als sensor on kakadu.
BUG=b:153699591
BRANCH=kukui
TEST=make -j BOARD=kakadu
TEST=make buildall
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I86318d7653858fb1066c89811c7f550f3d2a10d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142841
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Explicitly set GPIO0 to be open drain or not, depending on the
application needed.
BRANCH=None
BUG=b:153398237
TEST=on waddledee, redriver now inits and responds correctly
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iaf6c66841a618ae5a522ad7f817dac3a5e0c755c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145074
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the hook to call the board init function during init time.
BRANCH=None
BUG=b:153398237
TEST=on waddledee, add prints for the board init and confirm they are
called during startup
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia5b6701b1024e9f61707cf6710cceff0a18369c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145073
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:147745443 b:146088361
BRANCH=none
TEST=EC_HOST_EVENT_AC_CONNECTED works on trembyle
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I7128744b7538e1d6743286a2d24574e7ac257921
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142547
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Paul Ma <magf@bitland.corp-partner.google.com>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
BRANCH=none
TEST=make BOARD=mushu
Change-Id: Ic3bf1ecce3b779c93fd6731904706c0e464d76c1
Signed-off-by: loganliao <Logan_Liao@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2142837
Reviewed-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Commit-Queue: Logan Liao <logan_liao@compal.corp-partner.google.com>
Tested-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add functions to support tablet mode:
* Lid acceleration definitions
* TABLET_MODE_L interrupt
* Lid angle detection that disables keyboard
BRANCH=None
BUG=b:150793669
TEST=Built the Lazor image successfully.
Change-Id: I2622bdb1c4899f70b8dd1321b33cac9306fd4abb
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2122838
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
|