From: Keith Packard Date: Mon, 15 Feb 2016 23:26:00 +0000 (-0800) Subject: altos/chaoskey: Use SoC device ID as serial number X-Git-Tag: 1.6.3~2^2~96 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=05354b8fee6a9af05d66bb7f4761f597da038fdd altos/chaoskey: Use SoC device ID as serial number To make manufacturing these devices tractable, we don't want to require a custom firmware load for each device, but we still want a unique serial number. Fortunately, the SoC provides a 96-bit ID which we can use. Signed-off-by: Keith Packard --- diff --git a/src/chaoskey-v0.1/ao_pins.h b/src/chaoskey-v0.1/ao_pins.h index a8109282..6ec582a9 100644 --- a/src/chaoskey-v0.1/ao_pins.h +++ b/src/chaoskey-v0.1/ao_pins.h @@ -52,6 +52,7 @@ #define AO_USB_HAS_IN 1 #define AO_USB_HAS_INT 0 #define AO_USB_SELF_POWER 0 +#define AO_USB_DEVICE_ID_SERIAL 1 #define IS_FLASH_LOADER 0