From: Heiko Schocher Date: Mon, 26 Jun 2017 11:26:14 +0000 (+0200) Subject: at91, dfu, smartweb: set serial number X-Git-Tag: v2017.07-rc3~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e91ead868b536d0a0dc49aa48f4d8c80c1a94b79;p=oweals%2Fu-boot.git 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 --- 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 #endif +#include 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; +}