提交 ed03b1ba 编写于 作者: W Wenyou Yang 提交者: Simon Glass

board: sama5d2_xplained: remove uart1 init

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: NWenyou Yang <wenyou.yang@atmel.com>
上级 a66e4d00
...@@ -115,6 +115,7 @@ void lcd_show_board_info(void) ...@@ -115,6 +115,7 @@ void lcd_show_board_info(void)
#endif /* CONFIG_LCD_INFO */ #endif /* CONFIG_LCD_INFO */
#endif /* CONFIG_LCD */ #endif /* CONFIG_LCD */
#ifdef CONFIG_DEBUG_UART_BOARD_INIT
static void board_uart1_hw_init(void) static void board_uart1_hw_init(void)
{ {
atmel_pio4_set_a_periph(AT91_PIO_PORTD, 2, 1); /* URXD1 */ atmel_pio4_set_a_periph(AT91_PIO_PORTD, 2, 1); /* URXD1 */
...@@ -123,7 +124,6 @@ static void board_uart1_hw_init(void) ...@@ -123,7 +124,6 @@ static void board_uart1_hw_init(void)
at91_periph_clk_enable(ATMEL_ID_UART1); at91_periph_clk_enable(ATMEL_ID_UART1);
} }
#ifdef CONFIG_DEBUG_UART_BOARD_INIT
void board_debug_uart_init(void) void board_debug_uart_init(void)
{ {
board_uart1_hw_init(); board_uart1_hw_init();
...@@ -135,8 +135,6 @@ int board_early_init_f(void) ...@@ -135,8 +135,6 @@ int board_early_init_f(void)
{ {
#ifdef CONFIG_DEBUG_UART #ifdef CONFIG_DEBUG_UART
debug_uart_init(); debug_uart_init();
#else
board_uart1_hw_init();
#endif #endif
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册