summaryrefslogtreecommitdiff
path: root/board/sasukette
diff options
context:
space:
mode:
authorMike Lee <mike5@huaqin.corp-partner.google.com>2021-02-24 21:57:29 +0800
committerCommit Bot <commit-bot@chromium.org>2021-03-02 16:41:10 +0000
commit168cfcc49249992c8db7ccc2008aecba49595720 (patch)
treeafd282d8766ab6bfc5d6fb032ca2013add18fa71 /board/sasukette
parente5034517e26333b14226e187dca84217d0b62382 (diff)
downloadchrome-ec-168cfcc49249992c8db7ccc2008aecba49595720.tar.gz
Sasukette: set charge voltage
Charge voltage need add 100mv on the basis of battery required charge voltage BUG=b:181106908 BRANCH=dedede TEST=test Sasukette charge voltage is 8.8v Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: I8ac86b785677ce62f90b4977cc60e19a141a0609 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2718203 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/sasukette')
-rw-r--r--board/sasukette/battery.c19
-rw-r--r--board/sasukette/board.h3
2 files changed, 21 insertions, 1 deletions
diff --git a/board/sasukette/battery.c b/board/sasukette/battery.c
index 8697251e32..9e85906b9b 100644
--- a/board/sasukette/battery.c
+++ b/board/sasukette/battery.c
@@ -67,3 +67,22 @@ const struct board_batt_params board_battery_info[] = {
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SDI;
+
+int charger_profile_override(struct charge_state_data *curr)
+{
+ curr->requested_voltage += 100;
+
+ return 0;
+}
+
+enum ec_status charger_profile_override_get_param(uint32_t param,
+ uint32_t *value)
+{
+ return EC_RES_INVALID_PARAM;
+}
+
+enum ec_status charger_profile_override_set_param(uint32_t param,
+ uint32_t value)
+{
+ return EC_RES_INVALID_PARAM;
+}
diff --git a/board/sasukette/board.h b/board/sasukette/board.h
index 06589283dc..d5b2739f1f 100644
--- a/board/sasukette/board.h
+++ b/board/sasukette/board.h
@@ -32,7 +32,8 @@
#define CONFIG_CHARGER_RAA489000
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10
#define CONFIG_CHARGER_SENSE_RESISTOR 10
-#define CONFIG_CHARGER_SINGLE_CHIP
+#define CONFIG_CHARGER_SINGLE_CHIP
+#define CONFIG_CHARGER_PROFILE_OVERRIDE
/* LED */
#define CONFIG_LED_COMMON