summaryrefslogtreecommitdiff
path: root/baseboard/brya/baseboard.h
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-02-04 18:14:46 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-06 00:59:22 +0000
commit4eb7ace3ff728091862f400a26b569b2fb681b4c (patch)
tree83e30d0de8861838e774bf23ef7f1247b6144ef9 /baseboard/brya/baseboard.h
parentcd30f7d73129fe4868187f0ab47f8bce71711dc9 (diff)
downloadchrome-ec-4eb7ace3ff728091862f400a26b569b2fb681b4c.tar.gz
brya: Update minimal bootable EC config
This provides a bare minimum bootable configuration for the brya EC using the latest GPIO definitions. The resulting image boots on the EVB and allows us to explore GPIOs. BRANCH=none BUG=b:173575131 TEST=booted on EVB and examined GPIOs Change-Id: I4eb95ec44d2400834630132334f52497dacc5691 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2677424
Diffstat (limited to 'baseboard/brya/baseboard.h')
-rw-r--r--baseboard/brya/baseboard.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/baseboard/brya/baseboard.h b/baseboard/brya/baseboard.h
index 9d3b1c653a..0b64063932 100644
--- a/baseboard/brya/baseboard.h
+++ b/baseboard/brya/baseboard.h
@@ -8,4 +8,24 @@
#ifndef __CROS_EC_BASEBOARD_H
#define __CROS_EC_BASEBOARD_H
+/*
+ * By default, enable all console messages excepted HC
+ */
+#define CC_DEFAULT (CC_ALL & ~(BIT(CC_HOSTCMD)))
+
+/* NPCX9 config */
+#define NPCX9_PWM1_SEL 1 /* GPIO C2 is used as PWM1. */
+/*
+ * This defines which pads (GPIO10/11 or GPIO64/65) are connected to
+ * the "UART1" (NPCX_UART_PORT0) controller when used for
+ * CONSOLE_UART.
+ */
+#define NPCX_UART_MODULE2 1 /* 1:GPIO64/65 for UART1 */
+
+#ifndef __ASSEMBLER__
+
+#include "baseboard_usbc_config.h"
+
+#endif /* !__ASSEMBLER__ */
+
#endif /* __CROS_EC_BASEBOARD_H */