mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
Change the zinger software version returned by VDO_CMD_READ_INFO to report the commit count portion of the version string to make the software version automatically change. This software version is important for debugging and is printed to PD console every time a zinger is attached. BUG=none BRANCH=none TEST=load onto zinger and samus, plug in zinger and see: Dev:1 SW:2147 RW:0 compare to the version string in zinger binary and we see: zinger_v1.1.2147-... Change-Id: Ieafe89b4b16cee076be17bcbc6774bbd7fc24f8e Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/214428 Reviewed-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
31 lines
732 B
C
31 lines
732 B
C
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Version number for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_VERSION_H
|
|
#define __CROS_EC_VERSION_H
|
|
|
|
#include "common.h"
|
|
|
|
#define CROS_EC_VERSION_COOKIE1 0xce112233
|
|
#define CROS_EC_VERSION_COOKIE2 0xce445566
|
|
|
|
struct version_struct {
|
|
uint32_t cookie1;
|
|
char version[32];
|
|
uint32_t cookie2;
|
|
} __packed;
|
|
|
|
extern const struct version_struct version_data;
|
|
extern const char build_info[];
|
|
extern const char __version_struct_offset[];
|
|
|
|
/**
|
|
* Get the number of commits field from version string.
|
|
*/
|
|
uint32_t ver_get_numcommits(void);
|
|
#endif /* __CROS_EC_VERSION_H */
|