| 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The RT1715 implements its own low-power mode (LPM) to save power. Switch
from using the default I2CIdle LPM to using the RT1715-specific one.
Disable the 24MHz oscillator in LPM, and enable the interrupt to wake
from LPM.
For interrupts, clear the WAKEUP interrupt before checking the TCPCI
interrupts.
Enable auto-idle to save power with a device connected. Disable when the
TCPC is sourcing Vconn.
BUG=b:179256608
TEST=On Voxel: while no device attached, make sure both SNK and SRC
devices wake up the TCPC from LPM
TEST=On Voxel: with no devices connected, measure fake G3 power
consuption and make sure it has decreased
TEST=On Voxel: with a pass-through hub configured as a sink, check that
connecting a charger will prompt Voxel to begin charging
TEST=make buildall
BRANCH=None
Change-Id: Ifb2fa5a7940e5862e217c04c5c1082aae6b43989
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2676934
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adjust CC noise rejection parameters based on CC voltage
after getting CC levels and before setting polarity.
Adjust electrical parameters to Richtek-recommended values.
BUG=b:173023411, b:171461736
BRANCH=cros/main
TEST=Pass TDA.2.1.2.1 BMC PHY RX BUSIDL with Volteer+RT1715
Change-Id: I70990e59d15cb59e868d51852dec27100f8d732c
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2599786
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Tested-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
At present boards includes the private header of some of the drivers.
This is not ideal but it works. For Zephyr we don't really want to
access headers in private driver directories.
Instead, create public headers for the five drivers needed by the
Zephyr volteer build. For now, include the public header in the
private header (the one included by the EC code), so that fewer code
changes are required.
BUG=b:175434113
BRANCH=none
TEST=make buildall -j30 (way too verbose to see what is happening)
build volteer on zephyr
Change-Id: I5b810f53cdf545a885f3977849f9f2ca1d04d60a
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2607506
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 7238cb2f23505aff739d60fa7fcd06bb934f4d4e.
Reason for revert: Initial merge was for unblocking the factory. Now build(s) have been done we can revert the CL.
Original change's description:
> driver: Richtek update rt1715 driver code
>
> Add rt1715 USB C PHY initial setting for better IOP compatibility.
> Add Rt1715_init_cc_params function to setup rt1715 PHY noise filter
> according to port partner’s CC status.rt1715_get_cc, rt1715_set_cc,
> rt1715_set_polarity functions and replace tcpci_tcpm_get_cc,
> tcpci_tcpm_set_cc, tcpci_tcpm_set_polarity.
>
> BUG=b:173023411, b:171461736
> BRANCH=master
> TEST=Pass TDA.2.1.2.1 BMC PHY RX BUSIDL with Volteer+RT1715
>
> Change-Id: I1bac27a155e152d42d4d35d72e2791909964da14
> Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2583884
> Tested-by: Abe Levkoy <alevkoy@chromium.org>
> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Bug: b:173023411
Bug: b:171461736
Change-Id: I01e9765a0b369f6da93391bd0bb27581a5feee37
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2599759
Reviewed-by: YH Lin <yueherngl@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: YH Lin <yueherngl@chromium.org>
Tested-by: YH Lin <yueherngl@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add rt1715 USB C PHY initial setting for better IOP compatibility.
Add Rt1715_init_cc_params function to setup rt1715 PHY noise filter
according to port partner’s CC status.rt1715_get_cc, rt1715_set_cc,
rt1715_set_polarity functions and replace tcpci_tcpm_get_cc,
tcpci_tcpm_set_cc, tcpci_tcpm_set_polarity.
BUG=b:173023411, b:171461736
BRANCH=master
TEST=Pass TDA.2.1.2.1 BMC PHY RX BUSIDL with Volteer+RT1715
Change-Id: I1bac27a155e152d42d4d35d72e2791909964da14
Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2583884
Tested-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for replacing the TUSB422 with the RT1715. Since they are
pin-to-pin compatible and currently only used with a rework, make the
decision of which to use at runtime. The logic is to check if the RT1715
is both on the I2C bus and the vendor ID matches. If either fail, default
to the TUSB422 address and driver.
BUG=b:162617664
TEST=make buildall
TEST=check both TUSB422 functionality and RT1715 functionality
BRANCH=none
Change-Id: I8306f086bf030ddd7238532b1f12aa259cb72422
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2343734
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
Add driver for RT1715, it is a TCPCI rev1 TCPC supporting PD3.0 (except
FRS), there are a few vendor-defined registers that need to be
configured past the TCPCI ones.
BUG=b:162617664
TEST=make buildall
BRANCH=none
Change-Id: Ie84610c8a1e17ea5874692ae9c383fa70d7dd486
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2343733
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|