summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/octopus/variants/garg/gpio.c10
-rw-r--r--src/mainboard/google/octopus/variants/garg/include/variant/sku.h30
-rw-r--r--src/mainboard/google/octopus/variants/garg/variant.c10
3 files changed, 34 insertions, 16 deletions
diff --git a/src/mainboard/google/octopus/variants/garg/gpio.c b/src/mainboard/google/octopus/variants/garg/gpio.c
index bcabac5001..eeeb4662e3 100644
--- a/src/mainboard/google/octopus/variants/garg/gpio.c
+++ b/src/mainboard/google/octopus/variants/garg/gpio.c
@@ -18,14 +18,7 @@
#include <boardid.h>
#include <gpio.h>
#include <soc/gpio.h>
-
-enum {
- SKU_1_2A2C = 1,
- SKU_9_HDMI = 9,
- SKU_17_LTE = 17,
- SKU_18_LTE_TS = 18,
- SKU_37_2A2C_360 = 37,
-};
+#include <variant/sku.h>
static const struct pad_config default_override_table[] = {
PAD_NC(GPIO_104, UP_20K),
@@ -83,6 +76,7 @@ const struct pad_config *variant_override_gpio_table(size_t *num)
switch (sku_id) {
case SKU_9_HDMI:
+ case SKU_19_HDMI_TS:
*num = ARRAY_SIZE(hdmi_override_table);
return hdmi_override_table;
case SKU_17_LTE:
diff --git a/src/mainboard/google/octopus/variants/garg/include/variant/sku.h b/src/mainboard/google/octopus/variants/garg/include/variant/sku.h
new file mode 100644
index 0000000000..432f3c54cd
--- /dev/null
+++ b/src/mainboard/google/octopus/variants/garg/include/variant/sku.h
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+#ifndef __MAINBOARD_SKU_H__
+#define __MAINBOARD_SKU_H__
+
+enum {
+ SKU_1_2A2C = 1,
+ SKU_9_HDMI = 9,
+ SKU_17_LTE = 17,
+ SKU_18_LTE_TS = 18,
+ SKU_19_HDMI_TS = 19,
+ SKU_20_2A2C_TS = 20,
+ SKU_37_2A2C_360 = 37,
+ SKU_38_2A2C_360_TS_NO_STYLUES = 38,
+};
+
+#endif /* __MAINBOARD_SKU_H__ */
diff --git a/src/mainboard/google/octopus/variants/garg/variant.c b/src/mainboard/google/octopus/variants/garg/variant.c
index 942ea5f3b4..f5f350a8f0 100644
--- a/src/mainboard/google/octopus/variants/garg/variant.c
+++ b/src/mainboard/google/octopus/variants/garg/variant.c
@@ -20,14 +20,7 @@
#include <baseboard/variants.h>
#include <delay.h>
#include <gpio.h>
-
-enum {
- SKU_1_2A2C = 1,
- SKU_9_HDMI = 9,
- SKU_17_LTE = 17,
- SKU_18_LTE_TS = 18,
- SKU_37_2A2C_360 = 37,
-};
+#include <variant/sku.h>
struct gpio_with_delay {
gpio_t gpio;
@@ -65,6 +58,7 @@ const char *mainboard_vbt_filename(void)
switch (sku_id) {
case SKU_9_HDMI:
+ case SKU_19_HDMI_TS:
return "vbt_garg_hdmi.bin";
default:
return "vbt.bin";