diff options
author | Scott Collyer <scollyer@google.com> | 2020-09-04 17:47:34 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 01:54:00 +0000 |
commit | 673975cfadc4dad13901418d5908dff6e987cfd2 (patch) | |
tree | 32ce410b384fa25ea45ff67dce69157ffef7ae13 | |
parent | 99a916b75fe02a4d457f6e5e09fe7e6181003dc6 (diff) | |
download | chrome-ec-673975cfadc4dad13901418d5908dff6e987cfd2.tar.gz |
quiche: Add EC console support
This CL adds the configs required to enable EC console.
BUG=b:148493929
BRANCH=None
TEST=verfied ec console works on quiche
> help
Known commands:
chan gpioget md sysinfo
crash gpioset panicinfo sysjump
flashinfo help reboot syslock
flashwp hibernate rw taskinfo
gettime history shmem timerinfo
HELP LIST = more info; HELP CMD = help on CMD.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: Ie78965483a1c70368e4375e63ddf33a423bb7776
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2399622
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | baseboard/honeybuns/baseboard.h | 23 | ||||
-rw-r--r-- | board/quiche/board.h | 11 |
2 files changed, 8 insertions, 26 deletions
diff --git a/baseboard/honeybuns/baseboard.h b/baseboard/honeybuns/baseboard.h index e67c1ebbeb..392539489c 100644 --- a/baseboard/honeybuns/baseboard.h +++ b/baseboard/honeybuns/baseboard.h @@ -14,10 +14,6 @@ /* TODO Define FLASH_PSTATE_LOCKED prior to building MP FW. */ #undef CONFIG_FLASH_PSTATE_LOCKED -/* - * TODO(b/148493929): Revisit these timer values once support for STM32G4 has - * been added. These macros are required to build the EC image. - */ /* 48 MHz SYSCLK clock frequency */ #define CPU_CLOCK 48000000 #define CONFIG_STM_HWTIMER32 @@ -29,17 +25,14 @@ /* Honeybuns platform does not have a lid switch */ #undef CONFIG_LID_SWITCH -/* Host communication */ - -/* Chipset config */ - -/* Common Keyboard Defines */ - -/* Sensors */ - -/* Common charger defines */ - -/* Common battery defines */ +/* USART and EC console configs */ +#undef CONFIG_UART_CONSOLE +#define CONFIG_UART_CONSOLE 3 +#define CONFIG_UART_TX_DMA +#undef CONFIG_UART_TX_BUF_SIZE +#define CONFIG_UART_TX_BUF_SIZE 2048 +#define CONFIG_UART_TX_DMA_CH STM32_DMAC_USART3_TX +#define CONFIG_UART_TX_DMA_PH DMAMUX_REQ_USART3_TX /* USB Type C and USB PD defines */ diff --git a/board/quiche/board.h b/board/quiche/board.h index 7a053e92ca..48422e7a50 100644 --- a/board/quiche/board.h +++ b/board/quiche/board.h @@ -14,23 +14,12 @@ /* Optional features */ #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ -#undef CONFIG_UART_TX_BUF_SIZE -#define CONFIG_UART_TX_BUF_SIZE 4096 - -/* Keyboard features */ - -/* Sensors */ - /* USB Type C and USB PD defines */ /* USB Type A Features */ /* BC 1.2 */ -/* Volume Button feature */ - -/* Fan features */ - #ifndef __ASSEMBLER__ |