diff options
author | Josh Tsai <josh_tsai@compal.corp-partner.google.com> | 2019-12-05 11:05:18 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-06 19:58:09 +0000 |
commit | 89197aceaf26ccf33b143c7a5e95eb07ba4c7464 (patch) | |
tree | 73fd35ae26a6fe4aea7b406502a2e19bc4e1e921 /board/stryke/board.h | |
parent | 9d206be4be6b723a84089ae9ddd4aff9291f17ed (diff) | |
download | chrome-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/stryke/board.h')
-rw-r--r-- | board/stryke/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/stryke/board.h b/board/stryke/board.h index e1b7ce7414..876e19f466 100644 --- a/board/stryke/board.h +++ b/board/stryke/board.h @@ -173,6 +173,11 @@ enum battery_type { BATTERY_TYPE_COUNT, }; +#define PD_OPERATING_POWER_MW 27000 +#define PD_MAX_POWER_MW 65000 +#define PD_MAX_CURRENT_MA 3250 +#define PD_MAX_VOLTAGE_MV 20000 + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BOARD_H */ |