summaryrefslogtreecommitdiff
path: root/board/guybrush/board.h
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2020-11-20 15:47:56 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-29 01:32:59 +0000
commit4ae3b09ef84dbea4d5936da07c7633ed7df1a0c2 (patch)
treec8147bd1dd415a9058b45c2da50598f398db51e3 /board/guybrush/board.h
parentd0775dff769aceae002671c9d72a9a9823aedbfe (diff)
downloadchrome-ec-4ae3b09ef84dbea4d5936da07c7633ed7df1a0c2.tar.gz
guybrush: initial EC board setup
Create guybrush skeleton build. Minimal configuration required to build. BUG=b:173820614 BRANCH=none TEST=make -j BOARD=guybrush Change-Id: I1e906da42abc565941e6e7e9ca2c79462556ce09 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552855 Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/guybrush/board.h')
-rw-r--r--board/guybrush/board.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/board/guybrush/board.h b/board/guybrush/board.h
new file mode 100644
index 0000000000..62429e7ee0
--- /dev/null
+++ b/board/guybrush/board.h
@@ -0,0 +1,58 @@
+/* Copyright 2020 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.
+ */
+
+/* Guybrush board configuration */
+
+#ifndef __CROS_EC_BOARD_H
+#define __CROS_EC_BOARD_H
+
+/* Baseboard features */
+#include "baseboard.h"
+
+/* Optional features */
+#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
+
+/* Config options automatically enabled, re-enable once support added */
+#undef CONFIG_ADC
+#undef CONFIG_SWITCH
+#undef CONFIG_SPI_FLASH
+#undef CONFIG_SUPPORT_CHIP_HIBERNATION
+
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 4096
+
+/*
+ * Macros for GPIO signals used in common code that don't match the
+ * schematic names. Signal names in gpio.inc match the schematic and are
+ * then redefined here to so it's more clear which signal is being used for
+ * which purpose.
+ */
+#define GPIO_LID_OPEN GPIO_EC_LID_OPEN
+#define GPIO_WP_L GPIO_EC_WP_L
+
+/* Motion sensing drivers */
+
+/* Keyboard features */
+
+/* Sensors */
+
+/* USB Type C and USB PD defines */
+
+/* USB Type A Features */
+
+/* BC 1.2 */
+
+/* Volume Button feature */
+
+/* Fan features */
+
+#ifndef __ASSEMBLER__
+
+#include "gpio_signal.h"
+#include "registers.h"
+
+#endif /* !__ASSEMBLER__ */
+
+#endif /* __CROS_EC_BOARD_H */