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 | |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 17 | #define DPTF_CPU_PASSIVE 80 |
| 18 | #define DPTF_CPU_CRITICAL 90 |
| 19 | #define DPTF_CPU_ACTIVE_AC0 90 |
| 20 | #define DPTF_CPU_ACTIVE_AC1 80 |
| 21 | #define DPTF_CPU_ACTIVE_AC2 70 |
| 22 | #define DPTF_CPU_ACTIVE_AC3 60 |
| 23 | #define DPTF_CPU_ACTIVE_AC4 50 |
| 24 | |
| 25 | #define DPTF_TSR0_SENSOR_ID 0 |
| 26 | #define DPTF_TSR0_SENSOR_NAME "TMP432_Internal" |
| 27 | #define DPTF_TSR0_PASSIVE 48 |
| 28 | #define DPTF_TSR0_CRITICAL 70 |
| 29 | |
| 30 | #define DPTF_TSR1_SENSOR_ID 1 |
| 31 | #define DPTF_TSR1_SENSOR_NAME "TMP432_Power_top" |
| 32 | #define DPTF_TSR1_PASSIVE 60 |
| 33 | #define DPTF_TSR1_CRITICAL 70 |
| 34 | |
| 35 | #define DPTF_TSR2_SENSOR_ID 2 |
| 36 | #define DPTF_TSR2_SENSOR_NAME "TMP432_CPU_bottom" |
| 37 | #define DPTF_TSR2_PASSIVE 55 |
| 38 | #define DPTF_TSR2_CRITICAL 70 |
| 39 | |
| 40 | #define DPTF_ENABLE_CHARGER |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 41 | #define DPTF_ENABLE_FAN_CONTROL |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 42 | |
| 43 | /* Charger performance states, board-specific values from charger and EC */ |
| 44 | Name (CHPS, Package () { |
| 45 | Package () { 0, 0, 0, 0, 255, 0x6a4, "mA", 0 }, /* 1.7A (MAX) */ |
| 46 | Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 }, /* 1.5A */ |
| 47 | Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 }, /* 1.0A */ |
| 48 | Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 }, /* 0.5A */ |
| 49 | Package () { 0, 0, 0, 0, 0, 0x000, "mA", 0 }, /* 0.0A */ |
| 50 | }) |
| 51 | |
Sumeet Pawnikar | 47657ea | 2015-10-19 14:57:43 +0530 | [diff] [blame] | 52 | #ifdef DPTF_ENABLE_FAN_CONTROL |
| 53 | /* DFPS: Fan Performance States */ |
| 54 | Name (DFPS, Package () { |
| 55 | 0, // Revision |
| 56 | /* |
| 57 | * TODO : Need to update this Table after characterization. |
| 58 | * These are initial reference values. |
| 59 | */ |
| 60 | /* Control, Trip Point, Speed, NoiseLevel, Power */ |
| 61 | Package () {100, 0xFFFFFFFF, 4986, 220, 2200}, |
| 62 | Package () {90, 0xFFFFFFFF, 4804, 180, 1800}, |
| 63 | Package () {80, 0xFFFFFFFF, 4512, 145, 1450}, |
| 64 | Package () {70, 0xFFFFFFFF, 4204, 115, 1150}, |
| 65 | Package () {60, 0xFFFFFFFF, 3838, 90, 900}, |
| 66 | Package () {50, 0xFFFFFFFF, 3402, 65, 650}, |
| 67 | Package () {40, 0xFFFFFFFF, 2904, 45, 450}, |
| 68 | Package () {30, 0xFFFFFFFF, 2337, 30, 300}, |
| 69 | Package () {20, 0xFFFFFFFF, 1608, 15, 150}, |
| 70 | Package () {10, 0xFFFFFFFF, 800, 10, 100}, |
| 71 | Package () {0, 0xFFFFFFFF, 0, 0, 50} |
| 72 | }) |
| 73 | |
| 74 | Name (DART, Package () { |
| 75 | /* Fan effect on CPU */ |
| 76 | 0, // Revision |
| 77 | Package () { |
| 78 | /* |
| 79 | * Source, Target, Weight, AC0, AC1, AC2, AC3, AC4, AC5, AC6, |
| 80 | * AC7, AC8, AC9 |
| 81 | */ |
| 82 | \_SB.DPTF.TFN1, \_SB.PCI0.B0D4, 100, 100, 90, 80, 70, 60, 0, 0, |
| 83 | 0, 0, 0 |
| 84 | } |
| 85 | }) |
| 86 | #endif |
| 87 | |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 88 | Name (DTRT, Package () { |
| 89 | /* CPU Throttle Effect on CPU */ |
| 90 | Package () { \_SB.PCI0.B0D4, \_SB.PCI0.B0D4, 100, 50, 0, 0, 0, 0 }, |
| 91 | |
| 92 | /* CPU Effect on Temp Sensor 0 */ |
| 93 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR0, 100, 600, 0, 0, 0, 0 }, |
| 94 | |
| 95 | #ifdef DPTF_ENABLE_CHARGER |
| 96 | /* Charger Effect on Temp Sensor 1 */ |
| 97 | Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR1, 200, 600, 0, 0, 0, 0 }, |
| 98 | #endif |
| 99 | |
| 100 | /* CPU Effect on Temp Sensor 1 */ |
| 101 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR1, 100, 600, 0, 0, 0, 0 }, |
| 102 | |
| 103 | /* CPU Effect on Temp Sensor 2 */ |
| 104 | Package () { \_SB.PCI0.B0D4, \_SB.DPTF.TSR2, 100, 600, 0, 0, 0, 0 }, |
| 105 | }) |
| 106 | |
| 107 | Name (MPPC, Package () |
| 108 | { |
| 109 | 0x2, /* Revision */ |
| 110 | Package () { /* Power Limit 1 */ |
| 111 | 0, /* PowerLimitIndex, 0 for Power Limit 1 */ |
| 112 | 1600, /* PowerLimitMinimum */ |
Sumeet Pawnikar | 047363f | 2015-11-26 13:33:13 +0530 | [diff] [blame^] | 113 | 15000, /* PowerLimitMaximum */ |
Shilpa Sreeramalu | 91a192f | 2015-06-22 21:54:51 +0530 | [diff] [blame] | 114 | 1000, /* TimeWindowMinimum */ |
| 115 | 1000, /* TimeWindowMaximum */ |
| 116 | 200 /* StepSize */ |
| 117 | }, |
| 118 | Package () { /* Power Limit 2 */ |
| 119 | 1, /* PowerLimitIndex, 1 for Power Limit 2 */ |
| 120 | 8000, /* PowerLimitMinimum */ |
| 121 | 8000, /* PowerLimitMaximum */ |
| 122 | 1000, /* TimeWindowMinimum */ |
| 123 | 1000, /* TimeWindowMaximum */ |
| 124 | 1000 /* StepSize */ |
| 125 | } |
| 126 | }) |
| 127 | |
| 128 | /* Include DPTF */ |
| 129 | #include <soc/intel/skylake/acpi/dptf/dptf.asl> |