Sumeet Pawnikar | c6f241a | 2021-07-27 09:35:46 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <device/pci_ids.h> |
| 5 | |
| 6 | const struct cpu_power_limits limits[] = { |
Sumeet Pawnikar | 684a4f2 | 2021-08-26 19:12:58 +0530 | [diff] [blame] | 7 | /* SKU_ID, TDP (Watts), pl1_min, pl1_max, pl2_min, pl2_max, pl4 */ |
Sumeet Pawnikar | e7f3e6a | 2021-08-11 21:09:45 +0530 | [diff] [blame] | 8 | /* All values are for baseline config as per bug:191906315 comment #10 */ |
Sumeet Pawnikar | 684a4f2 | 2021-08-26 19:12:58 +0530 | [diff] [blame] | 9 | { PCI_DEVICE_ID_INTEL_ADL_P_ID_7, 15, 3000, 15000, 39000, 39000, 100000 }, |
Tracy Wu | 3e97178 | 2021-09-27 22:16:57 +0800 | [diff] [blame] | 10 | { PCI_DEVICE_ID_INTEL_ADL_P_ID_6, 15, 3000, 15000, 39000, 39000, 100000 }, |
Sumeet Pawnikar | 684a4f2 | 2021-08-26 19:12:58 +0530 | [diff] [blame] | 11 | { PCI_DEVICE_ID_INTEL_ADL_P_ID_5, 28, 4000, 28000, 43000, 43000, 105000 }, |
| 12 | { PCI_DEVICE_ID_INTEL_ADL_P_ID_3, 28, 4000, 28000, 43000, 43000, 105000 }, |
| 13 | { PCI_DEVICE_ID_INTEL_ADL_P_ID_3, 45, 5000, 45000, 80000, 80000, 159000 }, |
Sumeet Pawnikar | c6f241a | 2021-07-27 09:35:46 +0530 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | void variant_devtree_update(void) |
| 17 | { |
| 18 | size_t total_entries = ARRAY_SIZE(limits); |
| 19 | variant_update_power_limits(limits, total_entries); |
| 20 | } |