summaryrefslogtreecommitdiff
path: root/board/atmel/sama5d2_xplained
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2017-03-23 14:26:26 +0800
committerSimon Glass <sjg@chromium.org>2017-05-09 12:14:15 -0600
commited03b1ba3c956648f7b4e42978d797c8f1b9f269 (patch)
tree0b5eae6589e78ec8a5bc1f7ec5afc65a6f06b0ab /board/atmel/sama5d2_xplained
parenta66e4d00df3e0ff64dc65d9618204a91095c27bb (diff)
downloadu-boot-ed03b1ba3c956648f7b4e42978d797c8f1b9f269.tar.gz
u-boot-ed03b1ba3c956648f7b4e42978d797c8f1b9f269.tar.bz2
u-boot-ed03b1ba3c956648f7b4e42978d797c8f1b9f269.zip
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: Wenyou Yang <wenyou.yang@atmel.com>
Diffstat (limited to 'board/atmel/sama5d2_xplained')
-rw-r--r--board/atmel/sama5d2_xplained/sama5d2_xplained.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c
index 5f38ebc2d2..c23cb0ecdd 100644
--- a/board/atmel/sama5d2_xplained/sama5d2_xplained.c
+++ b/board/atmel/sama5d2_xplained/sama5d2_xplained.c
@@ -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;