diff options
author | Scott Collyer <scollyer@google.com> | 2022-09-06 17:18:24 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-13 22:53:34 +0000 |
commit | 8c37283278da6e5d18c858e21dc585abb06b6f6c (patch) | |
tree | 72c7b0dfe68c0214dc55684054a0c4811fcba87d | |
parent | 2235912a3cef53ae16a8c6fa1cc873383be6ba66 (diff) | |
download | chrome-ec-8c37283278da6e5d18c858e21dc585abb06b6f6c.tar.gz |
rex: Add support for C0 FRS_EN to the PPC
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>
-rw-r--r-- | zephyr/projects/rex/prj.conf | 1 | ||||
-rw-r--r-- | zephyr/projects/rex/rex.dts | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/projects/rex/prj.conf b/zephyr/projects/rex/prj.conf index a53506ea1e..b69863caef 100644 --- a/zephyr/projects/rex/prj.conf +++ b/zephyr/projects/rex/prj.conf @@ -110,6 +110,7 @@ CONFIG_PLATFORM_EC_USB_DRP_ACC_TRYSRC=y CONFIG_PLATFORM_EC_USB_PD_VBUS_DETECT_TCPC=y CONFIG_PLATFORM_EC_USB_PD_DISCHARGE_PPC=y CONFIG_PLATFORM_EC_USB_PD_FRS=y +CONFIG_PLATFORM_EC_USB_PD_FRS_PPC=y CONFIG_PLATFORM_EC_USB_PD_TCPC_LOW_POWER=y CONFIG_PLATFORM_EC_USB_PD_TCPM_TCPCI=y CONFIG_PLATFORM_EC_USB_PD_TCPM_NCT38XX=y diff --git a/zephyr/projects/rex/rex.dts b/zephyr/projects/rex/rex.dts index 0569befc10..259cd6ff4c 100644 --- a/zephyr/projects/rex/rex.dts +++ b/zephyr/projects/rex/rex.dts @@ -28,6 +28,10 @@ gpios = <&ioex_c0_port0 7 GPIO_OUTPUT>; }; + ioex_usb_c0_frs_en: usb_c0_frs_en { + gpios = <&ioex_c0_port0 6 GPIO_OUTPUT_LOW>; + }; + /* Need to designate 1.8V for I2C buses on the 1800mV rail */ ec-i2c-sensor-scl { gpios = <&gpiob 5 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; @@ -167,6 +171,7 @@ compatible = "silergy,syv682x"; status = "okay"; reg = <0x40>; + frs_en_gpio = <&ioex_usb_c0_frs_en>; }; }; |