Attention is currently required from: Shelley Chen, Furquan Shaikh, Tim Wawrzynczak, Aamir Bohra, Patrick Rudolph.

Michael Niewöhner would like Shelley Chen, build bot (Jenkins), Patrick Georgi, Furquan Shaikh, Tim Wawrzynczak, Aamir Bohra and Patrick Rudolph to review this change.

View Change

Revert "soc/intel/cannonlake: Allow Audio DSP OSC qualification for low power idle"

This reverts commit 4d9d3f164de7002dd38f12dc40f9b260f63d2d9b.

Reason for revert:
The commit message does not make clear what the actual problem is or was. The reference to a non-public bug tracker makes it quiet difficult to make any sense of it.

According to the datasheets this means the Audio DSP oscillator is not required to be powered off in order to enter SlpS0/S0ix. However, that bit already defaults to zero and even FSP does not set it. Thus, clearing that bit is not required.

Change-Id: Iff028364fb34f737c3a50809f2df623a0bba7218
---
M src/soc/intel/cannonlake/chip.h
M src/soc/intel/cannonlake/finalize.c
M src/soc/intel/cannonlake/include/soc/pmc.h
3 files changed, 1 insertion(+), 16 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/57949/1
diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h
index fd37d26..0712146 100644
--- a/src/soc/intel/cannonlake/chip.h
+++ b/src/soc/intel/cannonlake/chip.h
@@ -59,13 +59,8 @@
uint32_t gen3_dec;
uint32_t gen4_dec;

- /* S0ix configuration */
-
/* Enable S0iX support */
int s0ix_enable;
- /* Enable Audio DSP oscillator qualification for S0ix */
- uint8_t cppmvric2_adsposcdis;
-
/* Enable DPTF support */
int dptf_enable;

diff --git a/src/soc/intel/cannonlake/finalize.c b/src/soc/intel/cannonlake/finalize.c
index b2fb9f9..002e8ea 100644
--- a/src/soc/intel/cannonlake/finalize.c
+++ b/src/soc/intel/cannonlake/finalize.c
@@ -91,18 +91,11 @@
write8(pmcbase + PCH_PWRM_ACPI_TMR_CTL, reg8);
}

+ /* Disable XTAL shutdown qualification for low power idle. */
if (config->s0ix_enable) {
- /* Disable XTAL shutdown qualification for low power idle. */
reg32 = read32(pmcbase + CPPMVRIC);
reg32 |= XTALSDQDIS;
write32(pmcbase + CPPMVRIC, reg32);
-
- if (config->cppmvric2_adsposcdis) {
- /* Enable Audio DSP OSC qualification for S0ix */
- reg32 = read32(pmcbase + CPPMVRIC2);
- reg32 &= ~ADSPOSCDIS;
- write32(pmcbase + CPPMVRIC2, reg32);
- }
}

pch_handle_sideband(config);
diff --git a/src/soc/intel/cannonlake/include/soc/pmc.h b/src/soc/intel/cannonlake/include/soc/pmc.h
index fbd366b..252c719 100644
--- a/src/soc/intel/cannonlake/include/soc/pmc.h
+++ b/src/soc/intel/cannonlake/include/soc/pmc.h
@@ -156,9 +156,6 @@
#define CPPMVRIC 0x1B1C
#define XTALSDQDIS (1 << 22)

-#define CPPMVRIC2 0x1B4C
-#define ADSPOSCDIS (1 << 22)
-
#define IRQ_REG ACTL
#define SCI_IRQ_ADJUST 0
#define ACTL 0x1BD8

To view, visit change 57949. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iff028364fb34f737c3a50809f2df623a0bba7218
Gerrit-Change-Number: 57949
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra@intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Grace Kao <grace.kao@intel.com>
Gerrit-CC: Kane Chen <kane.chen@intel.com>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-CC: Rajat Jain <rajatja@google.com>
Gerrit-CC: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
Gerrit-Attention: Shelley Chen <shchen@google.com>
Gerrit-Attention: Furquan Shaikh <furquan@google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Attention: Aamir Bohra <aamir.bohra@intel.com>
Gerrit-Attention: Patrick Rudolph <siro@das-labor.org>
Gerrit-MessageType: newchange