summaryrefslogtreecommitdiffstats
path: root/src/include/console/cfr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/console/cfr.h')
-rw-r--r--src/include/console/cfr.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/console/cfr.h b/src/include/console/cfr.h
new file mode 100644
index 000000000000..899fb3e46465
--- /dev/null
+++ b/src/include/console/cfr.h
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * CFR enums and structs for console
+ */
+
+#ifndef _CONSOLE_CFR_H_
+#define _CONSOLE_CFR_H_
+
+#include <drivers/option/cfr_frontend.h>
+
+const struct sm_object debug_level = SM_DECLARE_ENUM({
+ .opt_name = "debug_level",
+ .ui_name = "Console Log Level",
+ .ui_helptext = "Set the verbosity of the coreboot console output.",
+ .default_value = CONFIG_DEFAULT_CONSOLE_LOGLEVEL,
+ .values = (const struct sm_enum_value[]) {
+ { "Emergency", 0 },
+ { "Alert", 1 },
+ { "Critical", 2 },
+ { "Error", 3 },
+ { "Warning", 4 },
+ { "Notice", 5 },
+ { "Info", 6 },
+ { "Debug", 7 },
+ { "Spew", 8 },
+ SM_ENUM_VALUE_END },
+});
+
+#endif /* _CONSOLE_CFR_H_ */