diff options
author | Scott Collyer <scollyer@google.com> | 2022-07-30 15:18:43 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-03 03:30:51 +0000 |
commit | cc5f0bf1ddb75eead035a3e187e62ffcda571e6a (patch) | |
tree | 3071e82ec6de81e4d42d43e01b71a910519dcb37 | |
parent | 5a8738244629cfe0dc755da43b6652443f3b1b34 (diff) | |
download | chrome-ec-cc5f0bf1ddb75eead035a3e187e62ffcda571e6a.tar.gz |
rex: Add support for eSPI
This support adds config options requires to support eSPI as well as
the eSPI node to the device tree.
BRANCH=none
BUG=b:240434243
TEST=zmake build rex
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: Id74183d2decacef325632c85aec849c6e0ec5522
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3798470
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
-rw-r--r-- | zephyr/projects/rex/interrupts.dts | 4 | ||||
-rw-r--r-- | zephyr/projects/rex/prj.conf | 18 | ||||
-rw-r--r-- | zephyr/projects/rex/rex.dts | 7 |
3 files changed, 29 insertions, 0 deletions
diff --git a/zephyr/projects/rex/interrupts.dts b/zephyr/projects/rex/interrupts.dts index 5699ceffa7..ae05c51335 100644 --- a/zephyr/projects/rex/interrupts.dts +++ b/zephyr/projects/rex/interrupts.dts @@ -24,3 +24,7 @@ }; }; }; + +/* Required node label that doesn't is named differently on Rex */ +gpio_ec_pch_wake_odl: &gpio_ec_soc_wake_r_odl {}; + diff --git a/zephyr/projects/rex/prj.conf b/zephyr/projects/rex/prj.conf index fa2c4b4155..3dfb636b9e 100644 --- a/zephyr/projects/rex/prj.conf +++ b/zephyr/projects/rex/prj.conf @@ -6,6 +6,12 @@ CONFIG_PLATFORM_EC=y CONFIG_CROS_EC=y CONFIG_SHIMMED_TASKS=y CONFIG_SYSCON=y +# Enable during development +CONFIG_LTO=n + +# Logging +CONFIG_LOG=y +CONFIG_LOG_MODE_MINIMAL=y # Disable default features we don't want in a minimal example. CONFIG_PWM=n @@ -14,6 +20,18 @@ CONFIG_PLATFORM_EC_KEYBOARD=n CONFIG_PLATFORM_EC_SWITCH=n CONFIG_PLATFORM_EC_VBOOT_EFS2=n +# Application processor; communicates with EC via eSPI +CONFIG_AP=y +CONFIG_AP_X86_INTEL_MTL=y +CONFIG_ESPI=y +CONFIG_ESPI_LOG_LEVEL_ERR=y +CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y +CONFIG_PLATFORM_EC_ESPI_VW_SLP_S5=y +CONFIG_PLATFORM_EC_HOSTCMD=y +# Disabling this until temp sensor support is in +CONFIG_PLATFORM_EC_THROTTLE_AP=n +CONFIG_PLATFORM_EC_PORT80=y + # ADC CONFIG_ADC=y diff --git a/zephyr/projects/rex/rex.dts b/zephyr/projects/rex/rex.dts index eb7d0c6afb..cc5a4d8efe 100644 --- a/zephyr/projects/rex/rex.dts +++ b/zephyr/projects/rex/rex.dts @@ -27,6 +27,13 @@ pinctrl-names = "default"; }; +/* host interface */ +&espi0 { + status = "okay"; + pinctrl-0 = <&espi_lpc_gp46_47_51_52_53_54_55_57>; + pinctrl-names = "default"; +}; + /* ADC and GPIO alt-function specifications */ &adc0 { pinctrl-0 = <&adc0_chan0_gp45 |