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>
This commit is contained in:
Sumeet Pawnikar 2021-09-30 09:42:27 +05:30 committed by Felix Held
parent e06e43a83f
commit 125206322d
2 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,6 @@
#include <drivers/intel/dptf/chip.h>
#include <intelblocks/power_limit.h>
#define MILLIWATTS_TO_WATTS 1000
WEAK_DEV_PTR(dptf_policy);
void variant_update_power_limits(const struct cpu_power_limits *limits, size_t num_entries)

View File

@ -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;