summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-02-08 16:59:50 -0800
committerVincent Palatin <vpalatin@chromium.org>2012-02-08 17:03:30 -0800
commit4467fc3541728c43ce1b55c14b061e05b32c1b0a (patch)
tree6751ef57b921a51227ec336561db21fba50d8223
parent61e995edaa268d3ad51ed5d91a39cf6e5137715f (diff)
downloadchrome-ec-4467fc3541728c43ce1b55c14b061e05b32c1b0a.tar.gz
stm32l: use USART1 as console
The Daisy board will have the EC UART on the debug connector wired to USART1 (PA9/PA10 pins) Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=Run Discovery board with mini-servo attached to PA9/PA10 and see the traces. Change-Id: I97c59ba388fddb150ff6c76ec3317deedb567546
-rw-r--r--board/discovery/board.h2
-rw-r--r--chip/stm32l/config.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/discovery/board.h b/board/discovery/board.h
index 25d681a18b..72fca4690a 100644
--- a/board/discovery/board.h
+++ b/board/discovery/board.h
@@ -12,7 +12,7 @@
#define CPU_CLOCK 16000000
/* Use USART3 as console serial port */
-#define CONFIG_CONSOLE_UART 3
+#define CONFIG_CONSOLE_UART 1
#define USB_CHARGE_PORT_COUNT 0
diff --git a/chip/stm32l/config.h b/chip/stm32l/config.h
index 67ec0b09a9..9309fc54b5 100644
--- a/chip/stm32l/config.h
+++ b/chip/stm32l/config.h
@@ -20,7 +20,7 @@
#define CONFIG_IRQ_COUNT 45
/* Debug UART parameters for panic message */
-#define CONFIG_UART_ADDRESS 0x40004800
+#define CONFIG_UART_ADDRESS 0x40013800
#define CONFIG_UART_DR_OFFSET 0x04
#define CONFIG_UART_SR_OFFSET 0x00
#define CONFIG_UART_SR_TXEMPTY 0x80