diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2021-01-29 20:21:34 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-12 19:35:55 +0000 |
commit | eddea1320c3733c17b56bbd57313fe9bcc1ee451 (patch) | |
tree | 1f9154847507ee151a28393dea4b996602eb7bf1 /board/delbin/battery.c | |
parent | 09ed2b339206cedf791a4728d234b34581580367 (diff) | |
download | chrome-ec-eddea1320c3733c17b56bbd57313fe9bcc1ee451.tar.gz |
servo_updater: firmware channel retrieval as a library service
This change introduces the ability of using servo_updater as a library
to check whether a firmware string (e.g. the one currently read out from
the servo device) belongs to a known channel. If so, the channel will be
returned. If not, None is returned to indicate this is an unknown
firmware string. This can then be used to warn the user to update, or
inform them what channel they are currently running.
BRANCH=None
BUG=b:179310743
// This is performed with the CL that uses this: chromium:2661015
TEST=sudo servod -b soraka
dut-control servo_micro_firmware_channel
servo_micro_firmware_channel:stable
Change-Id: I49e920c7c7977b7c05828f8464af973f538f7aeb
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2661021
Reviewed-by: Brian Nemec <bnemec@chromium.org>
Diffstat (limited to 'board/delbin/battery.c')
0 files changed, 0 insertions, 0 deletions