summaryrefslogtreecommitdiff
path: root/board/brask/usbc_config.h
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2021-08-24 11:25:05 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-25 06:11:05 +0000
commitdbcffbcfac595c694744bd888c4d5e5d9f269a68 (patch)
tree6ac701f8ea4f4ff03b31fc948f6d80c362c0f398 /board/brask/usbc_config.h
parent5180bf06996a5e4cba957b85a66da1491ddc9fcc (diff)
downloadchrome-ec-dbcffbcfac595c694744bd888c4d5e5d9f269a68.tar.gz
Brask: Initial the baseboard and board
The baseboard/brask and board/brask are copied from the brya. Two difference are make: 1. change BASEBOARD to brask in the build.mk to point to the brask. 2. move the generated-gpio.inc to the gpio.inc BUG=b:191637086 BRANCH=None TEST=Build passed with: 1.make BOARD=brask 2.make buildall Change-Id: I57439cffa770b3e838f372f60ed1670ac0b435d8 Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115806 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/brask/usbc_config.h')
-rw-r--r--board/brask/usbc_config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/board/brask/usbc_config.h b/board/brask/usbc_config.h
new file mode 100644
index 0000000000..5d08a446fb
--- /dev/null
+++ b/board/brask/usbc_config.h
@@ -0,0 +1,22 @@
+/* Copyright 2021 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.
+ */
+
+/* Brya board-specific USB-C configuration */
+
+#ifndef __CROS_EC_USBC_CONFIG_H
+#define __CROS_EC_USBC_CONFIG_H
+
+#define CONFIG_USB_PD_PORT_MAX_COUNT 3
+
+enum usbc_port {
+ USBC_PORT_C0 = 0,
+ USBC_PORT_C1,
+ USBC_PORT_C2,
+ USBC_PORT_COUNT
+};
+
+void config_usb_db_type(void);
+
+#endif /* __CROS_EC_USBC_CONFIG_H */