mb/google/nissa/var/rull: Add 6W and 15W DPTF parameters
[coreboot.git] / src / soc / intel / braswell / chip.h
blobde86a1248844ffd61a833875b405106e54cf610f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /*
4 * The devicetree parser expects chip.h to reside directly in the path
5 * specified by the devicetree.
6 */
8 #ifndef _SOC_CHIP_H_
9 #define _SOC_CHIP_H_
11 #include <drivers/intel/gma/i915.h>
12 #include <fsp/util.h>
13 #include <intelblocks/lpc_lib.h>
14 #include <soc/pci_devs.h>
15 #include <types.h>
17 #define SVID_CONFIG1 1
18 #define SVID_CONFIG3 3
19 #define SVID_PMIC_CONFIG 8
21 #define IGD_MEMSIZE_32MB 0x01
22 #define IGD_MEMSIZE_64MB 0x02
23 #define IGD_MEMSIZE_96MB 0x03
24 #define IGD_MEMSIZE_128MB 0x04
26 enum lpe_clk_src {
27 LPE_CLK_SRC_XTAL,
28 LPE_CLK_SRC_PLL,
31 enum usb_comp_bg_value {
32 USB_COMP_BG_575_MV = 7,
33 USB_COMP_BG_650_MV = 6,
34 USB_COMP_BG_550_MV = 5,
35 USB_COMP_BG_537_MV = 4,
36 USB_COMP_BG_625_MV = 3,
37 USB_COMP_BG_700_MV = 2,
38 USB_COMP_BG_600_MV = 1,
39 USB_COMP_BG_675_MV = 0,
42 struct soc_intel_braswell_config {
43 bool enable_xdp_tap;
45 enum serirq_mode serirq_mode;
47 /* Disable SLP_X stretching after SUS power well loss */
48 bool disable_slp_x_stretch_sus_fail;
50 /* LPE Audio Clock configuration */
51 enum lpe_clk_src lpe_codec_clk_src; /* Both are 19.2MHz */
53 /* Native SD Card controller - override controller capabilities */
54 uint32_t sdcard_cap_low;
55 uint32_t sdcard_cap_high;
57 /* Enable devices in ACPI mode */
58 bool lpss_acpi_mode;
59 bool emmc_acpi_mode;
60 bool sd_acpi_mode;
61 bool lpe_acpi_mode;
63 /* Allow PCIe devices to wake system from suspend */
64 bool pcie_wake_enable;
66 /* Program USB2_COMPBG register.
67 * [10:7] - select vref to AFE port
68 * x111 - 575mV, x110 - 650mV, x101 - 550mV, x100 - 537.5mV,
69 * x011 - 625mV, x010 - 700mV, x001 - 600mV, x000 - 675mV
71 enum usb_comp_bg_value usb_comp_bg;
74 * The following fields come from fsp_vpd.h .aka. VpdHeader.h.
75 * These are configuration values that are passed to FSP during MemoryInit.
77 uint8_t PcdMrcInitSpdAddr1;
78 uint8_t PcdMrcInitSpdAddr2;
79 uint8_t PcdIgdDvmt50PreAlloc;
80 uint8_t PcdDvfsEnable;
81 uint8_t PcdCaMirrorEn; /* Command Address Mirroring Enabled */
84 * The following fields come from fsp_vpd.h .aka. VpdHeader.h.
85 * These are configuration values that are passed to FSP during SiliconInit.
87 uint8_t PcdSdcardMode;
88 uint8_t PcdEnableHsuart0;
89 uint8_t PcdEnableHsuart1;
90 uint8_t PcdEnableAzalia;
91 uint8_t PcdEnableSata;
92 uint8_t PcdEnableXhci;
93 uint8_t PcdEnableLpe;
94 uint8_t PcdEnableDma0;
95 uint8_t PcdEnableDma1;
96 uint8_t PcdEnableI2C0;
97 uint8_t PcdEnableI2C1;
98 uint8_t PcdEnableI2C2;
99 uint8_t PcdEnableI2C3;
100 uint8_t PcdEnableI2C4;
101 uint8_t PcdEnableI2C5;
102 uint8_t PcdEnableI2C6;
103 uint8_t PunitPwrConfigDisable;
104 uint8_t ChvSvidConfig;
105 uint8_t PcdEmmcMode;
106 uint8_t Usb2Port0PerPortPeTxiSet;
107 uint8_t Usb2Port0PerPortTxiSet;
108 uint8_t Usb2Port0IUsbTxEmphasisEn;
109 uint8_t Usb2Port0PerPortTxPeHalf;
110 uint8_t Usb2Port1PerPortPeTxiSet;
111 uint8_t Usb2Port1PerPortTxiSet;
112 uint8_t Usb2Port1IUsbTxEmphasisEn;
113 uint8_t Usb2Port1PerPortTxPeHalf;
114 uint8_t Usb2Port2PerPortPeTxiSet;
115 uint8_t Usb2Port2PerPortTxiSet;
116 uint8_t Usb2Port2IUsbTxEmphasisEn;
117 uint8_t Usb2Port2PerPortTxPeHalf;
118 uint8_t Usb2Port3PerPortPeTxiSet;
119 uint8_t Usb2Port3PerPortTxiSet;
120 uint8_t Usb2Port3IUsbTxEmphasisEn;
121 uint8_t Usb2Port3PerPortTxPeHalf;
122 uint8_t Usb2Port4PerPortPeTxiSet;
123 uint8_t Usb2Port4PerPortTxiSet;
124 uint8_t Usb2Port4IUsbTxEmphasisEn;
125 uint8_t Usb2Port4PerPortTxPeHalf;
126 uint8_t Usb3Lane0Ow2tapgen2deemph3p5;
127 uint8_t Usb3Lane1Ow2tapgen2deemph3p5;
128 uint8_t Usb3Lane2Ow2tapgen2deemph3p5;
129 uint8_t Usb3Lane3Ow2tapgen2deemph3p5;
130 uint8_t PcdPchUsbSsicPort;
131 uint8_t PcdPchUsbHsicPort;
132 uint8_t PcdPchSsicEnable;
133 uint8_t PMIC_I2CBus;
134 uint8_t ISPEnable;
135 uint8_t ISPPciDevConfig;
136 uint8_t PcdSdDetectChk; /* Enable / Disable SD Card Detect Simulation */
137 uint8_t I2C0Frequency; /* 0 - 100KHz, 1 - 400KHz, 2 - 1MHz */
138 uint8_t I2C1Frequency;
139 uint8_t I2C2Frequency;
140 uint8_t I2C3Frequency;
141 uint8_t I2C4Frequency;
142 uint8_t I2C5Frequency;
143 uint8_t I2C6Frequency;
145 struct i915_gpu_controller_info gfx;
148 #endif /* _SOC_CHIP_H_ */