summaryrefslogtreecommitdiff
path: root/board/hatch/board.h
diff options
context:
space:
mode:
authorJosh Tsai <josh_tsai@compal.corp-partner.google.com>2019-12-05 11:05:18 +0800
committerCommit Bot <commit-bot@chromium.org>2019-12-06 19:58:09 +0000
commit89197aceaf26ccf33b143c7a5e95eb07ba4c7464 (patch)
tree73fd35ae26a6fe4aea7b406502a2e19bc4e1e921 /board/hatch/board.h
parent9d206be4be6b723a84089ae9ddd4aff9291f17ed (diff)
downloadchrome-ec-89197aceaf26ccf33b143c7a5e95eb07ba4c7464.tar.gz
hatch: refactor PD_MAX_VOLTAGE/PD_MAX_CURRENT/PD_MAX_POWER/PD_OPERATING_POWER/
1) The four config is determined by board, move it into board.h. 2) Update the config variables above for stryke. BUG=b:145257655 BRANCH=hatch TEST=make buildall Change-Id: I1dd6a4f2a78b5196006821bc5d2686f68206c2e1 Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1950270 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'board/hatch/board.h')
-rw-r--r--board/hatch/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/hatch/board.h b/board/hatch/board.h
index a2d0533a38..dca25f6cf9 100644
--- a/board/hatch/board.h
+++ b/board/hatch/board.h
@@ -173,6 +173,12 @@ enum battery_type {
BATTERY_TYPE_COUNT,
};
+
+#define PD_OPERATING_POWER_MW 15000
+#define PD_MAX_POWER_MW 60000
+#define PD_MAX_CURRENT_MA 3000
+#define PD_MAX_VOLTAGE_MV 20000
+
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */