aboutsummaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorWenyou Yang2016-10-17 09:55:25 +0800
committerAndreas Bießmann2016-10-28 18:37:15 +0200
commit0daa2e1870762ebf0a9ae97a6a923e938faddbc4 (patch)
tree7a3e9656ceb7a12771f81647867582654125a796 /include/configs
parent7bfaa0ceb8d938df680223dde14ef2234ab69587 (diff)
board: sama5d2_xplained: Set 'ethaddr' got from AT24MAC
If 'ethaddr' is not set, we will get the ethernet address from AT24MAC, and set it to 'ethaddr' variable. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Songjun Wu <songjun.wu@microchip.com> Reviewed-by: Andreas Bießmann <biessmann@corscience.de>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/sama5d2_xplained.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/sama5d2_xplained.h b/include/configs/sama5d2_xplained.h
index 435956d75ad..7fb2bdcd4c2 100644
--- a/include/configs/sama5d2_xplained.h
+++ b/include/configs/sama5d2_xplained.h
@@ -15,6 +15,8 @@
#include "at91-sama5_common.h"
+#define CONFIG_MISC_INIT_R
+
/* SDRAM */
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_SDRAM_BASE ATMEL_BASE_DDRCS
@@ -54,6 +56,10 @@
#define CONFIG_DOS_PARTITION
#endif
+/* I2C */
+#define AT24MAC_ADDR 0x5c
+#define AT24MAC_REG 0x9a
+
/* Ethernet Hardware */
#define CONFIG_MACB
#define CONFIG_RMII