From 582829d9acaa899d8381f2b44a82f54da42b87a1 Mon Sep 17 00:00:00 2001 From: Sumeet Pawnikar Date: Fri, 23 Jul 2021 15:50:17 +0530 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56515 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/mainboard.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/brya/mainboard.c') 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) -- cgit v1.2.3