diff options
author | Andrew McRae <amcrae@google.com> | 2020-09-08 10:37:47 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-08 03:55:34 +0000 |
commit | a58b4d0b59c68f0923b4b412324da8cc5eac6133 (patch) | |
tree | de8d834da176023adb26bf38c571deeb8eb66d17 /board/puff/board.c | |
parent | 894bd7af49a8c12b48c7bfb953a7b4d1c1ceb32d (diff) | |
download | chrome-ec-a58b4d0b59c68f0923b4b412324da8cc5eac6133.tar.gz |
Puff: Add f/w config field for thermal solution
A new field has been added to the f/w config for defining
the thermal solution used on the board.
Add support for this new field. The config specific handling
for this field has not been added yet.
BUG=b:167981895
TEST=make buildall
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Idd2616ef25fdf13245d31f63751e47b4565cad07
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2396975
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Tested-by: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/puff/board.c')
-rw-r--r-- | board/puff/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 99064aa042..641e88561b 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -667,6 +667,11 @@ int ec_config_get_usb4_present(void) return !(fw_config & EC_CFG_NO_USB4_MASK); } +unsigned int ec_config_get_thermal_solution(void) +{ + return (fw_config & EC_CFG_THERMAL_MASK) >> EC_CFG_THERMAL_L; +} + /* * Power monitoring and management. * |