skylake: Enable DPTF based on devicetree setting

Enable DPTF flag in ACPI NVS based on devicetree setting
for the mainboard.

BUG=chrome-os-partner:40635
BRANCH=none
TEST=emerge-glaods coreboot

Change-Id: I06ec6b050eb83c6a7ee1e48f2bd9f5920f7bfa51
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 5728a8a37b1a50a483aa211563fb7ad312002ce5
Original-Change-Id: I08d61416c24b3c8857205cf88931f0bb2b38896c
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/297755
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11565
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Duncan Laurie 2015-09-04 13:53:14 -07:00 committed by Patrick Georgi
parent c1bc8171e6
commit 7fce30c2a5
2 changed files with 9 additions and 0 deletions

View File

@ -169,6 +169,9 @@ static int get_cores_per_package(void)
void acpi_init_gnvs(global_nvs_t *gnvs)
{
const struct device *dev = dev_find_slot(0, PCH_DEVFN_LPC);
const struct soc_intel_skylake_config *config = dev->chip_info;
/* Set unknown wake source */
gnvs->pm1i = -1;
@ -189,6 +192,9 @@ void acpi_init_gnvs(global_nvs_t *gnvs)
#endif
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
#endif
/* Enable DPTF based on mainboard configuration */
gnvs->dpte = config->dptf_enable;
}
unsigned long acpi_fill_mcfg(unsigned long current)

View File

@ -86,6 +86,9 @@ struct soc_intel_skylake_config {
/* Enable S0iX support */
int s0ix_enable;
/* Enable DPTF support */
int dptf_enable;
/* Deep SX enable for both AC and DC */
int deep_s3_enable;
int deep_s5_enable;