board: sam9x60_curiosity: add pda detect call at init time
authorDurai Manickam KR <durai.manickamkr@microchip.com>
Thu, 7 Jul 2022 11:10:55 +0000 (16:40 +0530)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 19 Sep 2022 06:50:17 +0000 (09:50 +0300)
Call the PDA detection mechanism at boot time so that we can
have the pda environment variable ready for use.

Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
board/atmel/sam9x60_curiosity/sam9x60_curiosity.c

index d8f32c9..8cf67d1 100644 (file)
@@ -19,6 +19,8 @@
 #include <asm/io.h>
 #include <asm/mach-types.h>
 
+extern void at91_pda_detect(void);
+
 DECLARE_GLOBAL_DATA_PTR;
 
 void at91_prepare_cpu_var(void);
@@ -27,6 +29,8 @@ int board_late_init(void)
 {
        at91_prepare_cpu_var();
 
+       at91_pda_detect();
+
        return 0;
 }