]> git.sur5r.net Git - u-boot/commit
ARM64: zynqmp: Add support for reading MAC from eeprom
authorMichal Simek <michal.simek@xilinx.com>
Fri, 22 Apr 2016 09:48:49 +0000 (11:48 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 24 May 2016 09:15:00 +0000 (11:15 +0200)
commit6919b4bf36357463b419c4b848b5778d7ba0874e
tree10dd61865ac643199893e7bbe679c3f55f36ba29
parenta1207de0e6d6526e470361fac42f2c077b43a0ad
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>
board/xilinx/zynqmp/zynqmp.c
include/configs/xilinx_zynqmp_zcu102.h