Skip to content

Commit fff5d4c

Browse files
GTLin08cfriedt
authored andcommitted
drivers/espi: Add support for ESPI_PERIPHERAL_HOST_IO_PVT2 & PVT3
Add support the host I/O over eSPI peripheral channel for private channel2 and channel3. The default port number of ESPI_PERIPHERAL_HOST_IO_PVT2_PORT_NUM and ESPI_PERIPHERAL_HOST_IO_PVT3_PORT_NUM are 0x68 and 0x70. Signed-off-by: Tim Lin <[email protected]>
1 parent 1557a29 commit fff5d4c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

drivers/espi/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ config ESPI_PERIPHERAL_HOST_IO_PVT
112112
help
113113
Enables ACPI Host I/O over eSPI peripheral channel for private channel.
114114

115+
config ESPI_PERIPHERAL_HOST_IO_PVT2
116+
bool "Host I/O peripheral Private Channel 2"
117+
help
118+
Enables ACPI Host I/O over eSPI peripheral channel for private channel 2.
119+
120+
config ESPI_PERIPHERAL_HOST_IO_PVT3
121+
bool "Host I/O peripheral Private Channel 3"
122+
help
123+
Enables ACPI Host I/O over eSPI peripheral channel for private channel 3.
124+
115125
config ESPI_PERIPHERAL_HOST_IO_PVT_PORT_NUM
116126
hex "Host I/O peripheral Private Channel"
117127
depends on ESPI_PERIPHERAL_HOST_IO_PVT
@@ -122,6 +132,22 @@ config ESPI_PERIPHERAL_HOST_IO_PVT_PORT_NUM
122132
the same port. Also, ensure the port number selected doesn't clash
123133
with the existing ports (like 80, 92, 62 etc).
124134

135+
config ESPI_PERIPHERAL_HOST_IO_PVT2_PORT_NUM
136+
hex "Host I/O peripheral Private Channel 2"
137+
depends on ESPI_PERIPHERAL_HOST_IO_PVT2
138+
default 0x0068
139+
help
140+
This is the port number used by the Host and EC to communicate over
141+
the private channel 2.
142+
143+
config ESPI_PERIPHERAL_HOST_IO_PVT3_PORT_NUM
144+
hex "Host I/O peripheral Private Channel 3"
145+
depends on ESPI_PERIPHERAL_HOST_IO_PVT3
146+
default 0x0070
147+
help
148+
This is the port number used by the Host and EC to communicate over
149+
the private channel 3.
150+
125151
config ESPI_PERIPHERAL_DEBUG_PORT_80
126152
bool "Debug Port 80 peripheral"
127153
help

include/zephyr/drivers/espi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ enum espi_virtual_peripheral {
196196
ESPI_PERIPHERAL_HOST_IO,
197197
ESPI_PERIPHERAL_DEBUG_PORT80,
198198
ESPI_PERIPHERAL_HOST_IO_PVT,
199+
ESPI_PERIPHERAL_HOST_IO_PVT2,
200+
ESPI_PERIPHERAL_HOST_IO_PVT3,
199201
#if defined(CONFIG_ESPI_PERIPHERAL_EC_HOST_CMD)
200202
ESPI_PERIPHERAL_EC_HOST_CMD,
201203
#endif /* CONFIG_ESPI_PERIPHERAL_EC_HOST_CMD */

0 commit comments

Comments
 (0)