summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9x5ek
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2018-10-08 09:54:27 +0300
committerTom Rini <trini@konsulko.com>2018-10-22 09:18:49 -0400
commit61b4dbb0d0c6dcb5a008e84e07a54e5b500a8b4b (patch)
tree09f2a73504f369493002a639682f6e1e93cb3ead /board/atmel/at91sam9x5ek
parent6482095de6d0a21e150fbce86ba351ce225afe03 (diff)
board: at91sam9x5: add environment var for cpu type
When booting and CPU is detected from cpuid, we also need an environment variable that will be used in boot commands to load the proper devicetree. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'board/atmel/at91sam9x5ek')
-rw-r--r--board/atmel/at91sam9x5ek/at91sam9x5ek.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
index 3bb5cd667e..0856786a0f 100644
--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c
+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c
@@ -20,6 +20,9 @@ DECLARE_GLOBAL_DATA_PTR;
/*
* Miscelaneous platform dependent initialisations
*/
+
+void at91_prepare_cpu_var(void);
+
#ifdef CONFIG_CMD_NAND
static void at91sam9x5ek_nand_hw_init(void)
{
@@ -85,6 +88,7 @@ int board_late_init(void)
#ifdef CONFIG_DM_VIDEO
at91_video_show_board_info();
#endif
+ at91_prepare_cpu_var();
return 0;
}
#endif