summaryrefslogtreecommitdiff
path: root/board/hammer/board.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-06-02 22:46:29 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-13 21:23:56 -0700
commitd5bb8390a8f7b27d55d96b14dcaa928dfff4c59d (patch)
tree5473df6a7a00cf7244dbadfd3c03debcad6c2afa /board/hammer/board.h
parentd132e5ecbd93fa598fc495ec90718ea853962ef7 (diff)
downloadchrome-ec-d5bb8390a8f7b27d55d96b14dcaa928dfff4c59d.tar.gz
hammer: Use unique board ID to generate USB serial number
BRANCH=none BUG=b:62280271 TEST=Flash hammer lsusb -d 18d1:5022 -v -v | grep iSerial shows different chip IDs on different boards. Change-Id: I249967df133a8aa8a2b5c570fb940dd03fae4169 Reviewed-on: https://chromium-review.googlesource.com/523046 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/hammer/board.h')
-rw-r--r--board/hammer/board.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index a003bcb6c5..ac87d9b2a2 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -94,11 +94,8 @@
#define CONFIG_USB_SUSPEND
#define CONFIG_USB_SERIALNO
-/* TODO(drinkcat): Replace this by proper serial number. Note that according to
- * USB standard, we must either unset this (iSerialNumber = 0), or have a unique
- * serial number per device.
- */
-#define DEFAULT_SERIALNO "Uninitialized"
+/* Replaced at runtime (board_read_serial) by chip unique-id-based number. */
+#define DEFAULT_SERIALNO ""
/* USB interface indexes (use define rather than enum to expand them) */
#ifdef SECTION_IS_RW