X-Git-Url: https://git.librecmc.org/?p=oweals%2Fu-boot.git;a=blobdiff_plain;f=board%2Fatmel%2Fsama5d27_som1_ek%2Fsama5d27_som1_ek.c;h=376562cd0e7d0f368313aa4b283813af2b1097b3;hp=d805068ac97c1e0ddae3c16f25d674fc505343c5;hb=ef5a7438ac72798e82b9f8684bad935bcdd465e6;hpb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046 diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c index d805068ac9..376562cd0e 100644 --- a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c +++ b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -15,12 +16,16 @@ #include #include +extern void at91_pda_detect(void); + DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_CMD_USB static void board_usb_hw_init(void) { - atmel_pio4_set_pio_output(AT91_PIO_PORTB, 10, 1); + atmel_pio4_set_pio_output(AT91_PIO_PORTA, 27, 1); } +#endif #ifdef CONFIG_BOARD_LATE_INIT int board_late_init(void) @@ -28,6 +33,7 @@ int board_late_init(void) #ifdef CONFIG_DM_VIDEO at91_video_show_board_info(); #endif + at91_pda_detect(); return 0; } #endif @@ -35,7 +41,7 @@ int board_late_init(void) #ifdef CONFIG_DEBUG_UART_BOARD_INIT 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, ATMEL_PIO_PUEN_MASK); /* URXD1 */ atmel_pio4_set_a_periph(AT91_PIO_PORTD, 3, 0); /* UTXD1 */ at91_periph_clk_enable(ATMEL_ID_UART1);