summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/adv/board.c1
-rw-r--r--board/daisy/board.c7
-rw-r--r--board/discovery/board.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/board/adv/board.c b/board/adv/board.c
index ac7cb6e905..364cc59031 100644
--- a/board/adv/board.c
+++ b/board/adv/board.c
@@ -63,6 +63,7 @@ void configure_board(void)
* TODO: more fine-grained enabling for power saving
*/
STM32L_RCC_AHBENR |= 0x3f;
+ STM32L_RCC_APB2ENR |= 0x01;
/* Select Alternate function for USART2 on pins PA2/PA3 */
gpio_set_alternate_function(GPIO_A, (1<<2) | (1<<3), GPIO_ALT_USART);
diff --git a/board/daisy/board.c b/board/daisy/board.c
index f41373c033..35cf55452f 100644
--- a/board/daisy/board.c
+++ b/board/daisy/board.c
@@ -77,19 +77,18 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
void configure_board(void)
{
- /* Required to configure external IRQ lines (SYSCFG_EXTICRn) */
- STM32L_RCC_APB2ENR |= 1 << 0;
-
dma_init();
/* Enable all GPIOs clocks
* TODO: more fine-grained enabling for power saving
*/
STM32L_RCC_AHBENR |= 0x3f;
+ /* Required to configure external IRQ lines (SYSCFG_EXTICRn) */
+ /* FIXME: This seems to break USB download in U-Boot (?!?) */
+ STM32L_RCC_APB2ENR |= 1 << 0;
/* Enable SPI */
STM32L_RCC_APB2ENR |= (1<<12);
- /*| (1 << 0); - removed since this breaks USB download? */
/* SPI1 on pins PA4-7 (push-pull, no pullup/down, 10MHz) */
STM32L_GPIO_PUPDR_OFF(GPIO_A) &= ~((2 << (7 * 2)) |
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 */