diff options
Diffstat (limited to 'common/version.c')
-rw-r--r-- | common/version.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/version.c b/common/version.c index 766b4ad56b..a80d843580 100644 --- a/common/version.c +++ b/common/version.c @@ -6,7 +6,9 @@ /* Embed firmware version number in the binary */ #include <stdint.h> +#include "common.h" #include "ec_version.h" +#include "usb.h" #include "version.h" const struct version_struct version_data @@ -19,6 +21,11 @@ const struct version_struct version_data const char build_info[] __attribute__((section(".rodata.buildinfo"))) = CROS_EC_VERSION " " DATE " " BUILDER; +#ifdef CONFIG_USB +/* UTF-16 encoded USB string descriptor */ +const void * const usb_fw_version = USB_STRING_DESC(CROS_EC_VERSION32); +#endif + uint32_t ver_get_numcommits(void) { int i; |