diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2018-09-18 10:35:44 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-28 20:22:40 -0400 |
commit | 59e43c32918c422bfed3762c7461e8a325223a81 (patch) | |
tree | 5de6c6a1d65b13eb0c39e0969bbc634070130cdb /board/atmel/sama5d3_xplained | |
parent | 559ff9e875ba72f3da9f3198dbd3afdfb3c48089 (diff) |
board: sama5d3_xplained: add pda detect call at init time
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>
Diffstat (limited to 'board/atmel/sama5d3_xplained')
-rw-r--r-- | board/atmel/sama5d3_xplained/sama5d3_xplained.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/atmel/sama5d3_xplained/sama5d3_xplained.c b/board/atmel/sama5d3_xplained/sama5d3_xplained.c index c47f63864b..289f8d8499 100644 --- a/board/atmel/sama5d3_xplained/sama5d3_xplained.c +++ b/board/atmel/sama5d3_xplained/sama5d3_xplained.c @@ -18,6 +18,8 @@ DECLARE_GLOBAL_DATA_PTR; +extern void at91_pda_detect(void); + #ifdef CONFIG_NAND_ATMEL void sama5d3_xplained_nand_hw_init(void) { @@ -72,6 +74,14 @@ void board_debug_uart_init(void) } #endif +#ifdef CONFIG_BOARD_LATE_INIT +int board_late_init(void) +{ + at91_pda_detect(); + return 0; +} +#endif + #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { |