summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2020-06-01 19:45:54 +0800
committerFurquan Shaikh <furquan@google.com>2020-06-04 19:15:57 +0000
commitfba0ad84d18d5509598b7f047a16d038e6cb8f42 (patch)
tree31c9a29883e3d4d6c143e4144f1feb48718f4d59 /src/mainboard/google
parent268d25715cb5efbfdd134d4a438084495ac8ee21 (diff)
downloadcoreboot-fba0ad84d18d5509598b7f047a16d038e6cb8f42.tar.xz
mb/google/volteer: Create voxel variant
Create the voxel variant of the volteer reference board BUG=b:157879197 BRANCH=None TEST=util/abuild/abuild -p none -t google/volteer -x -a make sure the build includes GOOGLE_VOXEL Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: I8ba5412be211730db84675927c500238cb20ff3d Reviewed-on: https://review.coreboot.org/c/coreboot/+/41968 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/volteer/Kconfig2
-rw-r--r--src/mainboard/google/volteer/Kconfig.name4
-rw-r--r--src/mainboard/google/volteer/variants/voxel/Makefile.inc7
-rw-r--r--src/mainboard/google/volteer/variants/voxel/gpio.c36
-rw-r--r--src/mainboard/google/volteer/variants/voxel/include/variant/acpi/dptf.asl3
-rw-r--r--src/mainboard/google/volteer/variants/voxel/include/variant/ec.h8
-rw-r--r--src/mainboard/google/volteer/variants/voxel/include/variant/gpio.h10
-rw-r--r--src/mainboard/google/volteer/variants/voxel/overridetree.cb4
8 files changed, 74 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/Kconfig b/src/mainboard/google/volteer/Kconfig
index 76acb9a723..99a08a329d 100644
--- a/src/mainboard/google/volteer/Kconfig
+++ b/src/mainboard/google/volteer/Kconfig
@@ -72,6 +72,7 @@ config MAINBOARD_PART_NUMBER
default "Terrador" if BOARD_GOOGLE_TERRADOR
default "Trondo" if BOARD_GOOGLE_TRONDO
default "Volteer" if BOARD_GOOGLE_VOLTEER
+ default "Voxel" if BOARD_GOOGLE_VOXEL
config MAX_CPUS
int
@@ -103,6 +104,7 @@ config VARIANT_DIR
default "terrador" if BOARD_GOOGLE_TERRADOR
default "trondo" if BOARD_GOOGLE_TRONDO
default "volteer" if BOARD_GOOGLE_VOLTEER
+ default "voxel" if BOARD_GOOGLE_VOXEL
config VARIANT_HAS_MIPI_CAMERA
bool
diff --git a/src/mainboard/google/volteer/Kconfig.name b/src/mainboard/google/volteer/Kconfig.name
index 479b118e99..6920aafae1 100644
--- a/src/mainboard/google/volteer/Kconfig.name
+++ b/src/mainboard/google/volteer/Kconfig.name
@@ -25,3 +25,7 @@ config BOARD_GOOGLE_VOLTEER
bool "-> Volteer"
select BOARD_GOOGLE_BASEBOARD_VOLTEER
select VARIANT_HAS_MIPI_CAMERA
+
+config BOARD_GOOGLE_VOXEL
+ bool "-> Voxel"
+ select BOARD_GOOGLE_BASEBOARD_VOLTEER
diff --git a/src/mainboard/google/volteer/variants/voxel/Makefile.inc b/src/mainboard/google/volteer/variants/voxel/Makefile.inc
new file mode 100644
index 0000000000..c9a128d72a
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/Makefile.inc
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+SPD_SOURCES =
+
+bootblock-y += gpio.c
+
+ramstage-y += gpio.c
diff --git a/src/mainboard/google/volteer/variants/voxel/gpio.c b/src/mainboard/google/volteer/variants/voxel/gpio.c
new file mode 100644
index 0000000000..a54aeca16a
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/gpio.c
@@ -0,0 +1,36 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+#include <commonlib/helpers.h>
+
+/* Pad configuration in ramstage */
+static const struct pad_config gpio_table[] = {
+
+};
+
+const struct pad_config *variant_base_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(gpio_table);
+ return gpio_table;
+}
+
+/* Early pad configuration in bootblock */
+static const struct pad_config early_gpio_table[] = {
+
+};
+
+const struct pad_config *variant_early_gpio_table(size_t *num)
+{
+ *num = ARRAY_SIZE(early_gpio_table);
+ return early_gpio_table;
+}
+
+static const struct cros_gpio cros_gpios[] = {
+};
+
+const struct cros_gpio *variant_cros_gpios(size_t *num)
+{
+ *num = ARRAY_SIZE(cros_gpios);
+ return cros_gpios;
+}
diff --git a/src/mainboard/google/volteer/variants/voxel/include/variant/acpi/dptf.asl b/src/mainboard/google/volteer/variants/voxel/include/variant/acpi/dptf.asl
new file mode 100644
index 0000000000..189cafea4c
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/include/variant/acpi/dptf.asl
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/acpi/dptf.asl>
diff --git a/src/mainboard/google/volteer/variants/voxel/include/variant/ec.h b/src/mainboard/google/volteer/variants/voxel/include/variant/ec.h
new file mode 100644
index 0000000000..4a9a461191
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/include/variant/ec.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __VARIANT_EC_H__
+#define __VARIANT_EC_H__
+
+#include <baseboard/ec.h>
+
+#endif
diff --git a/src/mainboard/google/volteer/variants/voxel/include/variant/gpio.h b/src/mainboard/google/volteer/variants/voxel/include/variant/gpio.h
new file mode 100644
index 0000000000..0075826350
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/include/variant/gpio.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef VARIANT_GPIO_H
+#define VARIANT_GPIO_H
+
+#include <baseboard/gpio.h>
+
+/* Copied from baseboard and may need to change for the new variant. */
+
+#endif
diff --git a/src/mainboard/google/volteer/variants/voxel/overridetree.cb b/src/mainboard/google/volteer/variants/voxel/overridetree.cb
new file mode 100644
index 0000000000..75422d80bb
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/voxel/overridetree.cb
@@ -0,0 +1,4 @@
+chip soc/intel/tigerlake
+ device domain 0 on
+ end
+end