Commit 05c7c009 authored by Adam Wujek's avatar Adam Wujek Committed by Adam Wujek

sw/petalinux/u-boot: read MAC from eeprom

Add support for axi i2c master.

i2c connected to PL (3rd i2c controller) address 0x51, offset 0xFA
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 27a5362e
CONFIG_PHY_XILINX=y
CONFIG_SYS_I2C_XILINX_XIIC=y
CONFIG_I2C_EEPROM=y
CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0xFA
CONFIG_SYS_I2C_EEPROM_ADDR=0x51
CONFIG_SYS_I2C_EEPROM_BUS=2
CONFIG_SYS_EEPROM_SIZE=256
CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=0
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=0
CONFIG_SYS_I2C_EEPROM_ADDR_LEN=1
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0
......@@ -34,7 +34,6 @@
CONSOLE_ARG \
PSSERIAL0 \
"nc=setenv stdout nc;setenv stdin nc;\0" \
"ethaddr=00:0a:35:00:22:01\0" \
"bootenv=uEnv.txt\0" \
"importbootenv=echo \"Importing environment from SD ...\"; " \
"env import -t ${loadbootenv_addr} $filesize\0" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment