aboutsummaryrefslogtreecommitdiff
path: root/board/xilinx
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-10-14 17:08:14 +0200
committerMichal Simek <michal.simek@xilinx.com>2020-10-27 08:13:32 +0100
commit83594f3c01c1afb765f8e2b08feea10f24c01d7f (patch)
tree561cf1696a81a2dd33156dc6ac8ed3b596ab3979 /board/xilinx
parent13d1ca8742ab714d4238f7b1598931bb6aaa1ea4 (diff)
downloadu-boot-83594f3c01c1afb765f8e2b08feea10f24c01d7f.zip
u-boot-83594f3c01c1afb765f8e2b08feea10f24c01d7f.tar.gz
u-boot-83594f3c01c1afb765f8e2b08feea10f24c01d7f.tar.bz2
xilinx: common: Move ZYNQ_GEM_I2C_MAC_OFFSET to board Kconfig
There is no reason to have ZYNQ specific Kconfig macro in generic location to be visible for all other SoCs. That's why move it to Xilinx common location to be visible only for us. Also introduce new bool entry ZYNQ_MAC_IN_EEPROM to have also an option to disable it or enable. This has connection to code which is reading the whole content of i2c and also work with the rest of date not just with MAC address. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r--board/xilinx/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/board/xilinx/Kconfig b/board/xilinx/Kconfig
index c80d0a8..01d7f8e 100644
--- a/board/xilinx/Kconfig
+++ b/board/xilinx/Kconfig
@@ -56,3 +56,20 @@ config BOOT_SCRIPT_OFFSET
default 0x7F80000 if ARCH_VERSAL
help
Specifies distro boot script offset in NAND/NOR flash.
+
+config ZYNQ_MAC_IN_EEPROM
+ bool "Reading MAC address from EEPROM"
+ help
+ Enable this option if your MAC address is saved in eeprom and
+ xlnx,eeprom DT property in chosen node points to it.
+
+if ZYNQ_MAC_IN_EEPROM
+
+config ZYNQ_GEM_I2C_MAC_OFFSET
+ hex "Set the I2C MAC offset"
+ default 0x0
+ depends on DM_I2C
+ help
+ Set the MAC offset for i2C.
+
+endif