blob: fc4b1bcda4050d79036184d053c57493754e5f81 (
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
|
# 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.
DT_COMPAT_TCPCI_EMUL := cros,tcpci-emul
menuconfig EMUL_TCPCI
bool "TCPCI emulator"
default $(dt_compat_enabled,$(DT_COMPAT_TCPCI_EMUL))
depends on I2C_EMUL
help
Enable the TCPCI emulator. This driver uses the emulated I2C bus.
It is used to test tcpci code. It supports reads and writes to all
emulator registers. Generic TCPCI emulator can be used as the base
for specific TCPC device emulator that follow TCPCI specification.
TCPCI emulator API is available in zephyr/include/emul/emul_tcpci.h
if EMUL_TCPCI
module = TCPCI_EMUL
module-str = tcpci_emul
source "subsys/logging/Kconfig.template.log_config"
config EMUL_PS8XXX
bool "Parade PS8XXX emulator"
help
Enable emulator for PS8XXX family of TCPC. This emulator is extenstion
for TCPCI emulator. PS8XXX specific API is available in
zephyr/include/emul/emul_tcpci.h
config EMUL_CHARGER
bool "USB-C charger emulator"
help
Enable USB-C charger emulator which may be attached to TCPCI emulator.
API of charger emulator is available in
zephyr/include/emul/emul_charger.h
endif # EMUL_TCPCI
|