summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce <Bruce.Wan@quantatw.com>2016-03-03 18:41:48 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-03-07 01:20:09 -0800
commit1e20c1f88d187aabe03f5f80db8a189dafb14ac5 (patch)
treee8f7da8f4f098c0a5e4107f666b68ff08f48238c
parentda191ee1acc13c2428ecedfaee2340e2dc68d756 (diff)
downloadchrome-ec-1e20c1f88d187aabe03f5f80db8a189dafb14ac5.tar.gz
sb_firmware_update: Remove battery HWID check
We're supporting a wide range of batteries, and since file name matching is based on HWID, we don't need to maintain a separate table of supported HWIDs in our utility. BUG=chrome-os-partner:49589,chrome-os-partner:50469 BRANCH=None TEST=buildall Change-Id: I3e7c62379c07a598e23f3c543959503d3d25aee3 Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/330231 Commit-Ready: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--util/ec_sb_firmware_update.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/util/ec_sb_firmware_update.c b/util/ec_sb_firmware_update.c
index f910cddcc4..3ec6e2b6a4 100644
--- a/util/ec_sb_firmware_update.c
+++ b/util/ec_sb_firmware_update.c
@@ -18,9 +18,6 @@
#include "misc_util.h"
#include "powerd_lock.h"
-#define SIMPLO_MAKER_ID 0x5
-#define SIMPLO_HWID 0x74
-
/* Subcommands: [check|update] */
enum {
OP_UNKNOWN = 0,
@@ -429,12 +426,6 @@ static enum fw_update_state s1_read_battery_info(
}
print_info(&fw_update->info);
- if ((fw_update->info.maker_id != SIMPLO_MAKER_ID) ||
- (fw_update->info.hardware_id != SIMPLO_HWID)) {
- log_msg(fw_update, S1_READ_INFO, "No Updates.");
- return S10_TERMINAL;
- }
-
sprintf(fw_update->image_name,
"/lib/firmware/battery/maker.%04x.hwid.%04x.bin",
fw_update->info.maker_id,