summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/drallion/variants/drallion/Makefile.inc1
-rw-r--r--src/mainboard/google/drallion/variants/drallion/smbios.c24
2 files changed, 25 insertions, 0 deletions
diff --git a/src/mainboard/google/drallion/variants/drallion/Makefile.inc b/src/mainboard/google/drallion/variants/drallion/Makefile.inc
index ccbcb08da8..954c9d59cf 100644
--- a/src/mainboard/google/drallion/variants/drallion/Makefile.inc
+++ b/src/mainboard/google/drallion/variants/drallion/Makefile.inc
@@ -32,3 +32,4 @@ verstage-y += gpio.c
romstage-y += memory.c
ramstage-y += sku.c
+ramstage-y += smbios.c
diff --git a/src/mainboard/google/drallion/variants/drallion/smbios.c b/src/mainboard/google/drallion/variants/drallion/smbios.c
new file mode 100644
index 0000000000..45bd31d7b0
--- /dev/null
+++ b/src/mainboard/google/drallion/variants/drallion/smbios.c
@@ -0,0 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2019 Google LLC
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
+ * GNU General Public License for more details.
+ */
+
+#include <smbios.h>
+#include <variant/variant.h>
+
+smbios_enclosure_type smbios_mainboard_enclosure_type(void)
+{
+ return has_360_sensor_board() ?
+ SMBIOS_ENCLOSURE_CONVERTIBLE :
+ SMBIOS_ENCLOSURE_LAPTOP;
+}