Lines Matching refs:eeprom_content
108 struct xilinx_legacy_format *eeprom_content; in xilinx_read_eeprom_legacy() local
111 size = sizeof(*eeprom_content); in xilinx_read_eeprom_legacy()
113 eeprom_content = calloc(1, size); in xilinx_read_eeprom_legacy()
114 if (!eeprom_content) in xilinx_read_eeprom_legacy()
118 eeprom_content); in xilinx_read_eeprom_legacy()
120 ret = dm_i2c_read(dev, 0, (uchar *)eeprom_content, size); in xilinx_read_eeprom_legacy()
123 free(eeprom_content); in xilinx_read_eeprom_legacy()
127 xilinx_eeprom_legacy_cleanup((char *)eeprom_content, size); in xilinx_read_eeprom_legacy()
130 printf(" Board name:\t%s\n", eeprom_content->board_name); in xilinx_read_eeprom_legacy()
131 printf(" Board rev:\t%s\n", eeprom_content->board_revision); in xilinx_read_eeprom_legacy()
132 printf(" Board SN:\t%s\n", eeprom_content->board_sn); in xilinx_read_eeprom_legacy()
134 eth_valid = is_valid_ethaddr((const u8 *)eeprom_content->eth_mac); in xilinx_read_eeprom_legacy()
136 printf(" Ethernet mac:\t%pM\n", eeprom_content->eth_mac); in xilinx_read_eeprom_legacy()
139 strcpy(desc->name, eeprom_content->board_name); in xilinx_read_eeprom_legacy()
140 strcpy(desc->revision, eeprom_content->board_revision); in xilinx_read_eeprom_legacy()
141 strcpy(desc->serial, eeprom_content->board_sn); in xilinx_read_eeprom_legacy()
143 memcpy(desc->mac_addr[0], eeprom_content->eth_mac, ETH_ALEN); in xilinx_read_eeprom_legacy()
147 free(eeprom_content); in xilinx_read_eeprom_legacy()