[U-Boot] [PATCH 2/2] ARM: zynq: zybo: Enabling reading MAC address from EEPROM

Michal Simek monstr at monstr.eu
Wed Feb 24 16:38:01 CET 2016


Zybo has on board I2C EEPROM which contains preprogrammed MAC address.

Signed-off-by: Michal Simek <monstr at monstr.eu>
---

 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