zephyr/subsys/emul/espi/Kconfig
Aaron Massey 07ee466591 emul: Migrate all emulation use to use DT_HAS_
Remove all enabling of CONFIG_EMUL_.* in favor of automatically enabling
peripheral emulators based on the compatible string presence in the device
tree and the one true CONFIG_EMUL.

Zephyr has long since moved to a model of enabling drivers based on the
presence of their associated IC's compatible string in the final devicetree
overlay. There is no reason that emulators can't align in just the same
way, and probably ought to to remove superfluous enabling of configs.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-04-28 08:37:33 -05:00

25 lines
811 B
Plaintext

# Configuration options for eSPI emulators
# Copyright 2020 Google LLC
# SPDX-License-Identifier: Apache-2.0
config EMUL_ESPI_HOST
bool "Emulate an eSPI host"
help
This is an emulator of the generic eSPI host. The emulator supports basic host operations
- virtual wires and writing to port 80. It can be extended. Note: Because this emulator is
not tied to a particular DT node, it does not make use of the DT_HAS_<compat>_ENABLED
macro.
if EMUL_ESPI_HOST
config EMUL_ESPI_HOST_ACPI_SHM_REGION_SIZE
int "Host I/O peripheral port size for shared memory in emulator"
depends on ESPI_PERIPHERAL_ACPI_SHM_REGION
default 256
help
This is the port size used to mimic the Host and EC communication
over the shared memory region which returns the ACPI response data.
endif # EMUL_ESPI_HOST