soc/intel/apollolake: Sync fsp upd structure update

FSP 2.0.9 provides UPD interface to adjust integrated filter
value, usb3 LDO and pmic vdd2 voltage. Change coreboot upd
structure to sync with fsp 2.0.9 release.

BUG=b:123398358
CQ-DEPEND=CL:*817128
TEST=Verified yorp boots to kernel.

Change-Id: I3d17dfbe58bdc5222378459723da8e9ac0573510
Signed-off-by: John Zhao <john.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/c/31131
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
John Zhao 2019-01-28 16:04:35 -08:00 committed by Patrick Georgi
parent a35904b29c
commit 9a4beb429d
3 changed files with 57 additions and 4 deletions

View File

@ -639,6 +639,21 @@ static void glk_fsp_silicon_init_params_cb(
* Options to disable XHCI Link Compliance Mode. * Options to disable XHCI Link Compliance Mode.
*/ */
silconfig->DisableComplianceMode = cfg->DisableComplianceMode; silconfig->DisableComplianceMode = cfg->DisableComplianceMode;
/*
* Options to change USB3 ModPhy setting for Integrated Filter value.
*/
silconfig->ModPhyIfValue = cfg->ModPhyIfValue;
/*
* Options to bump USB3 LDO voltage with 40mv.
*/
silconfig->ModPhyVoltageBump = cfg->ModPhyVoltageBump;
/*
* Options to adjust PMIC Vdd2 voltage.
*/
silconfig->PmicVdd2Voltage = cfg->PmicVdd2Voltage;
#endif #endif
} }

View File

@ -168,6 +168,26 @@ struct soc_intel_apollolake_config {
* 0:FALSE(Default), 1:True. * 0:FALSE(Default), 1:True.
*/ */
uint8_t DisableComplianceMode; uint8_t DisableComplianceMode;
/* Options to change USB3 ModPhy setting for the Integrated Filter (IF)
* value. Default is 0 to not changing default IF value (0x12). Set
* value with the range from 0x01 to 0xff to change IF value.
*/
uint8_t ModPhyIfValue;
/* Options to bump USB3 LDO voltage. Default is FALSE to not increasing
* LDO voltage. Set TRUE to increase LDO voltage with 40mV.
* 0:FALSE (default), 1:True.
*/
uint8_t ModPhyVoltageBump;
/* Options to adjust PMIC Vdd2 voltage. Default is 0 to not adjusting
* the PMIC Vdd2 default voltage 1.20v. Upd for changing Vdd2 Voltage
* configuration: I2C_Slave_Address (31:23) + Register_Offset (23:16)
* + OR Value (15:8) + AND Value (7:0) through BUCK5_VID[3:2]:
* 00=1.10v, 01=1.15v, 10=1.24v, 11=1.20v (default).
*/
uint32_t PmicVdd2Voltage;
}; };
typedef struct soc_intel_apollolake_config config_t; typedef struct soc_intel_apollolake_config config_t;

View File

@ -1,6 +1,6 @@
/** @file /** @file
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met: are permitted provided that the following conditions are met:
@ -1721,7 +1721,25 @@ typedef struct {
**/ **/
UINT32 PmicPmcIpcCtrl; UINT32 PmicPmcIpcCtrl;
/** Offset 0x03AF /** Offset 0x03AF - ModPhyIfValue
Upd To modify the Integrated Filter (IF) value as 0x12(Default) for WIN and 0x16
for Chrome
**/
UINT8 ModPhyIfValue;
/** Offset 0x03B0 - ModPhyVoltageBump
ModPhyVoltageBump. 1: enable, 0: disable
$EN_DIS
**/
UINT8 ModPhyVoltageBump;
/** Offset 0x03B1 - Vdd2 Voltage configuration
Upd for changing Vdd2 Voltage configuration : I2C_Slave_Address (31:23) + Register_Offset
(23:16) + OR Value (15:8) + AND Value (7:0)
**/
UINT32 PmicVdd2Voltage;
/** Offset 0x03B5
**/ **/
UINT8 ReservedFspsUpd[1]; UINT8 ReservedFspsUpd[1];
} FSP_S_CONFIG; } FSP_S_CONFIG;
@ -1792,9 +1810,9 @@ typedef struct {
**/ **/
FSP_S_CONFIG FspsConfig; FSP_S_CONFIG FspsConfig;
/** Offset 0x03B0 /** Offset 0x03B6
**/ **/
UINT8 UnusedUpdSpace7[16]; UINT8 UnusedUpdSpace7[10];
/** Offset 0x03C0 /** Offset 0x03C0
**/ **/