diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-11-19 09:50:10 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-19 18:14:27 -0800 |
commit | 8704de934edc294c1efb3115cb8192bbc7f0dc65 (patch) | |
tree | ca8b6abce0da4ae26a1f16929e419a2230741ded /board/snoball/board.h | |
parent | 06c2b877d61d210440ad4fffc44ebe58fe201915 (diff) | |
download | chrome-ec-8704de934edc294c1efb3115cb8192bbc7f0dc65.tar.gz |
snoball: Correct DMA UART channels
Snoball uses DMA2 + DMA3 for UART1 debug console. No changes are needed
to STM32_SYSCFG_CFGR1 since this is the register default config.
BUG=chrome-os-partner:47851
BRANCH=None
TEST=Boot snoball, verify EC console works in both directions.
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Id984b63f8c0c2d5c042265fd86b3d0c71fd68e6f
Reviewed-on: https://chromium-review.googlesource.com/313168
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/snoball/board.h')
-rw-r--r-- | board/snoball/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/snoball/board.h b/board/snoball/board.h index 1bbd5f7b26..55684fc093 100644 --- a/board/snoball/board.h +++ b/board/snoball/board.h @@ -13,6 +13,9 @@ /* the UART console is on USART1 (PA9/PA10) */ #define CONFIG_UART_CONSOLE 1 +/* Use DMA channels 2 + 3 (rather than default 4 + 5) */ +#define CONFIG_UART_TX_DMA_CH STM32_DMAC_CH2 +#define CONFIG_UART_RX_DMA_CH STM32_DMAC_CH3 #define CONFIG_USB_POWER_DELIVERY #define CONFIG_USB_PD_ALT_MODE |