]> git.sur5r.net Git - u-boot/commitdiff
board: sama5d2_xplained: remove uart1 init
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 23 Mar 2017 06:26:26 +0000 (14:26 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 9 May 2017 18:14:15 +0000 (12:14 -0600)
Due to the pin configuration and clock enabling is handling by the
driver, remove the unneeded hardcode uart1 init during
board_early_init_f stage.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
board/atmel/sama5d2_xplained/sama5d2_xplained.c

index 5f38ebc2d26fc3c61a9946d607939c8c67d17974..c23cb0ecdd96e547d4d6589ab75e5e7c29c5ab26 100644 (file)
@@ -115,6 +115,7 @@ void lcd_show_board_info(void)
 #endif /* CONFIG_LCD_INFO */
 #endif /* CONFIG_LCD */
 
+#ifdef CONFIG_DEBUG_UART_BOARD_INIT
 static void board_uart1_hw_init(void)
 {
        atmel_pio4_set_a_periph(AT91_PIO_PORTD, 2, 1);  /* URXD1 */
@@ -123,7 +124,6 @@ static void board_uart1_hw_init(void)
        at91_periph_clk_enable(ATMEL_ID_UART1);
 }
 
-#ifdef CONFIG_DEBUG_UART_BOARD_INIT
 void board_debug_uart_init(void)
 {
        board_uart1_hw_init();
@@ -135,8 +135,6 @@ int board_early_init_f(void)
 {
 #ifdef CONFIG_DEBUG_UART
        debug_uart_init();
-#else
-       board_uart1_hw_init();
 #endif
 
        return 0;