google_battery: add FAN_LEVEL votable

Add a new MAX votable (FAN_LEVEL) with google_battery and
google_charger vote on the desired value. Returns the current vote
to /fan_level and send a PS event when the value changes.

Bug: 185853236
Signed-off-by: yihsiangpeng <[email protected]>
Change-Id: I6552bd206cb8bd0c34b1b0f1dd529b82c27e305a
diff --git a/google_bms.h b/google_bms.h
index ee8a265..dc1c164 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -368,6 +368,14 @@
 #define VOTABLE_MSC_INTERVAL	"MSC_INTERVAL"
 #define VOTABLE_MSC_FCC		"MSC_FCC"
 #define VOTABLE_MSC_FV		"MSC_FV"
+#define VOTABLE_FAN_LEVEL	"FAN_LEVEL"
+
+#define FAN_LVL_UNKNOWN		-1
+#define FAN_LVL_NOT_CARE	0
+#define FAN_LVL_LOW		1
+#define FAN_LVL_MED		2
+#define FAN_LVL_HIGH		3
+#define FAN_LVL_ALARM		4
 
 /* Binned cycle count */
 #define GBMS_CCBIN_CSTR_SIZE	(GBMS_CCBIN_BUCKET_COUNT * 6 + 2)