summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_shi/Kconfig
blob: 0baa8a5d800e698086adbd6a7307ebdaaae68061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

menuconfig CROS_SHI_NPCX
	bool "Nuvoton NPCX Serial Host Interface driver for the Zephyr shim"
	depends on SOC_FAMILY_NPCX
	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
	help
	  This option indicates maximum data size for a version 3 request
	  packet. This must be big enough to handle a request header of host
	  command, flash write offset/size, and 512 bytes of flash data.

config CROS_SHI_MAX_RESPONSE
	hex "Max data size for the version 3 response packet"
	default 0x220
	help
	  This option indicates maximum data size for a version 3 response
	  packet. This must be big enough to handle a response header of host
	  command, flash read offset/size, and 512 bytes of flash data.

config CROS_SHI_NPCX_DEBUG
	bool "Enable SHI debug"
	help
	  print the debug messages for SHI module

endif # CROS_SHI_NPCX

config CROS_SHI_IT8XXX2
	bool "ITE it81202 spi host interface driver for Zephyr"
	depends on SOC_FAMILY_RISCV_ITE && AP_ARM
	default y if PLATFORM_EC_HOSTCMD
	help
	  This option enables spi host interface driver which is required to
	  communicate with the EC when the CPU is the ARM processor.

if CROS_SHI_IT8XXX2

config CROS_SHI_IT8XXX2_INIT_PRIORITY
	int "cros_shi it8xxx2 initialization priority"
	default 52
	help
	  This sets the it8xxx2 cros_shi driver initialization priority.
	  In the GPIO shim, the alt function of SHI will be configured
	  as GPIO input pin. So the priority of cros_shi driver must be
	  lower than CONFIG_PLATFORM_EC_GPIO_INIT_PRIORITY, and
	  configuration these pins to alt function of SHI.

endif # CROS_SHI_IT8XXX2