From 782c7b1f1e925c90105467f005d7afaac12e99ef Mon Sep 17 00:00:00 2001 From: Diana Z Date: Wed, 13 Oct 2021 14:27:41 -0600 Subject: 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 Change-Id: I18b4ea340dd97c2da4f984776a5b004a8db877ea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3221771 Commit-Queue: Jack Rosenthal Reviewed-by: Jack Rosenthal --- zephyr/shim/src/espi.c | 4 ++-- 1 file 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); -- cgit v1.2.1