Broadwell: Select PCIE_L1_SUB_STATE and apply Broadwell settings.
BUG=chrome-os-partner:31424 TEST=Build an image and confirm the settings are correctly applied to registers for PCIe L1 Sub-State feature enabling. Signed-off-by: Kenji Chen <kenji.chen@intel.com> Change-Id: I07ce6eea648b1b37d606f5529edad184e3de70ac Reviewed-on: https://chromium-review.googlesource.com/222599 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
6ac04ad7e2
commit
b94c8c715f
2 changed files with 8 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ config CPU_SPECIFIC_OPTIONS
|
|||
select PCIEXP_ASPM
|
||||
select PCIEXP_COMMON_CLOCK
|
||||
select PCIEXP_CLK_PM
|
||||
select PCIEXP_L1_SUB_STATE
|
||||
select SMM_MODULES
|
||||
select SMM_TSEG
|
||||
select SMP
|
||||
|
|
|
|||
|
|
@ -654,8 +654,15 @@ static void pcie_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
|||
pci_write_config32(dev, 0x94, (device << 16) | vendor);
|
||||
}
|
||||
|
||||
static void pcie_set_L1_ss_max_latency(device_t dev, unsigned int off)
|
||||
{
|
||||
/* Set max snoop and non-snoop latency for Broadwell */
|
||||
pci_mmio_write_config32(dev, off, 0x10031003);
|
||||
}
|
||||
|
||||
static struct pci_operations pcie_ops = {
|
||||
.set_subsystem = pcie_set_subsystem,
|
||||
.set_L1_ss_latency = pcie_set_L1_ss_max_latency,
|
||||
};
|
||||
|
||||
static struct device_operations device_ops = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue