Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80f76c54 authored by ben.nizette@iinet.net.au's avatar ben.nizette@iinet.net.au Committed by Haavard Skinnemoen
Browse files

[AVR32] Fix duplicate clock index in at32ap machine code



There's a duplicate clock index between USART0 and USART1 which may be
causing system crashes when USART0 is used.  Change the USART0 index
to '3', indicating the clock that is actually used by USART0.

Signed-off-by: default avatarBen Nizette <ben@niasdigital.com>
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent 13871221
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -690,7 +690,7 @@ static struct resource atmel_usart0_resource[] = {
	IRQ(6),
};
DEFINE_DEV_DATA(atmel_usart, 0);
DEV_CLK(usart, atmel_usart0, pba, 4);
DEV_CLK(usart, atmel_usart0, pba, 3);

static struct atmel_uart_data atmel_usart1_data = {
	.use_dma_tx	= 1,