diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-02-04 18:14:46 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-06 00:59:22 +0000 |
commit | 4eb7ace3ff728091862f400a26b569b2fb681b4c (patch) | |
tree | 83e30d0de8861838e774bf23ef7f1247b6144ef9 /baseboard | |
parent | cd30f7d73129fe4868187f0ab47f8bce71711dc9 (diff) | |
download | chrome-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')
-rw-r--r-- | baseboard/brya/baseboard.h | 20 | ||||
-rw-r--r-- | baseboard/brya/baseboard_usbc_config.h | 19 |
2 files changed, 39 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 */ diff --git a/baseboard/brya/baseboard_usbc_config.h b/baseboard/brya/baseboard_usbc_config.h new file mode 100644 index 0000000000..f8b9fab35c --- /dev/null +++ b/baseboard/brya/baseboard_usbc_config.h @@ -0,0 +1,19 @@ +/* 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 family-specific USB-C configuration */ + +#ifndef __CROS_EC_BASEBOARD_USBC_CONFIG_H +#define __CROS_EC_BASEBOARD_USBC_CONFIG_H + +#include "gpio_signal.h" + +/* Common definition for the USB PD interrupt handlers. */ +void bc12_interrupt(enum gpio_signal signal); +void ppc_interrupt(enum gpio_signal signal); +void retimer_interrupt(enum gpio_signal signal); +void tcpc_alert_event(enum gpio_signal signal); + +#endif /* __CROS_EC_BASEBOARD_USBC_CONFIG_H */ |