2020-09-10 17:39:44 +08:00
|
|
|
# NPCX eSPI driver configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2020 Nuvoton Technology Corporation.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config ESPI_NPCX
|
2020-12-07 13:45:26 +08:00
|
|
|
bool "Nuvoton NPCX embedded controller (EC) ESPI driver"
|
2020-09-10 17:39:44 +08:00
|
|
|
depends on SOC_FAMILY_NPCX
|
|
|
|
help
|
|
|
|
This option enables the Intel Enhanced Serial Peripheral Interface
|
|
|
|
(eSPI) for NPCX family of processors.
|
|
|
|
|
2020-12-10 13:28:48 +08:00
|
|
|
config ESPI_NPCX_PERIPHERAL_ACPI_SHD_MEM_SIZE
|
|
|
|
int "Host I/O peripheral port size for shared memory in npcx series"
|
|
|
|
depends on ESPI_NPCX || ESPI_PERIPHERAL_ACPI_SHM_REGION
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
This is the port size used by the Host and EC to communicate over
|
|
|
|
the shared memory region to return the ACPI response data. Please
|
|
|
|
notice the valid value in npcx ec series for this option is 8/16/32/
|
|
|
|
64/128/256/512/1024/2048/4096 bytes.
|
|
|
|
|
2020-12-11 13:27:55 +08:00
|
|
|
config ESPI_NPCX_PERIPHERAL_HOST_CMD_PARAM_SIZE
|
|
|
|
int "Host I/O peripheral port size for ec host command in npcx series"
|
|
|
|
depends on ESPI_NPCX || ESPI_PERIPHERAL_EC_HOST_CMD
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
This is the port size used by the Host and EC to communicate over
|
|
|
|
the shared memory region to return the host command parameter data.
|
|
|
|
Please notice the valid value in npcx ec series for this option is
|
|
|
|
8/16/32/64/128/256/512/1024/2048/4096 bytes.
|
|
|
|
|
2022-04-27 16:42:37 +08:00
|
|
|
config ESPI_NPCX_BYPASS_CH_ENABLE_FATAL_ERROR
|
|
|
|
bool
|
|
|
|
depends on SOC_SERIES_NPCX7 || SOC_SERIES_NPCX9
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Workaround the issue documented in NPCX99nF errata rev1_2, No.3.10.
|
|
|
|
Enabling an eSPI channel during an eSPI transaction might
|
|
|
|
(with low probability) cause the eSPI_SIF module to transition to
|
|
|
|
a wrong state and therefore response with FATAL_ERROR on an incoming
|
|
|
|
transaction.
|
|
|
|
|
2022-10-14 15:45:03 +08:00
|
|
|
config ESPI_NPCX_PERIPHERAL_DEBUG_PORT_80_MULTI_BYTE
|
|
|
|
bool "Host can write 1/2/4 bytes of Port80 data in a eSPI transaction"
|
|
|
|
depends on SOC_SERIES_NPCX9 && ESPI_PERIPHERAL_DEBUG_PORT_80
|
|
|
|
help
|
|
|
|
EC can accept 1/2/4 bytes of Port 80 data written from the Host in an
|
|
|
|
eSPI transaction.
|
|
|
|
|
2022-12-06 14:06:24 +08:00
|
|
|
config ESPI_NPCX_PERIPHERAL_DEBUG_PORT_80_RING_BUF_SIZE
|
|
|
|
int "Debug Port80 ring buffer size"
|
|
|
|
depends on ESPI_NPCX_PERIPHERAL_DEBUG_PORT_80_MULTI_BYTE
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
The size of the ring buffer in byte used by the Port80 ISR to store
|
|
|
|
Postcodes from Host.
|
|
|
|
|
2020-09-10 17:39:44 +08:00
|
|
|
# The default value 'y' for the existing options if ESPI_NPCX is selected.
|
|
|
|
if ESPI_NPCX
|
|
|
|
|
|
|
|
config ESPI_OOB_CHANNEL
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ESPI_PERIPHERAL_8042_KBC
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ESPI_PERIPHERAL_HOST_IO
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ESPI_PERIPHERAL_DEBUG_PORT_80
|
|
|
|
default y
|
|
|
|
|
2020-12-10 13:28:48 +08:00
|
|
|
config ESPI_PERIPHERAL_EC_HOST_CMD
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ESPI_PERIPHERAL_ACPI_SHM_REGION
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ESPI_PERIPHERAL_CUSTOM_OPCODE
|
|
|
|
default y
|
|
|
|
|
2020-09-10 17:39:44 +08:00
|
|
|
endif #ESPI_NPCX
|