]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
at91, dfu, smartweb: set serial number
authorHeiko Schocher <hs@denx.de>
Mon, 26 Jun 2017 11:26:14 +0000 (13:26 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Jun 2017 14:01:12 +0000 (10:01 -0400)
since commit 842778a09104 dfu-util shows serial="UNDEFINED".

to see here again a serial number, we have to call
g_dnl_set_serialnumber().

Signed-off-by: Heiko Schocher <hs@denx.de>
board/siemens/smartweb/smartweb.c

index 718ccc7839529d1ba58b90337f1781dc913ded76..c6ba6738a463bc2b32e553e3a7f7b27ae56e76dd 100644 (file)
@@ -34,6 +34,7 @@
 #ifndef CONFIG_DM_ETH
 # include <netdev.h>
 #endif
+#include <g_dnl.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -256,3 +257,9 @@ void mem_init(void)
        sdramc_initialize(ATMEL_BASE_CS1, &setting);
 }
 #endif
+
+int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
+{
+       g_dnl_set_serialnumber("1");
+       return 0;
+}