diff options
Diffstat (limited to 'board/elm/board.c')
-rw-r--r-- | board/elm/board.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/elm/board.c b/board/elm/board.c index 0e08f0d6da..7ebf20225b 100644 --- a/board/elm/board.c +++ b/board/elm/board.c @@ -268,9 +268,8 @@ static void board_init(void) /* Update VBUS supplier */ usb_charger_vbus_change(0, !gpio_get_level(GPIO_USB_C0_VBUS_WAKE_L)); - /* Remap SPI2 to DMA channels 6 and 7 */ - REG32(STM32_DMA1_BASE + 0xa8) |= (1 << 20) | (1 << 21) | - (1 << 24) | (1 << 25); + /* Remap SPI2 to DMA channels 6 and 7 (0011) */ + STM32_DMA_CSELR(STM32_DMAC_CH6) |= (3 << 20) | (3 << 24); } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); |