[PATCH 2/3] board: sam9x60_curiosity: add pda detect call at init time

Durai Manickam KR durai.manickamkr at microchip.com
Thu Jul 7 13:10:55 CEST 2022


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 at microchip.com>
---
 board/atmel/sam9x60_curiosity/sam9x60_curiosity.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
index d8f32c93b5..8cf67d148d 100644
--- a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
+++ b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c
@@ -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;
 }
 
-- 
2.25.1



More information about the U-Boot mailing list