xilinx: common: Add support for DM_I2C zynq_board_read_rom_ethaddr()
authorMichal Simek <michal.simek@xilinx.com>
Mon, 21 Jan 2019 15:29:07 +0000 (16:29 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 14 Feb 2019 13:31:09 +0000 (14:31 +0100)
commit829e8c73dd75eb49c00a6916963ec7b0b1a771c5
tree65ed0e35b28810f8778ffa6bc63f1b433ec11520
parent9755e3db8b1223699954146dfb171df75ec89ab3
xilinx: common: Add support for DM_I2C zynq_board_read_rom_ethaddr()

It is much easier to point to eeprom which stores information like MAC
address directly via DT. eeprom which contains this information is
pointed by /chosen/xlnx,eeprom parameter.

For example:
        chosen {
                bootargs = "earlycon";
                stdout-path = "serial0:115200n8";
+               xlnx,eeprom = &eeprom;
        };

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c