summaryrefslogtreecommitdiff
path: root/board/kukui
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-07-11 15:29:13 +0800
committerCommit Bot <commit-bot@chromium.org>2019-07-31 09:22:46 +0000
commitca6214b72f83a52e12cadbe4896ed65802f34c05 (patch)
treedaf527738bc6d2b1e3daf09e59408a06924e8d52 /board/kukui
parentdfad1da08151579ef7692e1f860c1cfb480ea24e (diff)
downloadchrome-ec-ca6214b72f83a52e12cadbe4896ed65802f34c05.tar.gz
baseboard/kukui: support battery/charger variants
This CL introduces config option VARIANT_KUKUI_BATTERY_* and VARIANT_KUKUI_CHARGER_* for derivatives to pick their battery / charger option. BUG=b:137172860 TEST=build and deploy on Krane, verify that `battery` and `charger` console output looks reasonable. BRANCH=master Change-Id: Ic5c33a233ec30c9bc71414c95603157301281041 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1697781 Reviewed-by: Alexandru M Stan <amstan@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kukui')
-rw-r--r--board/kukui/board.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/board/kukui/board.h b/board/kukui/board.h
index aa05ebc712..6808efb49e 100644
--- a/board/kukui/board.h
+++ b/board/kukui/board.h
@@ -8,20 +8,22 @@
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
+#ifdef BOARD_KRANE
+#define VARIANT_KUKUI_BATTERY_MM8013
+#else
+#define VARIANT_KUKUI_BATTERY_MAX17055
+#endif
+
+#define VARIANT_KUKUI_CHARGER_MT6370
+
#include "baseboard.h"
-#define CONFIG_CHARGER_MT6370
-#define CONFIG_CHARGER_OTG
#define CONFIG_VOLUME_BUTTONS
/* Battery */
#ifdef BOARD_KRANE
-#define CONFIG_BATTERY_MM8013
#define BATTERY_DESIRED_CHARGING_CURRENT 3500 /* mA */
#else
-#define CONFIG_BATTERY_MAX17055
-#define CONFIG_BATTERY_MAX17055_ALERT
-#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */
#define BATTERY_DESIRED_CHARGING_CURRENT 2000 /* mA */
#endif /* BOARD_KRANE */