mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Andreas Bießmann
parent
7bfaa0ceb8
commit
0daa2e1870
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user