Lines Matching refs:header
73 static int read_eeprom(BSP_VS_HWPARAM *header) in read_eeprom() argument
85 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, 1, (uchar *)header, in read_eeprom()
92 if (header->Magic != 0xDEADBEEF) { in read_eeprom()
95 header->Magic); in read_eeprom()
98 header->SystemId = 211; in read_eeprom()
99 header->MAC1[0] = 0x00; in read_eeprom()
100 header->MAC1[1] = 0x00; in read_eeprom()
101 header->MAC1[2] = 0x00; in read_eeprom()
102 header->MAC1[3] = 0x00; in read_eeprom()
103 header->MAC1[4] = 0x00; in read_eeprom()
104 header->MAC1[5] = 0x01; in read_eeprom()
106 header->MAC2[0] = 0x00; in read_eeprom()
107 header->MAC2[1] = 0x00; in read_eeprom()
108 header->MAC2[2] = 0x00; in read_eeprom()
109 header->MAC2[3] = 0x00; in read_eeprom()
110 header->MAC2[4] = 0x00; in read_eeprom()
111 header->MAC2[5] = 0x02; in read_eeprom()
113 header->MAC3[0] = 0x00; in read_eeprom()
114 header->MAC3[1] = 0x00; in read_eeprom()
115 header->MAC3[2] = 0x00; in read_eeprom()
116 header->MAC3[3] = 0x00; in read_eeprom()
117 header->MAC3[4] = 0x00; in read_eeprom()
118 header->MAC3[5] = 0x03; in read_eeprom()
276 BSP_VS_HWPARAM header; in ft_board_setup() local
279 if (read_eeprom(&header)) in ft_board_setup()
283 mac_addr[0] = header.MAC1[0]; in ft_board_setup()
284 mac_addr[1] = header.MAC1[1]; in ft_board_setup()
285 mac_addr[2] = header.MAC1[2]; in ft_board_setup()
286 mac_addr[3] = header.MAC1[3]; in ft_board_setup()
287 mac_addr[4] = header.MAC1[4]; in ft_board_setup()
288 mac_addr[5] = header.MAC1[5]; in ft_board_setup()
304 mac_addr[0] = header.MAC2[0]; in ft_board_setup()
305 mac_addr[1] = header.MAC2[1]; in ft_board_setup()
306 mac_addr[2] = header.MAC2[2]; in ft_board_setup()
307 mac_addr[3] = header.MAC2[3]; in ft_board_setup()
308 mac_addr[4] = header.MAC2[4]; in ft_board_setup()
309 mac_addr[5] = header.MAC2[5]; in ft_board_setup()
345 BSP_VS_HWPARAM header; in board_late_init() local
349 if (read_eeprom(&header)) { in board_late_init()
352 sprintf(model, "%d", header.SystemId); in board_late_init()
353 if (header.SystemId == 215) { in board_late_init()