summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/zephyr_shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/zephyr_shim.h')
-rw-r--r--zephyr/shim/include/zephyr_shim.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/zephyr/shim/include/zephyr_shim.h b/zephyr/shim/include/zephyr_shim.h
new file mode 100644
index 0000000000..3e12568155
--- /dev/null
+++ b/zephyr/shim/include/zephyr_shim.h
@@ -0,0 +1,35 @@
+/* Copyright 2020 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __BOARD_H
+#define __BOARD_H
+
+#include <zephyr/devicetree.h>
+#include "common.h"
+
+/* Included shimed version of gpio signal. */
+#include "gpio_signal.h"
+
+/* Include shimmed version of power signal */
+#include "power/power.h"
+
+/* Include board specific i2c mapping if I2C is enabled. */
+#if defined(CONFIG_I2C)
+#include "i2c/i2c.h"
+#endif
+
+/* Include board specific sensor configuration if motionsense is enabled */
+#ifdef CONFIG_MOTIONSENSE
+#include "motionsense_sensors_defs.h"
+#endif
+
+/*
+ * Should generate enums for each charger.
+ */
+#ifdef CONFIG_PLATFORM_EC_OCPC
+#include "charger_enum.h"
+#endif
+
+#endif /* __BOARD_H */