summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2017-06-26 13:26:14 +0200
committerTom Rini <trini@konsulko.com>2017-06-29 10:01:12 -0400
commite91ead868b536d0a0dc49aa48f4d8c80c1a94b79 (patch)
treeef54336486eaccf86b8e4d6137eb780446b4b95f
parentbe884598dabcccd96c058b29b2f86766881b3b78 (diff)
downloadu-boot-e91ead868b536d0a0dc49aa48f4d8c80c1a94b79.tar.gz
u-boot-e91ead868b536d0a0dc49aa48f4d8c80c1a94b79.tar.xz
u-boot-e91ead868b536d0a0dc49aa48f4d8c80c1a94b79.zip
at91, dfu, smartweb: set serial number
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>
-rw-r--r--board/siemens/smartweb/smartweb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
index 718ccc7839..c6ba6738a4 100644
--- a/board/siemens/smartweb/smartweb.c
+++ b/board/siemens/smartweb/smartweb.c
@@ -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;
+}