board: atmel: sama5d2_xplained: fix the missing pin config of SDMMC0
authorWenyou Yang <wenyou.yang@atmel.com>
Mon, 11 Apr 2016 06:07:17 +0000 (14:07 +0800)
committerAndreas Bießmann <andreas@biessmann.org>
Tue, 24 May 2016 06:08:35 +0000 (08:08 +0200)
Fix the missing pin config of the SDMMC0 interface.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
board/atmel/sama5d2_xplained/sama5d2_xplained.c

index 10edf28..04422ce 100644 (file)
@@ -171,6 +171,7 @@ static void board_sdhci0_hw_init(void)
        atmel_pio4_set_a_periph(AT91_PIO_PORTA, 9, 0);  /* SDMMC0_DAT7 */
        atmel_pio4_set_a_periph(AT91_PIO_PORTA, 10, 0); /* SDMMC0_RSTN */
        atmel_pio4_set_a_periph(AT91_PIO_PORTA, 11, 0); /* SDMMC0_VDDSEL */
+       atmel_pio4_set_a_periph(AT91_PIO_PORTA, 13, 0); /* SDMMC0_CD */
 
        at91_periph_clk_enable(ATMEL_ID_SDMMC0);
        at91_enable_periph_generated_clk(ATMEL_ID_SDMMC0,