From 8704de934edc294c1efb3115cb8192bbc7f0dc65 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Thu, 19 Nov 2015 09:50:10 -0800 Subject: [PATCH] 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 Change-Id: Id984b63f8c0c2d5c042265fd86b3d0c71fd68e6f Reviewed-on: https://chromium-review.googlesource.com/313168 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Alec Berg --- board/snoball/board.h | 3 +++ 1 file changed, 3 insertions(+) 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