summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_shi/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/drivers/cros_shi/Kconfig')
-rw-r--r--zephyr/drivers/cros_shi/Kconfig11
1 files changed, 4 insertions, 7 deletions
diff --git a/zephyr/drivers/cros_shi/Kconfig b/zephyr/drivers/cros_shi/Kconfig
index 3b93ad48ee..ebcd937c7d 100644
--- a/zephyr/drivers/cros_shi/Kconfig
+++ b/zephyr/drivers/cros_shi/Kconfig
@@ -2,19 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-if PLATFORM_EC_HOST_INTERFACE_SHI
-
config CROS_SHI_NPCX
bool
+ depends on SOC_FAMILY_NPCX
+ depends on PLATFORM_EC_HOST_INTERFACE_SHI
default y
- depends on DT_HAS_NUVOTON_NPCX_CROS_SHI_ENABLED
help
This option enables Serial Host Interface driver for the NPCX family
of processors. This is used for host-command communication on the
platform which AP is ARM-based SoC.
if CROS_SHI_NPCX
-
config CROS_SHI_MAX_REQUEST
hex "Max data size for the version 3 request packet"
default 0x220
@@ -40,8 +38,9 @@ endif # CROS_SHI_NPCX
config CROS_SHI_IT8XXX2
bool
+ depends on SOC_FAMILY_RISCV_ITE
+ depends on PLATFORM_EC_HOST_INTERFACE_SHI
default y
- depends on DT_HAS_ITE_IT8XXX2_CROS_SHI_ENABLED
help
This option enables spi host interface driver which is required to
communicate with the EC when the CPU is the ARM processor.
@@ -59,5 +58,3 @@ config CROS_SHI_IT8XXX2_INIT_PRIORITY
configuration these pins to alt function of SHI.
endif # CROS_SHI_IT8XXX2
-
-endif # PLATFORM_EC_HOST_INTERFACE_SHI