diff options
author | Diana Z <dzigterman@chromium.org> | 2021-10-13 14:27:41 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-14 16:53:49 +0000 |
commit | 782c7b1f1e925c90105467f005d7afaac12e99ef (patch) | |
tree | c36896800907a4107ce284bd7d91baaf94832f8a | |
parent | d7cc7cb7b10480bbdd350669296db9e231b98bae (diff) | |
download | chrome-ec-782c7b1f1e925c90105467f005d7afaac12e99ef.tar.gz |
Zephyr: Increase default eSPI config
The ECOS repo allows eSPI to run in quad mode at the maximum speed.
Allow the same configuration here for zephyr.
BRANCH=None
BUG=b:195137794
TEST=on guybrush, verify bootblock sees us go to quad mode. With zephyr
ESPICFG fix applied, see that we're in quad mode with 33 MHz
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I18b4ea340dd97c2da4f984776a5b004a8db877ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3221771
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/shim/src/espi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/shim/src/espi.c b/zephyr/shim/src/espi.c index c064bd6157..12027a6399 100644 --- a/zephyr/shim/src/espi.c +++ b/zephyr/shim/src/espi.c @@ -534,10 +534,10 @@ int zephyr_shim_setup_espi(void) }; struct espi_cfg cfg = { - .io_caps = ESPI_IO_MODE_SINGLE_LINE, + .io_caps = ESPI_IO_MODE_QUAD_LINES, .channel_caps = ESPI_CHANNEL_VWIRE | ESPI_CHANNEL_PERIPHERAL | ESPI_CHANNEL_OOB, - .max_freq = 20, + .max_freq = 50, }; espi_dev = DEVICE_DT_GET(ESPI_NODE); |