Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2014 Google Inc. |
| 5 | * Copyright (C) 2015 Intel Corporation. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 15 | */ |
| 16 | |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 17 | #define DPTF_CPU_PASSIVE 95 |
| 18 | #define DPTF_CPU_CRITICAL 99 |
| 19 | #define DPTF_CPU_ACTIVE_AC0 90 |
| 20 | #define DPTF_CPU_ACTIVE_AC1 77 |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 21 | |
| 22 | #define DPTF_TSR0_SENSOR_ID 0 |
| 23 | #define DPTF_TSR0_SENSOR_NAME "TMP432_Internal" |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 24 | #define DPTF_TSR0_PASSIVE 65 |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 25 | #define DPTF_TSR0_CRITICAL 70 |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 26 | #define DPTF_TSR0_ACTIVE_AC0 120 |
| 27 | #define DPTF_TSR0_ACTIVE_AC1 110 |
| 28 | #define DPTF_TSR0_ACTIVE_AC2 47 |
| 29 | #define DPTF_TSR0_ACTIVE_AC3 44 |
| 30 | #define DPTF_TSR0_ACTIVE_AC4 41 |
| 31 | #define DPTF_TSR0_ACTIVE_AC5 38 |
| 32 | #define DPTF_TSR0_ACTIVE_AC6 35 |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 33 | |
| 34 | #define DPTF_TSR1_SENSOR_ID 1 |
| 35 | #define DPTF_TSR1_SENSOR_NAME "TMP432_Power_top" |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 36 | #define DPTF_TSR1_PASSIVE 63 |
| 37 | #define DPTF_TSR1_CRITICAL 68 |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 38 | |
| 39 | #define DPTF_TSR2_SENSOR_ID 2 |
| 40 | #define DPTF_TSR2_SENSOR_NAME "TMP432_CPU_bottom" |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 41 | #define DPTF_TSR2_PASSIVE 64 |
| 42 | #define DPTF_TSR2_CRITICAL 69 |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 43 | |
| 44 | #define DPTF_ENABLE_CHARGER |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 45 | #define DPTF_ENABLE_FAN_CONTROL |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 46 | |
| 47 | /* Charger performance states, board-specific values from charger and EC */ |
| 48 | Name (CHPS, Package () { |
| 49 | Package () { 0, 0, 0, 0, 255, 0x6a4, "mA", 0 }, /* 1.7A (MAX) */ |
| 50 | Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 }, /* 1.5A */ |
| 51 | Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 }, /* 1.0A */ |
| 52 | Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 }, /* 0.5A */ |
| 53 | Package () { 0, 0, 0, 0, 0, 0x000, "mA", 0 }, /* 0.0A */ |
| 54 | }) |
| 55 | |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 56 | #ifdef DPTF_ENABLE_FAN_CONTROL |
| 57 | /* DFPS: Fan Performance States */ |
| 58 | Name (DFPS, Package () { |
| 59 | 0, // Revision |
| 60 | /* |
| 61 | * TODO : Need to update this Table after characterization. |
| 62 | * These are initial reference values. |
| 63 | */ |
| 64 | /* Control, Trip Point, Speed, NoiseLevel, Power */ |
| 65 | Package () {100, 0xFFFFFFFF, 4986, 220, 2200}, |
| 66 | Package () {90, 0xFFFFFFFF, 4804, 180, 1800}, |
| 67 | Package () {80, 0xFFFFFFFF, 4512, 145, 1450}, |
| 68 | Package () {70, 0xFFFFFFFF, 4204, 115, 1150}, |
| 69 | Package () {60, 0xFFFFFFFF, 3838, 90, 900}, |
| 70 | Package () {50, 0xFFFFFFFF, 3402, 65, 650}, |
| 71 | Package () {40, 0xFFFFFFFF, 2904, 45, 450}, |
| 72 | Package () {30, 0xFFFFFFFF, 2337, 30, 300}, |
| 73 | Package () {20, 0xFFFFFFFF, 1608, 15, 150}, |
| 74 | Package () {10, 0xFFFFFFFF, 800, 10, 100}, |
| 75 | Package () {0, 0xFFFFFFFF, 0, 0, 50} |
| 76 | }) |
| 77 | |
| 78 | Name (DART, Package () { |
| 79 | /* Fan effect on CPU */ |
| 80 | 0, // Revision |
| 81 | Package () { |
| 82 | /* |
| 83 | * Source, Target, Weight, AC0, AC1, AC2, AC3, AC4, AC5, AC6, |
| 84 | * AC7, AC8, AC9 |
| 85 | */ |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 86 | \_SB.DPTF.TFN1, \_SB.PCI0.B0D4, 100, 100, 81, 0, 0, 0, 0, 0, |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 87 | 0, 0, 0 |
Sumeet Pawnikar | aa75cdc | 2016-10-18 10:22:52 +0530 | [diff] [blame^] | 88 | }, |
| 89 | Package () { |
| 90 | \_SB.DPTF.TFN1, \_SB.DPTF.TSR0, 100, 100, 81, 68, 56, 48, 40, |
| 91 | 35, 0, 0, 0 |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 92 | } |
| 93 | }) |
| 94 | #endif |
| 95 | |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 96 | Name (DTRT, Package () { |
| 97 | /* CPU Throttle Effect on CPU */ |
| 98 | Package () { \_SB.PCI0.B0D4, \_SB.PCI0.B0D4, 100, 50, 0, 0, 0, 0 }, |
| 99 | |
| 100 | /* CPU Effect on Temp Sensor 0 */ |
| 101 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR0, 100, 600, 0, 0, 0, 0 }, |
| 102 | |
| 103 | #ifdef DPTF_ENABLE_CHARGER |
| 104 | /* Charger Effect on Temp Sensor 1 */ |
| 105 | Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR1, 200, 600, 0, 0, 0, 0 }, |
| 106 | #endif |
| 107 | |
| 108 | /* CPU Effect on Temp Sensor 1 */ |
| 109 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR1, 100, 600, 0, 0, 0, 0 }, |
| 110 | |
| 111 | /* CPU Effect on Temp Sensor 2 */ |
| 112 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR2, 100, 600, 0, 0, 0, 0 }, |
| 113 | }) |
| 114 | |
| 115 | Name (MPPC, Package () |
| 116 | { |
| 117 | 0x2, /* Revision */ |
| 118 | Package () { /* Power Limit 1 */ |
| 119 | 0, /* PowerLimitIndex, 0 for Power Limit 1 */ |
| 120 | 1600, /* PowerLimitMinimum */ |
Sumeet Pawnikar | 047363f | 2015-11-26 13:33:13 +0530 | [diff] [blame] | 121 | 15000, /* PowerLimitMaximum */ |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 122 | 1000, /* TimeWindowMinimum */ |
| 123 | 1000, /* TimeWindowMaximum */ |
| 124 | 200 /* StepSize */ |
| 125 | }, |
| 126 | Package () { /* Power Limit 2 */ |
| 127 | 1, /* PowerLimitIndex, 1 for Power Limit 2 */ |
| 128 | 8000, /* PowerLimitMinimum */ |
| 129 | 8000, /* PowerLimitMaximum */ |
| 130 | 1000, /* TimeWindowMinimum */ |
| 131 | 1000, /* TimeWindowMaximum */ |
| 132 | 1000 /* StepSize */ |
| 133 | } |
| 134 | }) |
| 135 | |
| 136 | /* Include DPTF */ |
| 137 | #include <soc/intel/skylake/acpi/dptf/dptf.asl> |