[U-Boot] [PATCH 2/5] ARM64: zynqmp: Record board name as serial number for DFU/FASTBOOT

Michal Simek michal.simek at xilinx.com
Wed Oct 26 13:22:25 CEST 2016


Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynqmp/zynqmp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index b0acaa5b7721..7e6728870931 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -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);
-- 
1.9.1



More information about the U-Boot mailing list