From d4d278da0a2df2a236c2b91f9a9656d20e13fe5a Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 17 Dec 2020 12:12:59 +0200 Subject: [PATCH] edac: Add Zephyr EDAC configuration Add Kconfig for EDAC. Signed-off-by: Andrei Emeltchenko --- drivers/CMakeLists.txt | 1 + drivers/Kconfig | 2 ++ drivers/edac/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 drivers/edac/Kconfig diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 03aed8fa953..284fe0c4760 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -53,3 +53,4 @@ add_subdirectory_ifdef(CONFIG_ENTROPY_HAS_DRIVER entropy) add_subdirectory_ifdef(CONFIG_SYS_CLOCK_EXISTS timer) add_subdirectory_ifdef(CONFIG_NEURAL_NET_ACCEL neural_net) add_subdirectory_ifdef(CONFIG_PTP_CLOCK ptp_clock) +add_subdirectory_ifdef(CONFIG_EDAC edac) diff --git a/drivers/Kconfig b/drivers/Kconfig index f544db0b6ee..079790875c1 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -107,4 +107,6 @@ source "drivers/virtualization/Kconfig" source "drivers/psci/Kconfig" +source "drivers/edac/Kconfig" + endmenu diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig new file mode 100644 index 00000000000..14595807179 --- /dev/null +++ b/drivers/edac/Kconfig @@ -0,0 +1,36 @@ +# Copyright (c) 2020 Intel Corp. +# SPDX-License-Identifier: Apache-2.0 +# +# EDAC configuration options + +menuconfig EDAC + bool "Error Detection and Correction (EDAC) Drivers" + help + Enable Error Detection and Correction (EDAC) driver. + +if EDAC + +config EDAC_ERROR_INJECT + bool "Enable EDAC Error Injection mechanism" + help + Enable Error injection capability for test error checking + and reporting. Should not be enabled in production system. + +config EDAC_SHELL + bool "Enable EDAC Shell" + depends on SHELL + default y if SHELL + help + Enable EDAC shell for debugging EDAC. + +config EDAC_IBECC + bool "In-Band ECC (IBECC)" + depends on X86 + help + This option selects In-Band ECC (IBECC) IP support. + +module = EDAC +module-str = edac +source "subsys/logging/Kconfig.template.log_config" + +endif #EDAC