summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/mainboard.c
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>2021-07-23 15:50:17 +0530
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-08-09 15:02:56 +0000
commit582829d9acaa899d8381f2b44a82f54da42b87a1 (patch)
tree60a48466d488fb7890dd0f47c75b17143958f2d7 /src/mainboard/google/brya/mainboard.c
parent09cc8f6677ad99eee99a18bfcd8ce1350b3efc52 (diff)
mb/google/brya: create dynamic power limits mechanism for thermal
Add dynamic power limits selection mechanism for brya board based on CPU SKUs which is detectable at runtime. BUG=b:194745919 BRANCH=None TEST=Build FW and test on brya with below messages, On brya (282): Overriding DPTF power limits PL1 (3000, 15000) PL2 (39000, 39000) On brya (482): Overriding DPTF power limits PL1 (4000, 28000) PL2 (43000, 43000) Change-Id: I86619516adeec13642f02ba7faf9fc4945ad774e Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56515 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/mainboard.c')
-rw-r--r--src/mainboard/google/brya/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/mainboard.c b/src/mainboard/google/brya/mainboard.c
index 1b9e09a214..388926fbf7 100644
--- a/src/mainboard/google/brya/mainboard.c
+++ b/src/mainboard/google/brya/mainboard.c
@@ -26,6 +26,13 @@ static void mainboard_init(void *chip_info)
base_pads = variant_gpio_table(&base_num);
override_pads = variant_gpio_override_table(&override_num);
gpio_configure_pads_with_override(base_pads, base_num, override_pads, override_num);
+
+ variant_devtree_update();
+}
+
+void __weak variant_devtree_update(void)
+{
+ /* Override dev tree settings per board */
}
static void mainboard_dev_init(struct device *dev)