mb/google/octopus/variants/baseboard: Improve cold boot and S3 resume

FSP 2.0.7.1 provides UPD interface to execute IPC command. Configure
PmicPmcIpcCtrl for PMC to program PMIC PCH_PWROK delay from default
100ms to 10ms to improve cold boot and S3 resume performance.

BUG=b:118676361
CQ-DEPEND=CL:*703187
TEST=Verified system_resume_firmware_ec time reduction.

Change-Id: I41b8268c752573d828e31a1d94d3f175aa3cc145
Signed-off-by: John Zhao <john.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/29485
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
John Zhao 2018-11-05 14:45:02 -08:00 committed by Patrick Georgi
parent e673e5c09e
commit 1e6a889752
1 changed files with 18 additions and 0 deletions

View File

@ -177,4 +177,22 @@ chip soc/intel/apollolake
end # - ESPI
device pci 1f.1 on end # - SMBUS
end
# FSP provides UPD interface to execute IPC command. PMIC has
# I2C_Slave_Address (31:24): 0x5E, Register_Offset (23:16): 0x43,
# RegOrValue (15:8): 0x2 and RegAndValue (7:0) 0xF8.
# The register is defined as: D[7:3] RSVD, D[2:0] PWROKDELAY.
# uint8 RegOrValue, RegAndValue, PmicReadReg
# RegOrValue = (UINT8)((PmicPmcIpcCtrl >> 8) & 0Xff);
# RegAndValue = (UINT8)(PmicPmcIpcCtrl & 0Xff);
# PmicReadReg &= RegAndValue;
# PmicReadReg |= RegOrValue;
# PmicReadReg value will be programmed into PMIC D[2:0] PWROKDELAY field
# and D[7:3] RSVD will not be impacted.
# Configure PmicPmcIpcCtrl for PMC to program PMIC PCH_PWROK delay
# from 100ms to 10ms.
# PWROKDELAY[2:0]: 000=2.5ms, 001=5.0ms, 010=10ms, 011=15ms, 100=20ms,
# 101=50ms, 110=75ms, 111=100ms (default)
register "PmicPmcIpcCtrl" = "0x5e4302f8"
end