2015-05-13 03:19:47 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007-2008 coresystems GmbH
|
|
|
|
* Copyright (C) 2014 Google Inc.
|
2015-05-13 03:23:27 +02:00
|
|
|
* Copyright (C) 2015 Intel Corporation.
|
2015-05-13 03:19:47 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2015-05-13 03:23:27 +02:00
|
|
|
* Foundation, Inc.
|
2015-05-13 03:19:47 +02:00
|
|
|
*/
|
|
|
|
|
2015-08-08 05:29:42 +02:00
|
|
|
|
|
|
|
#ifndef _SOC_CHIP_H_
|
|
|
|
#define _SOC_CHIP_H_
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
#include <stdint.h>
|
2015-08-08 05:29:42 +02:00
|
|
|
#include <soc/gpio_defs.h>
|
2015-05-13 03:23:27 +02:00
|
|
|
#include <soc/pci_devs.h>
|
2015-07-25 00:37:13 +02:00
|
|
|
#include <soc/pmc.h>
|
2015-05-13 03:23:27 +02:00
|
|
|
#include <soc/serialio.h>
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
struct soc_intel_skylake_config {
|
2015-05-13 03:19:47 +02:00
|
|
|
/*
|
|
|
|
* Interrupt Routing configuration
|
|
|
|
* If bit7 is 1, the interrupt is disabled.
|
|
|
|
*/
|
|
|
|
uint8_t pirqa_routing;
|
|
|
|
uint8_t pirqb_routing;
|
|
|
|
uint8_t pirqc_routing;
|
|
|
|
uint8_t pirqd_routing;
|
|
|
|
uint8_t pirqe_routing;
|
|
|
|
uint8_t pirqf_routing;
|
|
|
|
uint8_t pirqg_routing;
|
|
|
|
uint8_t pirqh_routing;
|
|
|
|
|
|
|
|
/* GPE configuration */
|
2015-08-08 05:29:42 +02:00
|
|
|
uint32_t gpe0_en_1; /* GPE0_EN_31_0 */
|
|
|
|
uint32_t gpe0_en_2; /* GPE0_EN_63_32 */
|
|
|
|
uint32_t gpe0_en_3; /* GPE0_EN_95_64 */
|
|
|
|
uint32_t gpe0_en_4; /* GPE0_EN_127_96 / GPE_STD */
|
|
|
|
/* Gpio group routed to each dword of the GPE0 block. Values are
|
|
|
|
* of the form GPP_[A:G] or GPD. */
|
|
|
|
uint8_t gpe0_dw0; /* GPE0_31_0 STS/EN */
|
|
|
|
uint8_t gpe0_dw1; /* GPE0_63_32 STS/EN */
|
|
|
|
uint8_t gpe0_dw2; /* GPE0_95_64 STS/EN */
|
2015-05-13 03:19:47 +02:00
|
|
|
|
|
|
|
/* Generic IO decode ranges */
|
|
|
|
uint32_t gen1_dec;
|
|
|
|
uint32_t gen2_dec;
|
|
|
|
uint32_t gen3_dec;
|
|
|
|
uint32_t gen4_dec;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Digital Port Hotplug Enable:
|
|
|
|
* 0x04 = Enabled, 2ms short pulse
|
|
|
|
* 0x05 = Enabled, 4.5ms short pulse
|
|
|
|
* 0x06 = Enabled, 6ms short pulse
|
|
|
|
* 0x07 = Enabled, 100ms short pulse
|
|
|
|
*/
|
|
|
|
u8 gpu_dp_b_hotplug;
|
|
|
|
u8 gpu_dp_c_hotplug;
|
|
|
|
u8 gpu_dp_d_hotplug;
|
|
|
|
|
|
|
|
/* Panel power sequence timings */
|
|
|
|
u8 gpu_panel_port_select;
|
|
|
|
u8 gpu_panel_power_cycle_delay;
|
|
|
|
u16 gpu_panel_power_up_delay;
|
|
|
|
u16 gpu_panel_power_down_delay;
|
|
|
|
u16 gpu_panel_power_backlight_on_delay;
|
|
|
|
u16 gpu_panel_power_backlight_off_delay;
|
|
|
|
|
|
|
|
/* Panel backlight settings */
|
|
|
|
u32 gpu_cpu_backlight;
|
|
|
|
u32 gpu_pch_backlight;
|
|
|
|
|
|
|
|
/* Enable S0iX support */
|
|
|
|
int s0ix_enable;
|
|
|
|
|
2015-09-04 22:53:14 +02:00
|
|
|
/* Enable DPTF support */
|
|
|
|
int dptf_enable;
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Deep SX enable for both AC and DC */
|
|
|
|
int deep_s3_enable;
|
|
|
|
int deep_s5_enable;
|
|
|
|
|
2015-07-25 00:37:13 +02:00
|
|
|
/*
|
|
|
|
* Deep Sx Configuration
|
|
|
|
* DSX_EN_WAKE_PIN - Enable WAKE# pin
|
|
|
|
* DSX_EN_LAN_WAKE_PIN - Enable LAN_WAKE# pin
|
|
|
|
* DSX_EN_AC_PRESENT_PIN - Enable AC_PRESENT pin
|
|
|
|
*/
|
|
|
|
uint32_t deep_sx_config;
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* TCC activation offset */
|
|
|
|
int tcc_offset;
|
|
|
|
|
2015-05-13 03:19:47 +02:00
|
|
|
/*
|
2015-07-21 16:51:50 +02:00
|
|
|
* The following fields come from FspUpdVpd.h.
|
2015-05-13 03:23:27 +02:00
|
|
|
* These are configuration values that are passed to FSP during
|
|
|
|
* MemoryInit.
|
2015-05-13 03:19:47 +02:00
|
|
|
*/
|
2015-05-13 03:23:27 +02:00
|
|
|
u64 PlatformMemorySize;
|
|
|
|
u8 SmramMask;
|
|
|
|
u8 MrcFastBoot;
|
|
|
|
u32 TsegSize;
|
|
|
|
u16 MmioSize;
|
|
|
|
|
|
|
|
/* Probeless Trace function */
|
|
|
|
u8 ProbelessTrace;
|
|
|
|
|
2015-07-21 16:51:50 +02:00
|
|
|
/*
|
|
|
|
* System Agent dynamic frequency configuration
|
|
|
|
* When enabled memory will be trained at two different frequencies.
|
|
|
|
* 0 = Disabled
|
|
|
|
* 1 = FixedLow
|
|
|
|
* 2 = FixedHigh
|
|
|
|
* 3 = Enabled
|
|
|
|
*/
|
|
|
|
u8 SaGv;
|
|
|
|
|
|
|
|
/* Enable/disable Rank Margin Tool */
|
|
|
|
u8 Rmt;
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Lan */
|
|
|
|
u8 EnableLan;
|
|
|
|
|
|
|
|
/* SATA related */
|
|
|
|
u8 EnableSata;
|
|
|
|
u8 SataMode;
|
|
|
|
u8 SataSalpSupport;
|
|
|
|
u8 SataPortsEnable[8];
|
|
|
|
u8 SataPortsDevSlp[8];
|
|
|
|
|
|
|
|
/* Audio related */
|
|
|
|
u8 EnableAzalia;
|
|
|
|
u8 DspEnable;
|
2015-09-04 01:05:59 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I/O Buffer Ownership:
|
|
|
|
* 0: HD-A Link
|
|
|
|
* 1 Shared, HD-A Link and I2S Port
|
|
|
|
* 3: I2S Ports
|
|
|
|
*/
|
2015-05-13 03:23:27 +02:00
|
|
|
u8 IoBufferOwnership;
|
|
|
|
|
|
|
|
/* Trace Hub function */
|
|
|
|
u8 EnableTraceHub;
|
|
|
|
|
|
|
|
/* Pcie Root Ports */
|
|
|
|
u8 PcieRpEnable[20];
|
|
|
|
u8 PcieRpClkReqSupport[20];
|
|
|
|
u8 PcieRpClkReqNumber[20];
|
|
|
|
|
|
|
|
/* USB related */
|
|
|
|
u8 PortUsb20Enable[16];
|
|
|
|
u8 PortUsb30Enable[10];
|
|
|
|
u8 XdciEnable;
|
|
|
|
u8 SsicPortEnable;
|
intel/skylake: FSP 1.7.0 MemoryInit/SiliconInit params update
In FSP 1.7.0 SataMode and SataEnable have been moved from
MemoryInit to SiliconInit. Also, GpioTablePtr has been removed.
USB phy settings added to SiliconInit, Enable the configs for USB
equalization settings in coreboot.
Addition of serialIO UPD to indicate FSP not to reinitialise
UART2 controller during MemoryInit.
BRANCH=none BUG=chrome-os-partner:45684, chrome-os-partner:42284, chrome-os-partner:41374
TEST=build for Kunimitsu, boot on FAB3, Also checked for Boot from USB, Boot from eMMC,
USB Audio, Onboard Audio, Touch, Wifi, S3 entry/resume
CQ-DEPEND=CL:*232947, CL:*232946, CL:*232948, CL:*232949
Change-Id: I2e8e6e32fc7074774ddcf1fb4c270bb56372b7df
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 623c5a52f3afedaf2c0bfe7361cfd627d093cb73
Original-Change-Id: I8b3be2c49893c564fe2197aa32bde6323bf425e9
Original-Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Original-Signed-off-by: Rishavnath Satapathy <rishavnath.satapathy@intel.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/303661
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/12144
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-10-05 15:41:39 +02:00
|
|
|
u8 Usb2AfePetxiset[16];
|
|
|
|
u8 Usb2AfeTxiset[16];
|
|
|
|
u8 Usb2AfePredeemp[16];
|
|
|
|
u8 Usb2AfePehalfbit[16];
|
|
|
|
u8 Usb3HsioTxDeEmphEnable[10];
|
|
|
|
u8 Usb3HsioTxDeEmph[10];
|
|
|
|
u8 Usb3HsioTxDownscaleAmpEnable[10];
|
|
|
|
u8 Usb3HsioTxDownscaleAmp[10];
|
2015-05-13 03:23:27 +02:00
|
|
|
|
|
|
|
/* SMBus */
|
|
|
|
u8 SmbusEnable;
|
2015-05-13 03:19:47 +02:00
|
|
|
|
|
|
|
/*
|
2015-05-13 03:23:27 +02:00
|
|
|
* SerialIO device mode selection:
|
|
|
|
*
|
|
|
|
* Device index:
|
|
|
|
* PchSerialIoIndexI2C0
|
|
|
|
* PchSerialIoIndexI2C1
|
|
|
|
* PchSerialIoIndexI2C2
|
|
|
|
* PchSerialIoIndexI2C3
|
|
|
|
* PchSerialIoIndexI2C4
|
|
|
|
* PchSerialIoIndexI2C5
|
|
|
|
* PchSerialIoIndexI2C6
|
|
|
|
* PchSerialIoIndexSpi0
|
|
|
|
* PchSerialIoIndexSpi1
|
|
|
|
* PchSerialIoIndexUart0
|
|
|
|
* PchSerialIoIndexUart1
|
|
|
|
* PchSerialIoIndexUart2
|
|
|
|
*
|
|
|
|
* Mode select:
|
|
|
|
* PchSerialIoDisabled
|
|
|
|
* PchSerialIoAcpi
|
|
|
|
* PchSerialIoPci
|
|
|
|
* PchSerialIoAcpiHidden
|
|
|
|
* PchSerialIoLegacyUart
|
2015-05-13 03:19:47 +02:00
|
|
|
*/
|
2015-05-13 03:23:27 +02:00
|
|
|
u8 SerialIoDevMode[PchSerialIoIndexMax];
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Camera */
|
|
|
|
u8 Cio2Enable;
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* eMMC and SD */
|
|
|
|
u8 ScsEmmcEnabled;
|
|
|
|
u8 ScsEmmcHs400Enabled;
|
|
|
|
u8 ScsSdCardEnabled;
|
2015-05-13 03:19:47 +02:00
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
/* Integrated Sensor */
|
|
|
|
u8 IshEnable;
|
|
|
|
|
|
|
|
u8 PttSwitch;
|
|
|
|
u8 HeciTimeouts;
|
|
|
|
u8 HsioMessaging;
|
|
|
|
u8 Heci3Enabled;
|
|
|
|
|
|
|
|
/* Gfx related */
|
|
|
|
u8 IgdDvmt50PreAlloc;
|
|
|
|
u8 PrimaryDisplay;
|
|
|
|
u8 InternalGfx;
|
|
|
|
u8 ApertureSize;
|
|
|
|
u8 SkipExtGfxScan;
|
|
|
|
u8 ScanExtGfxForLegacyOpRom;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The following fields come from fsp_vpd.h
|
|
|
|
* These are configuration values that are passed to FSP during
|
|
|
|
* SiliconInit.
|
|
|
|
*/
|
|
|
|
u32 LogoPtr;
|
|
|
|
u32 LogoSize;
|
|
|
|
u32 GraphicsConfigPtr;
|
|
|
|
u8 Device4Enable;
|
2015-09-08 12:30:46 +02:00
|
|
|
u8 RtcLock;
|
2015-07-22 08:49:28 +02:00
|
|
|
/* GPIO IRQ Route The valid values is 14 or 15*/
|
|
|
|
u8 GpioIrqSelect;
|
|
|
|
/* SCI IRQ Select The valid values is 9, 10, 11 and 20 21, 22, 23*/
|
|
|
|
u8 SciIrqSelect;
|
|
|
|
/* TCO IRQ Select The valid values is 9, 10, 11, 20 21, 22, 23*/
|
|
|
|
u8 TcoIrqSelect;
|
|
|
|
u8 TcoIrqEnable;
|
2015-05-13 03:19:47 +02:00
|
|
|
};
|
|
|
|
|
2015-05-13 03:23:27 +02:00
|
|
|
typedef struct soc_intel_skylake_config config_t;
|
2015-05-13 03:19:47 +02:00
|
|
|
|
|
|
|
extern struct chip_operations soc_ops;
|
|
|
|
|
|
|
|
#endif
|