board: sama5d27_som1_ek: add pda detect call at init time
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 18 Sep 2018 07:35:45 +0000 (10:35 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:22:40 +0000 (20:22 -0400)
Call the PDA detection mechanism at boot time so we can have
the pda environment variable ready for use.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c

index d5ddf8d2eba1f9c722dfbb8162287ca19ecd4cd1..83634345f3d5ba87f093406892362c2439e5c14a 100644 (file)
@@ -15,6 +15,8 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/sama5d2.h>
 
+extern void at91_pda_detect(void);
+
 DECLARE_GLOBAL_DATA_PTR;
 
 static void board_usb_hw_init(void)
@@ -28,6 +30,7 @@ int board_late_init(void)
 #ifdef CONFIG_DM_VIDEO
        at91_video_show_board_info();
 #endif
+       at91_pda_detect();
        return 0;
 }
 #endif