ARM64: zynqmp: Record board name as serial number for DFU/FASTBOOT
[oweals/u-boot.git] / board / xilinx / zynqmp / zynqmp.c
index b0acaa5b772105bb628925a346736145f42f81f4..7e6728870931f6d6f3a341c760cdb30a6f8520d3 100644 (file)
@@ -422,6 +422,10 @@ int board_usb_init(int index, enum usb_init_type init)
 {
        debug("%s: index %x\n", __func__, index);
 
+#if defined(CONFIG_USB_GADGET_DOWNLOAD)
+       g_dnl_set_serialnumber(CONFIG_SYS_CONFIG_NAME);
+#endif
+
        switch (index) {
        case 0:
                return dwc3_uboot_init(&dwc3_device_data0);