From 655f7362e13ca49e3e13a822c916c7dc52573d74 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Wed, 15 Feb 2023 12:47:43 +0000 Subject: [PATCH] device: Add Kconfig options for D3COLD_SUPPORT and NO_S0IX_SUPPORT Add NO_S0IX_SUPPORT for boards that do not support, or do not want to support S0IX. As all the boards in the tree that do this, don't support D3Cold, add D3COLD_SUPPORT that defaults to `n` when NO_S0IX_SUPPORT is selected to disable D3Cold support. Signed-off-by: Sean Rhodes Change-Id: I03378cc7bb76fd65fcec81018e47f6288d437cd8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73042 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- src/device/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/device/Kconfig b/src/device/Kconfig index fdedf46100..d79634ffec 100644 --- a/src/device/Kconfig +++ b/src/device/Kconfig @@ -994,6 +994,19 @@ config XHCI_UTILS help Provides xHCI utility functions. +config NO_S0IX_SUPPORT + bool "Don't support S0IX suspend" + default n + help + Select if the board only supports S3 and/or S4 and not S0IX + +config D3COLD_SUPPORT + bool "Don't support D3Cold" + default n if NO_S0IX_SUPPORT + default y + help + Select if any devices don't support D3Cold state + source "src/device/dram/Kconfig" endmenu