summaryrefslogtreecommitdiff
path: root/board/xilinx
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-09-01 11:27:32 +0200
committerMichal Simek <michal.simek@xilinx.com>2016-11-15 15:28:05 +0100
commit8ecd50c8c92365a8099754da032c882e2a77e3b6 (patch)
tree1cdc4d9aea0667333eb8593c36fb828589492f52 /board/xilinx
parent0cba6abbba5c0bd5c80e652c35d0bd74e644a49e (diff)
downloadu-boot-imx-8ecd50c8c92365a8099754da032c882e2a77e3b6.zip
u-boot-imx-8ecd50c8c92365a8099754da032c882e2a77e3b6.tar.gz
u-boot-imx-8ecd50c8c92365a8099754da032c882e2a77e3b6.tar.bz2
ARM64: zynqmp: Record board name as serial number for DFU/FASTBOOT
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r--board/xilinx/zynqmp/zynqmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index b0acaa5..7e67288 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);