summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>2021-09-30 09:42:27 +0530
committerFelix Held <felix-coreboot@felixheld.de>2021-10-01 18:43:16 +0000
commit125206322d8a508261bb9ef145dc7172a87c0dd8 (patch)
tree0a5934ac67a75430429d91a1c473ddc8e486ab67 /src/soc
parente06e43a83fe91639c5d7c54641bb67fb9950b47e (diff)
mb/google/brya: move MILLIWATTS_TO_WATTS macro in header file
Move MILLIWATTS_TO_WATTS macro in power_limit header file so all other files can use the same macro. BUG=None BRANCH=None TEST=Build FW and test on brya0 board Change-Id: Ic7ecba06b0e0a47546f7307cbfbc3ce0fc634bc3 Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57463 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/common/block/include/intelblocks/power_limit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/power_limit.h b/src/soc/intel/common/block/include/intelblocks/power_limit.h
index 934eaa4be7..3f18126e9b 100644
--- a/src/soc/intel/common/block/include/intelblocks/power_limit.h
+++ b/src/soc/intel/common/block/include/intelblocks/power_limit.h
@@ -15,6 +15,8 @@
/* Default power limit value in secs */
#define MOBILE_SKU_PL1_TIME_SEC 28
+#define MILLIWATTS_TO_WATTS 1000
+
struct soc_power_limits_config {
/* PL1 Override value in Watts */
uint16_t tdp_pl1_override;