summaryrefslogtreecommitdiff
path: root/test/genvif
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-02-23 17:15:37 -0700
committerCommit Bot <commit-bot@chromium.org>2022-02-25 01:38:05 +0000
commit6b3b00d4b1caedbe3af1dc4bf35183acc7833a29 (patch)
tree49767a22853b5fe23645c111ac7eeee6371dc158 /test/genvif
parent3636565a4e1f6a3b59bf867ae0944f7d4c416609 (diff)
downloadchrome-ec-6b3b00d4b1caedbe3af1dc4bf35183acc7833a29.tar.gz
genvif: add stub gpio.inc
Add a stub gpio.inc file for the genvif tool. This is required once the next CL removes #include "gpio.h" from i2c.h BUG=b:218856245 BRANCH=none TEST=test/genvif/genvif.h Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I8c50e1eb7de95044724b508fb52d3e8af35c6578 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489091 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/genvif')
-rw-r--r--test/genvif/src/board.h4
-rw-r--r--test/genvif/src/gpio.inc8
2 files changed, 12 insertions, 0 deletions
diff --git a/test/genvif/src/board.h b/test/genvif/src/board.h
index 8f175443d0..06122eeab9 100644
--- a/test/genvif/src/board.h
+++ b/test/genvif/src/board.h
@@ -7,3 +7,7 @@
#define PD_MAX_POWER_MW 65000
#define PD_MAX_CURRENT_MA 3250
#define PD_MAX_VOLTAGE_MV 20000
+
+/* Stubs required by the shared code */
+#define GPIO_PIN(port, index) (GPIO_##port, BIT(index))
+#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m)
diff --git a/test/genvif/src/gpio.inc b/test/genvif/src/gpio.inc
new file mode 100644
index 0000000000..6b96e08645
--- /dev/null
+++ b/test/genvif/src/gpio.inc
@@ -0,0 +1,8 @@
+/* -*- mode:c -*-
+ *
+ * Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Stub file only */ \ No newline at end of file