summaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/systemagent.c
diff options
context:
space:
mode:
authorSumeet R Pawnikar <sumeet.r.pawnikar@intel.com>2020-05-08 22:18:09 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-05-18 07:17:36 +0000
commitfa42d568a00e5daadd35722790c529539227130e (patch)
treec988cc49faf744bc499c837c1aadc569750709ae /src/soc/intel/broadwell/systemagent.c
parent71a9a7c70f152e054294495a37f2c02b6b77cd84 (diff)
downloadcoreboot-fa42d568a00e5daadd35722790c529539227130e.tar.xz
broadwell: update processor power limits configuration
Update processor power limit configuration parameters based on common code base support for Intel Broadwell SoC based platforms. BRANCH=None BUG=None TEST=Build for broadwell based platform Change-Id: I97e38a533e74a122b6809e20a10f6e425827ab9c Signed-off-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41234 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/broadwell/systemagent.c')
-rw-r--r--src/soc/intel/broadwell/systemagent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/soc/intel/broadwell/systemagent.c b/src/soc/intel/broadwell/systemagent.c
index d5d234d540..b75c4fe7de 100644
--- a/src/soc/intel/broadwell/systemagent.c
+++ b/src/soc/intel/broadwell/systemagent.c
@@ -8,6 +8,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
+#include <intelblocks/power_limit.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <soc/cpu.h>
#include <soc/iomap.h>
@@ -404,6 +405,7 @@ static void systemagent_read_resources(struct device *dev)
static void systemagent_init(struct device *dev)
{
+ struct soc_power_limits_config *config;
u8 bios_reset_cpl, pair;
/* Enable Power Aware Interrupt Routing */
@@ -423,7 +425,8 @@ static void systemagent_init(struct device *dev)
/* Configure turbo power limits 1ms after reset complete bit */
mdelay(1);
- set_power_limits(28);
+ config = config_of_soc();
+ set_power_limits(MOBILE_SKU_PL1_TIME_SEC, config);
}
static struct device_operations systemagent_ops = {