]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: zybo: Enabling reading MAC address from EEPROM
authorMichal Simek <monstr@monstr.eu>
Sat, 13 Feb 2016 09:18:50 +0000 (10:18 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Apr 2016 18:28:37 +0000 (20:28 +0200)
Zybo has on board I2C EEPROM which contains preprogrammed MAC address.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/zynq_zybo.h

index 0882fe36bd82ef68b9515c0c265fc4015d673496..637b1c5ffe9134aeb7a1310db5003b49f2cb1a36 100644 (file)
@@ -17,6 +17,9 @@
 #define CONFIG_ZYNQ_I2C0
 #define CONFIG_ZYNQ_I2C1
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_CMD_EEPROM
+#define CONFIG_ZYNQ_GEM_EEPROM_ADDR    0x50
+#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0xFA
 #define CONFIG_DISPLAY
 #define CONFIG_I2C_EDID