Lines Matching refs:factory_dat

32 struct factorysetcontainer factory_dat;  variable
157 factory_dat.usb_vendor_id = CONFIG_USB_GADGET_VENDOR_NUM; in factoryset_read_eeprom()
158 factory_dat.usb_product_id = CONFIG_USB_GADGET_PRODUCT_NUM; in factoryset_read_eeprom()
246 factory_dat.mac[i] = simple_strtoul((char *)cp1, NULL, 16); in factoryset_read_eeprom()
257 factory_dat.mac_wlan[i] = simple_strtoul((char *)cp1, in factoryset_read_eeprom()
269 factory_dat.usb_vendor_id = simple_strtoul((char *)buf, in factoryset_read_eeprom()
276 factory_dat.usb_product_id = simple_strtoul((char *)buf, in factoryset_read_eeprom()
279 printf("DFU USB: VID = 0x%4x, PID = 0x%4x\n", factory_dat.usb_vendor_id, in factoryset_read_eeprom()
280 factory_dat.usb_product_id); in factoryset_read_eeprom()
284 (uchar *)"name", factory_dat.disp_name, in factoryset_read_eeprom()
286 debug("display name: %s\n", factory_dat.disp_name); in factoryset_read_eeprom()
290 (uchar *)"num", factory_dat.serial, in factoryset_read_eeprom()
292 debug("serial number: %s\n", factory_dat.serial); in factoryset_read_eeprom()
297 factory_dat.version = simple_strtoul((char *)buf, in factoryset_read_eeprom()
299 debug("version number: %d\n", factory_dat.version); in factoryset_read_eeprom()
303 (uchar *)"id", factory_dat.asn, in factoryset_read_eeprom()
305 debug("factoryset asn: %s\n", factory_dat.asn); in factoryset_read_eeprom()
307 factory_dat.asn[0] = 0; in factoryset_read_eeprom()
312 factory_dat.comp_version, in factoryset_read_eeprom()
314 debug("factoryset COMP/ver: %s\n", factory_dat.comp_version); in factoryset_read_eeprom()
316 strcpy((char *)factory_dat.comp_version, "1.0"); in factoryset_read_eeprom()
359 if (is_valid_ethaddr(factory_dat.mac)) { in factoryset_mac_env_set()
360 memcpy(mac_addr, factory_dat.mac, 6); in factoryset_mac_env_set()
373 if (is_valid_ethaddr(factory_dat.mac_wlan)) in factoryset_mac_env_set()
374 eth_env_set_enetaddr("eth2addr", factory_dat.mac_wlan); in factoryset_mac_env_set()
382 if (factory_dat.asn[0] != 0) { in factoryset_dtb_env_set()
383 env_set("dtb_name", (char *)factory_dat.asn); in factoryset_dtb_env_set()
404 put_unaligned(factory_dat.usb_vendor_id, &dev->idVendor); in g_dnl_bind_fixup()
405 put_unaligned(factory_dat.usb_product_id, &dev->idProduct); in g_dnl_bind_fixup()
406 g_dnl_set_serialnumber((char *)factory_dat.serial); in g_dnl_bind_fixup()
413 return factory_dat.version; in g_dnl_get_board_bcd_device_number()