summaryrefslogtreecommitdiff
path: root/zephyr/emul/Kconfig
blob: 78e4a88a1da26d8b7ed8da8b8ee3d188a70638f5 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

rsource "retimer/Kconfig"
rsource "tcpc/Kconfig"

config EMUL_COMMON_I2C
	bool "Common handler for I2C emulator messages"
	help
	  Enable common code that is used by many emulators of devices on I2C
	  bus. It allows to share code for handling I2C messages, locking and
	  custom user handlers between these emulators.

config EMUL_SMART_BATTERY
	bool "Smart Battery emulator"
	default y
	depends on DT_HAS_ZEPHYR_SMART_BATTERY_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the Smart Battery emulator. This driver use emulated I2C bus.

config EMUL_BMA255
	bool "BMA255 emulator"
	default y
	depends on DT_HAS_ZEPHYR_BMA255_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the BMA255 emulator. This driver use emulated I2C bus.
	  It is used to test bma2x2 driver. Emulators API is available in
	  zephyr/include/emul/emul_bma255.h

config EMUL_BMA4XX
	bool "BMA4xx emulator"
	default y
	depends on DT_HAS_CROS_BMA4XX_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the BMA4xx emulator, used to test the bma4xx driver on an
	  emulated I2C bus; emulator API is in
	  zephyr/include/emul/emul_bma4xx.h.

config EMUL_BC12_DETECT_PI3USB9201
	bool "PI3USB9201 emulator"
	default y
	depends on DT_HAS_PERICOM_PI3USB9201_ENABLED
	help
	  Enable the PI3USB9201 emulator. PI3USB9201 is a BC1.2 charger
	  detector/advertiser. The emulator supports reading and writing the
	  4 I2C registers of the PI3USB9201 using the emulated I2C bus.

config EMUL_CHARGER_ISL9241
	bool "Renesas buck-boost battery charger emulator"
	default y
	depends on ZTEST && DT_HAS_INTERSIL_ISL9241_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the ISL9241 emulator.  This chip is a configurable buck-boost
	  battery charger which can communicate over I2C, and utilizes the
	  emulated I2C bus.

config EMUL_PPC_NX20P348X
	bool "NXP PPC emulator"
	default y
	depends on ZTEST && DT_HAS_NXP_NX20P348X_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the NX20P348X emulator, which covers both the NX20P3481 and
	  NX20P3483.  It is also register compatible with the SM5360A.  This
	  emulator makes use of the emulated I2C bus.

config EMUL_PPC_SYV682X
	bool "Silergy SYV682x PPC emulator"
	default y
	depends on DT_HAS_ZEPHYR_SYV682X_EMUL_ENABLED
	select PLATFORM_EC_USBC_PPC_SYV682X
	help
	  Enable the SYV682x emulator. SYV682 is a USB Type-C PPC. This driver
	  uses the emulated I2C bus.

config EMUL_BMI
	bool "BMI emulator"
	default y
	depends on DT_HAS_ZEPHYR_BMI_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the BMI emulator. This driver use emulated I2C bus.
	  It is used to test bmi 160 and 260 drivers. Emulators API is
	  available in zephyr/include/emul/emul_bmi.h

config EMUL_TCS3400
	bool "TCS3400 emulator"
	default y
	depends on DT_HAS_ZEPHYR_TCS3400_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the TCS3400 light sensor. This driver use emulated I2C bus.
	  It is used to test als_tcs3400 driver. It supports reading sensor
	  values which are correctly scaled using current gain and integration
	  time configuration, switching between IR and clear sensor and
	  clearing status register using clear interrupt registers. Other
	  TCS3400 registers support read and write with optional checking
	  of proper access to reserved bits. Emulators API is available in
	  zephyr/include/emul/emul_tcs3400.h

config EMUL_TUSB1064
	bool "TCS3400 emulator"
	default y
	depends on DT_HAS_ZEPHYR_TUSB1064_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the TUSB1064 usb mux. This driver use emulated I2C bus.
	  Emulator API is available in zephyr/include/emul/emul_tusb1064.h.

config EMUL_USB_MUX_AMD_FP6
	bool "AMD FP6 USB mux emulator"
	default y
	depends on ZTEST && DT_HAS_AMD_USBC_MUX_AMD_FP6_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable emulator for the AMD FP6 USB mux target.  This is a mux
	  which, while it resides on the SoC, presents itself to the EC as a
	  I2C target device

config EMUL_BB_RETIMER
	bool "BB retimer emulator"
	default y
	depends on ZTEST && DT_HAS_INTEL_JHL8040R_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the BB (Burnside Bridge) retimer emulator. This driver use
	  emulated I2C bus. It is used to test bb_retimer driver. It supports
	  reads and writes to all emulator registers. Emulators API is
	  available in zephyr/include/emul/emul_bb_retimer.h

config EMUL_KB_RAW
	bool "Raw keyboard emulator"
	default y
	depends on DT_HAS_CROS_EC_KB_RAW_EMUL_ENABLED
	help
	  Enable the raw keyboard emulator.

config EMUL_CROS_FLASH
	bool "Emulated flash driver for the Zephyr shim"
	default y
	depends on DT_HAS_CROS_EC_FLASH_EMUL_ENABLED
	select PLATFORM_EC_FLASH_CROS
	imply SYSTEM_FAKE
	help
	  This option enables the flash emulator for testing.

config EMUL_RTC
	bool "Emulated RTC driver for Zephyr shim"
	default y
	depends on DT_HAS_CROS_EC_RTC_EMUL_ENABLED
	help
	  This options enables the RTC emulator for testing.

config EMUL_RT9490
	bool "Rt9490 charger emulator"
	default y
	depends on DT_HAS_ZEPHYR_RT9490_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the RT9490 light sensor emulator. This driver use emulated I2C
	  bus. Emulators API is available in zephyr/include/emul/emul_rt9490.h.

config PWM_MOCK
	bool "Mock implementation of an PWM device"
	default y
	depends on DT_HAS_CROS_PWM_MOCK_ENABLED
	help
	  Enable the PWM mock. This driver is a pure mock and does nothing by
	  default.

config VCMP_MOCK
	bool "Generic voltage comparator device mock implementation"
	default y
	depends on DT_HAS_CROS_VCMP_MOCK_ENABLED
	select ADC
	help
	  Enable the generic voltage comparator mock driver.

config EMUL_PCT2075
	bool "PCT2075 emulator"
	default y
	depends on ZTEST && DT_HAS_NXP_PCT2075_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the PCT2075 temperature sensor emulator. It uses emulated I2C bus.
	  Emulator API is available in zephyr/include/emul/emul_pct2075.h.

config EMUL_ANX7452
	bool "ANX7452 retimer emulator"
	default y
	depends on ZTEST && DT_HAS_ANALOGIX_ANX7452_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the ANX7452(Analogix) retimer emulator. This driver use
	  emulated I2C bus. It is used to test anx7452 driver. It supports
	  reads and writes to all emulator registers. Emulators API is
	  available in zephyr/include/emul/emul_anx7452.h

config EMUL_PS8743
	bool "PS8743 emulator"
	default y
	depends on DT_HAS_ZEPHYR_PS8743_EMUL_ENABLED
	select EMUL_COMMON_I2C
	help
	  Enable the PS8743 usb mux. This driver use emulated I2C bus.
	  Emulator API is available in zephyr/include/emul/emul_ps8743.h.

rsource "Kconfig.ln9310"
rsource "Kconfig.lis2dw12"
rsource "Kconfig.i2c_mock"
rsource "Kconfig.isl923x"
rsource "Kconfig.clock_control"
rsource "Kconfig.sm5803"
rsource "Kconfig.sn5s330"