[U-Boot] [PATCH] ARM: zynq: zybo: Enabling reading MAC address from EEPROM
Michal Simek
michal.simek at xilinx.com
Thu Mar 31 10:31:17 CEST 2016
From: Michal Simek <monstr at monstr.eu>
Zybo has on board I2C EEPROM which contains preprogrammed MAC address.
Signed-off-by: Michal Simek <monstr at monstr.eu>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
include/configs/zynq_zybo.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/zynq_zybo.h b/include/configs/zynq_zybo.h
index 0882fe36bd82..637b1c5ffe91 100644
--- a/include/configs/zynq_zybo.h
+++ b/include/configs/zynq_zybo.h
@@ -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
--
1.9.1
More information about the U-Boot
mailing list