diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-04-22 11:48:49 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-05-24 11:15:00 +0200 |
commit | 6919b4bf36357463b419c4b848b5778d7ba0874e (patch) | |
tree | 10dd61865ac643199893e7bbe679c3f55f36ba29 /include/configs/xilinx_zynqmp_zcu102.h | |
parent | a1207de0e6d6526e470361fac42f2c077b43a0ad (diff) | |
download | u-boot-6919b4bf36357463b419c4b848b5778d7ba0874e.zip u-boot-6919b4bf36357463b419c4b848b5778d7ba0874e.tar.gz u-boot-6919b4bf36357463b419c4b848b5778d7ba0874e.tar.bz2 |
ARM64: zynqmp: Add support for reading MAC from eeprom
Add support for on board eeprom with programmed MAC for using in u-boot
to have uniq address for every board.
Most of the time uniq MAC address is on a label on the board.
If address is not programmed use these command to program it.
On zcu102:
ZynqMP> mm.b 0
00000000: 00 ? 00
00000001: a0 ? 0a
00000002: 35 ? 35
00000003: 02 ? 02
00000004: 00 ? ef
00000005: 00 ? 67
00000006: 00 ? q
i2c dev 5
i2c write 0 54 20 6
i2c md 54 20
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/xilinx_zynqmp_zcu102.h')
-rw-r--r-- | include/configs/xilinx_zynqmp_zcu102.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/xilinx_zynqmp_zcu102.h b/include/configs/xilinx_zynqmp_zcu102.h index 30db2e4..81079fe 100644 --- a/include/configs/xilinx_zynqmp_zcu102.h +++ b/include/configs/xilinx_zynqmp_zcu102.h @@ -48,6 +48,12 @@ #define CONFIG_IDENT_STRING " Xilinx ZynqMP ZCU102" +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 +#define CONFIG_CMD_EEPROM +#define CONFIG_ZYNQ_EEPROM_BUS 5 +#define CONFIG_ZYNQ_GEM_EEPROM_ADDR 0x54 +#define CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET 0x20 + #define CONFIG_KERNEL_FDT_OFST_SIZE \ "kernel_offset=0x180000\0" \ "fdt_offset=0x100000\0" \ |