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 <sean@starlabs.systems>
Change-Id: I03378cc7bb76fd65fcec81018e47f6288d437cd8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73042
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
diff --git a/src/device/Kconfig b/src/device/Kconfig
index fdedf46..d79634f 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -994,6 +994,19 @@
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