blob: bc654f3274955aaf3755290ab7e829424f941140 (
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
|
# Copyright 2022 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.
if PLATFORM_EC_USBC
if PLATFORM_EC_USB_POWER_DELIVERY
menuconfig PLATFORM_EC_USB_PD_CONSOLE_CMD
bool "Enable USB PD console commands"
default y if PLATFORM_EC_USB_PD_ALT_MODE_DFP
help
Enables various USB-C PD related console commands.
if PLATFORM_EC_USB_PD_CONSOLE_CMD
config PLATFORM_EC_CONSOLE_CMD_USB_PD_PE
bool "Console command: pe"
default y
help
This command dumps information about the USB PD alternate mode options
discovered from the partner device. It can be useful for debugging.
Example: pe 1 dump
IDENT SOP:
[ID Header] 2c000bda :: AMA, VID:0bda
[Cert Stat] 00000000
[2] 00000209 [3] 11000f09
IDENT SOP':
[ID Header] 1c000489 :: PCable, VID:0489
[Cert Stat] 000001c6
[2] f6810000 [3] 11082051
SVID[0]: ff01 MODES: [1] 000c0045
MODE[1]: svid:ff01 caps:000c0045
config PLATFORM_EC_CONSOLE_CMD_USB_PD_CABLE
bool "Console command: pdcable"
default y
help
This commands shows the USB cable charactistics as detected from the
device. It can be useful for debugging problems with cables and the
device's response to them.
Example: pdcable 1
Cable Type: Passive
Cable Rev: 1.0
Connector Type: 2
Cable Current: 5A
USB Superspeed Signaling support: 1
Rounded support: No
Optical cable: No
Retimer support: No
Link training: Bi-directional
Thunderbolt cable type: Passive
endif # PLATFORM_EC_USB_PD_CONSOLE_CMD
endif # PLATFORM_EC_USB_POWER_DELIVERY
endif # PLATFORM_EC_USBC
|