| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that all mux and PPC functions have been broken out, the contents of
usbc_config.c are now redundant with the skyrim copy. Remove this extra
copy to reduce the amount of board c code.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=None
BUG=b:244457125
TEST=zmake build winterhold
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Id0c6ed45a20f6ee0fa4a48ef4fb999f6709220f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905891
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Robert Zieba <robertzieba@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move functions which are setting USB mux parameters into board
functions, as the tuning for each port will be sensitive to the board
layout. Also, re-name mux set functions to reflect that they're no
longer in the equivalent of baseboard code.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim and variants
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I03ef85d409db5b49dae2646916e9652d04d0f2af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905890
Reviewed-by: Robert Zieba <robertzieba@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not all boards are using the AOZ PPC, so move its control function into
a specific PPC board file. Also move the PPC interrupt function to board
code.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim and morthal
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I93d24ddeaa61706c8d02e7e8ad099f4d904ae90c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905889
Reviewed-by: Robert Zieba <robertzieba@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FW_CONFIG bit9
0: Convertible
1: Clamshell
BUG=none
BRANCH=none
TEST=set fw_config bit9=1 can disable motion sense.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I9e29a901e3f5c647c561bada31b03f1f3f20332d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906511
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use low power clock for the keyboard backlight
PWM so that the keyboard backlight does not
flicker when using battery.
BUG=b:247919980
TEST=zmake build yaviks; flash and check keyboard
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ic76b433c1d02775c06af0827a6da17155b42538b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906516
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The output ilimit select should be inverted so that
the EC output is 1 when current limiting is enabled (SDP), and 0
when current limiting is disabled (CDP).
The default mode is CDP (charging downstream port), and
internally the EC assumes that setting an ilimit of 1 will enable
the higher current, so this value needs to be inverted before
setting the GPIO output.
BUG=b:246504619
TEST=zmake build nivviks; gpioget usb_a0_ilimit_sdp
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ieb56ded563f61f0c41d280e7cf65bbc534e6fd50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3904720
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the existing mux arrays into devicetree.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim and variants, load onto skyrim and confirm ports
work as well as before
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I27dd8fa1882460d4d6bad88852ee93bb555ec9dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905888
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the default declaration of board_set, as boards may need their
own tuning in addition to the default tuning.
BRANCH=None
BUG=b:244457125
TEST=zmake build affected boards
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iedacdfb92417076841fd3c1c0178653c0a58cc60
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905900
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for the PS8818 in the shim so it can be configured using the
devicetree. Note that all of the PS8818's include file is "public" in
that boards regularly manipulate the registers directly rather than
through well-formed APIs.
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia182ca5617d312db2acb8fb7680a7847a3a7ecb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905887
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the SBU protection chip isn't a true mux, fold it into the
board_set for the actual muxes.
LOW_COVERAGE_REASON=Skyrim board tests not created yet: b/247151116
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim; verify SBU polarity is set correctly on both
ports
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I96744fef11c9fc0044b97b2fe39f588b89e80e43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880672
Commit-Queue: Robert Zieba <robertzieba@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Robert Zieba <robertzieba@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rework how the temperature sensors are presented in dts files.
A temperature sensor has to be declared independently from the
named-temp-sensors node. The sensor nodes have to specify all
properties that are handled by driver- i2c port/address, used adc
channel etc. Children nodes of the named-temp-sensors set meta values
needed for EC code like enum-names, power-good-pin and temperature
thresholds. Also, every child node has a pointer to a physical
temperature sensor.
It implicates a different way of indexing the temperature sensors.
This change is done to separate defining physical sensors from metadata
for EC application and move some sensors onto i2c buses
BUG=b:240619570
TEST=zmake build -a && ./twister -T zephyr/test/ &&
make sure temperature sensors work with the "temps" EC CC
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ia0dfc0b98455e8e28233c17d5feff27a7cc5b96d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3879364
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This means we don't need to duplicate a lot of options for every board
using the same chip, which is error-prone and difficult to update.
Config changes that are made:
* USB FRS is enabled on all RAA489000 boards (from pujjo)
* Shell RX ring buffer is uniformly 256 bytes on NPCX
* FPU is enabled on yaviks (matching other ITE boards)
BUG=none
TEST=No unexpected diff in generated zephyr configs:
BOARDS=(nivviks nereid craask pujjo xivu joxer yaviks)
git checkout m/main; zmake build ${BOARDS[@]}
for b in ${BOARDS[@]}; do
cp build/zephyr/$b/build-rw/zephyr/.config $b.config
done
git checkout HEAD
for b in ${BOARDS[@]}; do
diff -u build/zephyr/$b/build-rw/zephyr/.config $b.config
done
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I93d0dbc4465c1c2c63b86e40856deafabfde3101
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905592
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify port 0 ppc config condition.
BUG=b:238263725
TEST=zmake build tentacruel --clobber
BRANCH=None
LOW_COVERAGE_REASON=krabby board test under development(b/243841599)
Signed-off-by: jeffrey <jeffrey_lin@pegatron.corp-partner.google.com>
Change-Id: I66a540e71695e0b6b9ad7d14d625e74fa172d756
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905593
Code-Coverage: Ting Shen <phoenixshen@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change lid accel sensor to BMA422
Update Rotation matrix
BUG=b:238571776
BRANCH=none
TEST=check sensor working via ‘accelinfo on’
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: Ic3ee762c5a933ce14904ca14c0f8a5ae5a360510
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3903931
Reviewed-by: Sam Hurst <shurst@google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove TCS3400 Light sensor
BUG=b:238571776
BRANCH=none
TEST=zmake build evoker
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: Ibe307307bc331373b9f469f7d2430098db6fdf30
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3897920
Commit-Queue: Sam Hurst <shurst@google.com>
Reviewed-by: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous, the PP5000 is enabled at GPIO init. In the dead battery
case, enabling PP5000 overloads the battery charger at the initial
5V 500mA supply. We want to defer it until the PD negotiated VBUS
transition, so the battery charger won't be overloaded.
A window of PD negotiation is created. It starts from the Type-C
state reaching Attached.SNK, and eneds when the PD contract is
created. The VBUS may be raised anytime in this window.
The current implementation is the worst case scenario. Every message
the PD negotiation is received at the last moment before timeout.
The extra time is added to compensate the delay internally, like the
decision of the DPM.
The unit tests are added.
BRANCH=None
BUG=b:215726554
TEST=Booted the Herobrine board with no-battery. The 5V rail got
delayed.
Change-Id: I5529762de3495e4cb6702e887bf6ee09d1711f14
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3501013
Reviewed-by: Sam Hurst <shurst@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use SSFC bit 2-3 value to identify lid sensor.
0: bma422
1: lis2dwl
BUG=b:236922025
BRANCH=none
TEST=zmake build pujjo
TEST=can read raw data from bma422 after setting ssfc=0x00
TEST=can read raw data from lis2dwl after setting ssfc=0x04
Signed-off-by: arthur.lin <arthur.lin@lcfc.corp-partner.google.com>
Change-Id: I9a0668407e2f770d21d7d8aab1cec717aa1074ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3901914
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify port 0 ppc config to syv682 and bc12 config to pi3usb9201.
BUG=b:238263725
TEST=zmake build tentacruel --clobber
check port 0 can work normally.
BRANCH=None
LOW_COVERAGE_REASON=krabby board test under developement(b/243841599)
Signed-off-by: jeffrey <jeffrey_lin@pegatron.corp-partner.google.com>
Change-Id: I0b183783e93090b2247e01c18ebc72b6180eb753
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3897911
Code-Coverage: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:238597720
TEST=x86 CtsSensorTestCases can pass on nereid
BRANCH=none
Signed-off-by: Sam McNally <sammc@chromium.org>
Change-Id: Ica8304be047ccd9bef78d8b417698672df5fdcbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3899958
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
0: bmi323
1: lsm6dsm
BUG=b:235866642
BRANCH=none
TEST=zmake build pujjo
TEST=can read raw data from bmi323 after setting ssfc=0x00
TEST=can read raw data from lsm6dsm after setting ssfc=0x01
Signed-off-by: jimmy.wu <jimmy.wu@lcfc.corp-partner.google.com>
Change-Id: I668317cde8b0431ae4b454ca28e3f0d644bb8d8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3881429
Reviewed-by: Andrew McRae <amcrae@google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Code-Coverage: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set configs for console commands history, auto complete, help.
BUG=none
BRANCH=none
TEST=on MTL RVP console, type help, will get
ec:~$ help
Please press the <Tab> button to see all available commands.
You can also use the <Tab> button to prompt or auto-complete all
commands or its subcommands.
You can try to call commands with <-h> or <--help> parameter for more
information.
Available commands:
8042 :Print 8042 state in one place
adc :Print ADC channel(s)
apreset
...
Signed-off-by: Li Feng <li1.feng@intel.com>
Change-Id: Ibf4dcd67c20e1137d112442b00294dd99745a72e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877940
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the i2c common code into a dtsi file which the variants may include
in their own dts files.
BRANCH=None
BUG=b:244457125
TEST=zmake build skyrim and variants
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I1b48e21c76fff8bd1f4db127aea4da2bf936c1e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3902646
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The eSPI shim can be quite chatty, so default it to the error level on
all boards.
BRANCH=None
BUG=None
TEST=CQ+1 pass, boot on skyrim and observe no "KB put" info prints
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iaf9c3805a2f657e525f09cf591563395c6358c87
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3902030
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set correct GPIO definition of VOLUP/DN_BTN_ODL
to meet Craask hardware design.
VOLUP_BTN_ODL -> EC GPIOA2
VOLDN_BTN_ODL -> EC GPIO93
Volup/dn button exchanged on ver3 USB sub board.
BUG=none
BRANCH=none
TEST=Volume up/down button works correct on ver3 DUTs.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Ic44161ed47778a36dc473789f350250ec3be47ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893308
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
evoker has two leds that are battery led and power led.
The led behavior define as following:
Power led:
S0 - white
S3 - white 1 second, off 1 second
S5 - off
Battery led:
Full charge - white
Charge - amber
Discharge - off
Error - red
Forced idle - red 1 second, white 1 second
BUG=b:243477929
BRANCH=none
TEST=zmake build evoker
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I1f6b0c161be7e79596de11b125e8624806406767
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3775798
Reviewed-by: Bob Moragues <moragues@chromium.org>
Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Sam Hurst <shurst@google.com>
Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support new battery PC-VP-BP153
BUG=b:246879091
BRANCH=none
TEST=zmake build evoker
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: Ib4bfd9826c75877ec9dca15ed8f963f53c74bba8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3897916
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
add led behavior for S0 and low battery
BUG=b:244373502
BRANCH=none
TEST=zmake build magikarp --clobber
Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com>
Change-Id: I953d20335d452c8a7fa266d4a2a9721e37331228
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891427
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove bringup config, the bringup state is completed,
and this config caused a power sequence exception.
BUG=b:241540339
BRANCH=none
TEST=close lid, the dut can enter suspend state;
open lid, the dut can wakeup normally.
Signed-off-by: mike <mike5@huaqin.corp-partner.google.com>
Change-Id: Idbe7dd6eb63c8e489b64f22180ac47a452564378
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3897919
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The refresh key will be on KSI3, and we may also see this signal
asserted on all columns during a recovery boot so it needs to be
filtered accordingly.
BRANCH=None
BUG=b:245626014
TEST=on skyrim, consistently boot to recovery mode
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I9080208356f42d4d7b4a7763b1957da7daecfb8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3896632
Commit-Queue: Robert Zieba <robertzieba@google.com>
Reviewed-by: Robert Zieba <robertzieba@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:236131108
TEST=zmake testall; zephyr/zmake/run_tests.sh;
BRANCH=main
Change-Id: Ic1b403ddacacd6f3dabb5f83141d70c2416f7e92
Signed-off-by: Miguel Delatorre <delatmiguel@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3829953
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Adam Mills <adamjmills@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The placement of the LID sensor is spin 180' on xy plane for Craaskbowl.
Use fw_config bit8 to describe Lid sensor orientation:
0: original placement
1: rotate 180' on xy plane
BUG=none
BRANCH=none
TEST=table mode and rotation work fine on Craaskbowl
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Ifa3d22ca2e1c90dfebb8ad8a7eca676b84c07191
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891565
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
initial board specific gpio..
BUG=b:243631595
BRANCH=none
TEST=zmake build magikarp --clobber
Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com>
Change-Id: I3176ec0858cc983b45cfafd26b37f5a4b3c8012c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3892080
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
initial g-sensor direction and cbi mapping.
BUG=b:242929666
BRANCH=none
TEST=zmake build magikarp --clobber
Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com>
Change-Id: Ie5ba0735de781af7926b7be7abfeea2f7f5e783a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3892079
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Setup battery for magikarp.
BUG=b:242937675
BRANCH=none
TEST=zmake build magikarp --clobber
Signed-off-by: elmo_lan <elmo_lan@compal.corp-partner.google.com>
Change-Id: I63f4193d3df7b5c9f402e72c42fcfc0c9c4ceb40
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891553
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's not under i2c4.
(Actually this is a no-op change because rt9490 driver only requires
that the i2c config in charger node is correct)
BUG=none
TEST=bc12 detection on c1 port still works
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Id905cbf1a45fe3be0232f42a9c964930fd689467
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893811
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add keyboard configs to enable entering recovery mode
via 'Esc'/'Refresh'/power-btn.
BUG=b:246657903
TEST=zmake build nivviks; flash & run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I79a6589ed693deedcf88841051c44e495d70196b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893304
Reviewed-by: Reka Norman <rekanorman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:241964549
BRANCH=none
TEST="ectool temps all" thermistor name is intended.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I97206424eb6ed9db913d4e78a1f91e01e4994242
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893689
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL adds the config option to indicate that FRS swap detection
will be done by the PPC. FRS_EN is controlled by the TCPC ioexpander
and this signal was not being configured.
BRANCH=none
BUG=b:244874682
TEST=zmake build rex
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I21b2495cf398d503111654d24043edf05bd7d49e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3873653
Tested-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Both USB_PD_DISCHARGE_PPC and USB_PD_DISCHARGE_TCPC configs were being
selected. This causes the PPC to leave force discharge enabled and
keeps VBUS low.
BRANCH=none
BUG=b:244874682
TEST=Verifed that VBUS is supplied when the PPC source path is enabled.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I35ae2c5d4360a89a1d3242906820feabd79936e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877664
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
yaviks has charge leds on left side and right side, each side
have two colors: amber and white.
The led behavior define as following:
Charging led: led on with charging port active, other port is off.
Charging: Amber.
Discharging: Off.
Battery Error: Blinking amber on both side (0.5 sec on, 0.5 sec off)
Fuel < 10%: Blinking amber on both side (1 sec on, 1 sec off)
Force idle for factory: Blinking amber (1 sec on, 1 sec off)
System suspend with non-charging state:
Blinking both side LED white (1 sec on, 1 sec off)
BUG=b:246414045
BRANCH=none
TEST=verify led behavior as intended,
verify VT2 command: ectool led left/right auto/white/amber/off.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I7d7ecaba5f1a78609d9093b94b67a23a40d62812
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3878626
Commit-Queue: Andrew McRae <amcrae@google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
Code-Coverage: Andrew McRae <amcrae@google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Devin Lu <devin.lu@quantatw.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add alternative USB mux configuration in DTS for nissa.
LOW_COVERAGE_REASON=no test for nissa board yet
BUG=b:234482311
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Id367005334cc378c7495b615bab5333a72d39bf8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875325
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Adam Mills <adamjmills@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add alternative USB mux configuration in DTS for corsola.
LOW_COVERAGE_REASON=missing PS8743 emulator to introduce kingler
baseboard_x_ec_gpio2_init test
BUG=b:234482311
TEST=zmake build -a
BRANCH=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I82e8bbf7da49ba927eb2dfc151db046f5c88cb77
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875324
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add alternative USB mux configuration in DTS for adlrvp.
LOW_COVERAGE_REASON=no test for adlrvp board yet
BUG=b:234482311
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ibecdaf47bbda5835412787a1f0387b0bc0d19c45
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3700331
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update rex board to use new struct usb_mux_chain.
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I8b197640263cd71a6b0b79bf316f4d2ee3b87622
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858650
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update trogdor board to use new struct usb_mux_chain.
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ib44dde43d4221c90d5aa8509c41e07d7e5cfaa86
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780420
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update skyrim board to use new struct usb_mux_chain.
LOW_COVERAGE_REASON=no test for skyrim yet and missing required
usb mux emulators (PS8818, ANX7483)
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ia572fa040a220b5f7129026c210be986edccb061
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780419
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update brya board to use new struct usb_mux_chain.
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Icccb0299cea28c21656ab2faf8dac10309ae07ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780418
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update nissa boards to use new struct usb_mux_chain.
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Icf0dbef327d8cc5172fef960b6cecb792e1eb887
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780417
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update intelrvp boards to use new struct usb_mux_chain.
LOW_COVERAGE_REASON=no test for adlrvp board yet
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I6f69cc3d4ce99837a0db6bb12d55b71551a0d577
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780416
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update herobrine boards to use new struct usb_mux_chain.
BUG=b:236274003
TEST=zmake build -a
TEST=./twister -T zephyr/test
BRANCH=None
Cq-Depend: chromium:3779618
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: If664fd0815a9227e1c2d5aa848944cad655f739a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780415
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
|