blob: 8385496b6206b47dd1611aca4f970a941e27ce91 (
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
|
# Copyright 2022 The ChromiumOS Authors
# 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_INT_SHARED
bool "USB-C ports share PD interrupts"
select HAS_TASK_PD_INT_SHARED
help
This enables processing of shared interrupts where multiple ports
share a single IRQ on the EC. Only one shared IRQ is supported,
but any combination of ports can be serviced by that one IRQ.
if PLATFORM_EC_USB_PD_INT_SHARED
config PLATFORM_EC_USB_PD_PORT_0_SHARED
bool "Port 0 IRQ is shared"
help
Enable handling of port 0 PD interrupts signalled by an IRQ that is
shared by every other port enabled in this section.
config PLATFORM_EC_USB_PD_PORT_1_SHARED
bool "Port 1 IRQ is shared"
help
Enable handling of port 1 PD interrupts signalled by an IRQ that is
shared by every other port enabled in this section.
config PLATFORM_EC_USB_PD_PORT_2_SHARED
bool "Port 2 IRQ is shared"
help
Enable handling of port 2 PD interrupts signalled by an IRQ that is
shared by every other port enabled in this section.
config PLATFORM_EC_USB_PD_PORT_3_SHARED
bool "Port 3 IRQ is shared"
help
Enable handling of port 3 PD interrupts signalled by an IRQ that is
shared by every other port enabled in this section.
endif # PLATFORM_EC_USB_PD_INT_SHARED
endif # PLATFORM_EC_USB_POWER_DELIVERY
endif # PLATFORM_EC_USBC
|