diff options
author | Sam McNally <sammc@chromium.org> | 2022-01-05 16:06:23 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-07 04:47:46 +0000 |
commit | bf7497d5a55442f0067397c789d6e02b861822cc (patch) | |
tree | bfc6f4e2adb01bf97a0a077a6bcb2e130c90db8f | |
parent | 80629e7fd1935c51c476fb228b3560f922982cbe (diff) | |
download | vboot-bf7497d5a55442f0067397c789d6e02b861822cc.tar.gz |
vboot_reference/futility: Support "ccd_gsc" as a servo type fragment.
For DT, servo_type reports ccd_gsc instead of ccd_cr50. Treat ccd_gsc
the same as ccd_cr50.
BUG=None
TEST=futility update --servo -i
BRANCH=None
Change-Id: I27f5ea7ccc70fd1a247b844a9929aed7a133ebb3
Signed-off-by: Sam McNally <sammc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3367517
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
-rw-r--r-- | futility/updater_utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/futility/updater_utils.c b/futility/updater_utils.c index 91fd07ed..238a7bc4 100644 --- a/futility/updater_utils.c +++ b/futility/updater_utils.c @@ -488,8 +488,9 @@ char *host_detect_servo(int *need_prepare_ptr) VB2_DEBUG("Selected Servo Micro.\n"); programmer = "raiden_debug_spi"; need_prepare = 1; - } else if (strstr(servo_type, "ccd_cr50")) { - VB2_DEBUG("Selected CCD CR50.\n"); + } else if (strstr(servo_type, "ccd_cr50") || + strstr(servo_type, "ccd_gsc")) { + VB2_DEBUG("Selected CCD.\n"); programmer = "raiden_debug_spi:target=AP"; } else { VB2_DEBUG("Selected Servo V2.\n"); |