summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2025-04-20 17:11:27 -0500
committerMatt DeVillier <matt.devillier@gmail.com>2025-04-23 14:17:36 +0000
commitada6b987663d2298a88a4751beaa4bef3a6eb9bd (patch)
treecd3de6a5df408099817051518a76ad8432de871b /src
parentf14aa06606759d60db98089458362b4f2135187d (diff)
downloadcoreboot-ada6b987663d2298a88a4751beaa4bef3a6eb9bd.tar.gz
coreboot-ada6b987663d2298a88a4751beaa4bef3a6eb9bd.tar.bz2
coreboot-ada6b987663d2298a88a4751beaa4bef3a6eb9bd.zip
nb/intel/sandybridge: Add CFR objects for existing options
Add a header with CFR objects for existing configuration options, so that supported boards can make use of them. Currently only one option for IGD UMA size, but others can be added as needed. Change-Id: I892ffcc74d36a266697cbc7ea3c8880db6b67f44 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87388 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/sandybridge/cfr.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/cfr.h b/src/northbridge/intel/sandybridge/cfr.h
new file mode 100644
index 000000000000..fafc80b80931
--- /dev/null
+++ b/src/northbridge/intel/sandybridge/cfr.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * CFR enums and structs for nb/sandybridge
+ */
+
+#ifndef NB_SANDYBRIDGE_CFR_H
+#define NB_SANDYBRIDGE_CFR_H
+
+#include <drivers/option/cfr_frontend.h>
+
+/* Values must match nb/sandybridge/Kconfig */
+enum {
+ IGD_UMA_SIZE_32MB,
+ IGD_UMA_SIZE_64MB,
+ IGD_UMA_SIZE_96MB,
+ IGD_UMA_SIZE_128MB,
+};
+
+/* IGD UMA Size */
+static const struct sm_object gfx_uma_size = SM_DECLARE_ENUM({
+ .opt_name = "gfx_uma_size",
+ .ui_name = "IGD UMA Size",
+ .ui_helptext = "Size of memory preallocated for internal graphics.",
+ .default_value = CONFIG_IGD_DEFAULT_UMA_INDEX,
+ .values = (const struct sm_enum_value[]) {
+ { " 32MB", IGD_UMA_SIZE_32MB },
+ { " 64MB", IGD_UMA_SIZE_64MB },
+ { " 96MB", IGD_UMA_SIZE_96MB },
+ { "128MB", IGD_UMA_SIZE_128MB },
+ SM_ENUM_VALUE_END },
+});
+
+#endif /* NB_SANDYBRIDGE_CFR_H */