summaryrefslogtreecommitdiff
path: root/board/discovery/board.c
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2012-04-12 19:59:38 -0700
committerDavid Hendricks <dhendrix@chromium.org>2012-04-25 16:12:57 -0700
commit340f1feb9b271700a795578e93183c343db1d35c (patch)
tree2bf7b7b36685c2194d5dd34349090c5728589bbb /board/discovery/board.c
parente21e5bd46a0452279e86b2918c54c5f0d2e04c97 (diff)
downloadchrome-ec-340f1feb9b271700a795578e93183c343db1d35c.tar.gz
stm32l: set SYSCFGEN for boards using stm32l
This sets the SYSCFGEN bit. Writes to external interrupt config registers (SYSCFG_EXTICRn) will not stick unless this is set. Signed-off-by: David Hendricks <dhendrix@chromium.org> BUG=none TEST=tested on daisy Change-Id: I9a92b424e9ac1f909206f89ed773248807619ab2
Diffstat (limited to 'board/discovery/board.c')
-rw-r--r--board/discovery/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/discovery/board.c b/board/discovery/board.c
index 6786716476..cda9af673d 100644
--- a/board/discovery/board.c
+++ b/board/discovery/board.c
@@ -51,6 +51,7 @@ void configure_board(void)
*/
STM32L_RCC_AHBENR |= 0x3f;
STM32L_RCC_AHBLPENR |= 0x0e;
+ STM32L_RCC_APB2ENR |= 0x01;
#if CONFIG_CONSOLE_UART == 1
/* Select Alternate function for USART1 on pins PA9/PA10 */