google_eeprom: add tags for battery pack status

Bug: 203465508
Signed-off-by: Jack Wu <[email protected]>
Change-Id: I860aeac4939ed70f1387e4663a721d34343c5598
diff --git a/google_eeprom.c b/google_eeprom.c
index 4efd6dc..903b0fb 100644
--- a/google_eeprom.c
+++ b/google_eeprom.c
@@ -40,6 +40,8 @@
 #define BATT_EEPROM_TAG_CELC_LEN	1
 #define BATT_EEPROM_TAG_HIST_OFFSET	0x5E
 #define BATT_EEPROM_TAG_HIST_LEN	BATT_ONE_HIST_LEN
+#define BATT_EEPROM_TAG_BPST_OFFSET	0x6A
+#define BATT_EEPROM_TAG_BPST_LEN	1
 #define BATT_EEPROM_TAG_BGPN_OFFSET	0x03
 #define BATT_EEPROM_TAG_BGPN_LEN	GBMS_BGPN_LEN
 
@@ -97,6 +99,10 @@
 		*addr = BATT_EEPROM_TAG_CELC_OFFSET;
 		*count = BATT_EEPROM_TAG_CELC_LEN;
 		break;
+	case GBMS_TAG_BPST:
+		*addr = BATT_EEPROM_TAG_BPST_OFFSET;
+		*count = BATT_EEPROM_TAG_BPST_LEN;
+		break;
 	default:
 		ret = -ENOENT;
 		break;
@@ -112,7 +118,7 @@
 				     GBMS_TAG_BRID, GBMS_TAG_SNUM,
 				     GBMS_TAG_GMSR, GBMS_TAG_BCNT,
 				     GBMS_TAG_CNHS, GBMS_TAG_SELC,
-				     GBMS_TAG_CELC };
+				     GBMS_TAG_CELC, GBMS_TAG_BPST };
 	const int count = ARRAY_SIZE(keys);
 
 	if (index < 0 || index >= count)
@@ -168,7 +174,8 @@
 
 	if ((tag != GBMS_TAG_DINF) && (tag != GBMS_TAG_GMSR) &&
 	    (tag != GBMS_TAG_BCNT) && (tag != GBMS_TAG_CNHS) &&
-	    (tag != GBMS_TAG_SELC) && (tag != GBMS_TAG_CELC))
+	    (tag != GBMS_TAG_SELC) && (tag != GBMS_TAG_CELC) &&
+	    (tag != GBMS_TAG_BPST))
 		return -ENOENT;
 
 	ret = gbee_storage_info(tag, &offset, &len, ptr);