summaryrefslogtreecommitdiff
path: root/src/mainboard/protectli/vault_bsw/devicetree.cb
blob: 94c083d13a3246b2284481b47e9d7db29d4f03fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
chip soc/intel/braswell

	############################################################
	# Set the parameters for MemoryInit
	############################################################

	register "PcdMrcInitTsegSize" = "8"	# SMM Region size in MiB

	register "PcdMrcInitMmioSize" = "0x0800"
	register "PcdMrcInitSpdAddr1" = "0xa0"
	register "PcdMrcInitSpdAddr2" = "0xa2"
	register "PcdIgdDvmt50PreAlloc" = "IGD_MEMSIZE_32MB"
	register "PcdApertureSize" = "2"
	register "PcdGttSize" = "1"
	register "PcdDvfsEnable" = "0"
	register "PcdCaMirrorEn" = "1"

	############################################################
	# Set the parameters for SiliconInit
	############################################################

	register "PcdSdcardMode" = "PCH_DISABLED"
	register "PcdEnableHsuart0" = "0"
	register "PcdEnableHsuart1" = "0"
	register "PcdEnableAzalia" = "1"
	register "PcdEnableXhci" = "1"
	register "PcdEnableLpe" = "0"
	register "PcdEnableDma0" = "0"
	register "PcdEnableDma1" = "0"
	register "PcdEnableI2C0" = "0"
	register "PcdEnableI2C1" = "0"
	register "PcdEnableI2C2" = "0"
	register "PcdEnableI2C3" = "0"
	register "PcdEnableI2C4" = "0"
	register "PcdEnableI2C5" = "0"
	register "PcdEnableI2C6" = "0"
	register "PunitPwrConfigDisable" = "1"	# Disable SVID
	register "ChvSvidConfig" = "SVID_PMIC_CONFIG"
	register "PcdEmmcMode" = "PCH_DISABLED"
	register "PcdUsb3ClkSsc" = "1"
	register "PcdDispClkSsc" = "1"
	register "PcdSataClkSsc" = "1"
	register "PcdEnableSata" = "1"
	register "Usb2Port0PerPortPeTxiSet" = "7"
	register "Usb2Port0PerPortTxiSet" = "6"
	register "Usb2Port0IUsbTxEmphasisEn" = "3"
	register "Usb2Port0PerPortTxPeHalf" = "1"
	register "Usb2Port1PerPortPeTxiSet" = "7"
	register "Usb2Port1PerPortTxiSet" = "6"
	register "Usb2Port1IUsbTxEmphasisEn" = "3"
	register "Usb2Port1PerPortTxPeHalf" = "1"
	register "Usb2Port2PerPortPeTxiSet" = "7"
	register "Usb2Port2PerPortTxiSet" = "6"
	register "Usb2Port2IUsbTxEmphasisEn" = "3"
	register "Usb2Port2PerPortTxPeHalf" = "1"
	register "Usb2Port3PerPortPeTxiSet" = "7"
	register "Usb2Port3PerPortTxiSet" = "6"
	register "Usb2Port3IUsbTxEmphasisEn" = "3"
	register "Usb2Port3PerPortTxPeHalf" = "1"
	register "Usb2Port4PerPortPeTxiSet" = "7"
	register "Usb2Port4PerPortTxiSet" = "6"
	register "Usb2Port4IUsbTxEmphasisEn" = "3"
	register "Usb2Port4PerPortTxPeHalf" = "1"
	register "Usb3Lane0Ow2tapgen2deemph3p5" = "0x3a"
	register "Usb3Lane1Ow2tapgen2deemph3p5" = "0x64"
	register "Usb3Lane2Ow2tapgen2deemph3p5" = "0x64"
	register "Usb3Lane3Ow2tapgen2deemph3p5" = "0x3a"
	register "PcdSataInterfaceSpeed" = "3"
	register "PcdPchSsicEnable" = "1"
	register "PcdRtcLock" = "0"	# Disable RTC access locking to NVRAM
	register "PMIC_I2CBus" = "0"
	register "ISPEnable" = "0"		# Disable IUNIT
	register "ISPPciDevConfig" = "3"
	register "PcdSdDetectChk" = "0" # Disable SD card detect
	register "DptfDisable" = "1"

	# Enable devices in PCI mode
	register "lpss_acpi_mode" = "0"
	register "emmc_acpi_mode" = "0"
	register "sd_acpi_mode" = "0"
	register "lpe_acpi_mode" = "0"

	# Disable SLP_X stretching after SUS power well fail.
	register "disable_slp_x_stretch_sus_fail" = "1"

	# Allow PCIe devices to wake system from suspend
	register "pcie_wake_enable" = "1"

	# Enable SERIRQ continuous
	register "serirq_mode" = "SERIRQ_CONTINUOUS"

	device cpu_cluster 0 on
		device lapic 0 on end
	end
	device domain 0 on
		device pci 00.0 on  end	# 8086 2280 - SoC transaction router
		device pci 02.0 on  end	# 8086 22b0/22b1 - B1/C0 stepping GFX
		device pci 03.0 off end	# 8086 22b8 - Camera and Image Processor
		device pci 0b.0 off end	# 8086 22dc - PUNIT/DPTF
		device pci 10.0 off end	# 8086 2294 - MMC Port
		device pci 12.0 off end	# 8086 2296 - SD Port
		device pci 13.0 on  end	# 8086 22a3 - Sata controller
		device pci 14.0 on  end	# 8086 22b5 - USB XHCI
		device pci 18.0 off end	# 8086 22c0 - SIO - DMA
		device pci 18.1 off end	# 8086 22c1 -   I2C Port 1
		device pci 18.2 off end	# 8086 22c2 -   I2C Port 2
		device pci 18.3 off end	# 8086 22c3 -   I2C Port 3
		device pci 18.4 off end	# 8086 22c4 -   I2C Port 4
		device pci 18.5 off end	# 8086 22c5 -   I2C Port 5
		device pci 18.6 off end	# 8086 22c6 -   I2C Port 6
		device pci 18.7 off end	# 8086 22c7 -   I2C Port 7
		device pci 1a.0 on  end	# 8086 2298 - Trusted Execution Engine
		device pci 1b.0 on  end	# 8086 2284 - HD Audio
		device pci 1c.0 on  end	# 8086 22c8 - PCIe Root Port 1
		device pci 1c.1 on  end	# 8086 22ca - PCIe Root Port 2
		device pci 1c.2 on  end	# 8086 22cc - PCIe Root Port 3
		device pci 1c.3 on	# 8086 22ce - PCIe Root Port 4
			smbios_slot_desc
				"SlotTypePciExpressMini52pinWithoutBSKO"
				"SlotLengthShort" "WIFI" "SlotDataBusWidth1X"
		end
		device pci 1e.0 off end	# 8086 2286 - SIO - DMA
		device pci 1e.3 off end	# 8086 228a -   HSUART 1
		device pci 1e.4 off end	# 8086 228c -   HSUART 2
		device pci 1f.0 on	# 8086 229c - LPC bridge
			chip superio/ite/it8613e
				device pnp 2e.0 off end
				device pnp 2e.1 on	# COM 1
					io 0x60 = 0x3f8
					irq 0x70 = 4
				end
				device pnp 2e.4 off end # Environment Controller
				device pnp 2e.5 off end # Keyboard
				device pnp 2e.6 off end # Mouse
				device pnp 2e.7 off end # GPIO
				device pnp 2e.a off end # CIR
			end
		end
		device pci 1f.3 on end	# 8086 2292 - SMBus 0
	end
end