diff options
author | Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> | 2022-10-17 15:18:18 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-11-22 15:02:07 +0100 |
commit | ba74bcf3e07b10ffebf42e72a656b420215b5a2e (patch) | |
tree | eb3e41f768bc65b27797bcc4a7ebb50556e9c108 /board/xilinx | |
parent | 716527299a496afcbf495d38bd9e5edfd71ce120 (diff) | |
download | u-boot-ba74bcf3e07b10ffebf42e72a656b420215b5a2e.tar.gz u-boot-ba74bcf3e07b10ffebf42e72a656b420215b5a2e.tar.bz2 u-boot-ba74bcf3e07b10ffebf42e72a656b420215b5a2e.zip |
xilinx: common: Remove zynq_board_read_rom_ethaddr()
Removing the zynq_board_read_rom_ethaddr() function as
xlnx,eeprom is not used anymore. As all board dts to use
nvmem alias instead of xlnx,eeprom.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20221017094818.17996-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/common/board.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 99fdbac639..59d87f2352 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -54,34 +54,6 @@ struct efi_capsule_update_info update_info = { u8 num_image_type_guids = ARRAY_SIZE(fw_images); #endif /* EFI_HAVE_CAPSULE_SUPPORT */ -#if defined(CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET) -int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) -{ - int ret = -EINVAL; - struct udevice *dev; - ofnode eeprom; - - eeprom = ofnode_get_chosen_node("xlnx,eeprom"); - if (!ofnode_valid(eeprom)) - return -ENODEV; - - debug("%s: Path to EEPROM %s\n", __func__, - ofnode_read_chosen_string("xlnx,eeprom")); - - ret = uclass_get_device_by_ofnode(UCLASS_I2C_EEPROM, eeprom, &dev); - if (ret) - return ret; - - ret = dm_i2c_read(dev, CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET, ethaddr, 6); - if (ret) - debug("%s: I2C EEPROM MAC address read failed\n", __func__); - else - debug("%s: I2C EEPROM MAC %pM\n", __func__, ethaddr); - - return ret; -} -#endif - #define EEPROM_HEADER_MAGIC 0xdaaddeed #define EEPROM_HDR_MANUFACTURER_LEN 16 #define EEPROM_HDR_NAME_LEN 16 |