From 89197aceaf26ccf33b143c7a5e95eb07ba4c7464 Mon Sep 17 00:00:00 2001 From: Josh Tsai Date: Thu, 5 Dec 2019 11:05:18 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1950270 Reviewed-by: Paul Fagerburg --- board/dratini/board.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/dratini/board.h') diff --git a/board/dratini/board.h b/board/dratini/board.h index e8d0a9affa..bdf50e7a2c 100644 --- a/board/dratini/board.h +++ b/board/dratini/board.h @@ -173,6 +173,12 @@ extern const int keyboard_factory_scan_pins[][2]; extern const int keyboard_factory_scan_pins_used; #endif + +#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 */ -- cgit v1.2.1