summaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/atlas/devicetree.cb
blob: 7b094e4fc03f7eef2fb703c24a91f702a77eca01 (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
chip soc/intel/alderlake

	# GPE configuration
	# Note that GPE events called out in ASL code rely on this
	# route. i.e. If this route changes then the affected GPE
	# offset bits also need to be changed.
	register "pmc_gpe0_dw0" = "GPP_B"
	register "pmc_gpe0_dw1" = "GPP_D"
	register "pmc_gpe0_dw2" = "GPP_E"

	# USB configuration
	register "usb2_ports[0]" = "USB2_PORT_MID(OC0)"
	register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
	register "usb2_ports[2]" = "USB2_PORT_MID(OC1)"
	register "usb2_ports[3]" = "USB2_PORT_MID(OC1)"
	register "usb2_ports[4]" = "USB2_PORT_MID(OC2)"
	register "usb2_ports[5]" = "USB2_PORT_MID(OC2)"
	register "usb2_ports[6]" = "USB2_PORT_MID(OC3)"
	register "usb2_ports[7]" = "USB2_PORT_MID(OC3)"

	register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
	register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
	register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC1)"
	register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC1)"

	register "SataSalpSupport" = "1"

	register "SataPortsEnable" = "{
		[0] = 1,
		[1] = 1,
	}"

	register "SataPortsDevSlp" = "{
		[0] = 1,
		[1] = 1,
	}"

	register "SerialIoUartMode" = "{
		[PchSerialIoIndexUART0] = PchSerialIoSkipInit,
		[PchSerialIoIndexUART1] = PchSerialIoPci,
		[PchSerialIoIndexUART2] = PchSerialIoDisabled,
	}"

	# Enable PCH PCIE RP 5, 6, 7, 8, 9, 10 using free running CLK (0x80)
	# Clock source is shared hence marked as free running.
	register "pch_pcie_rp[PCH_RP(5)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pch_pcie_rp[PCH_RP(6)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pch_pcie_rp[PCH_RP(7)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pch_pcie_rp[PCH_RP(8)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pch_pcie_rp[PCH_RP(9)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pch_pcie_rp[PCH_RP(10)]" = "{
		.flags = PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "pcie_clk_config_flag[0]" = "PCIE_CLK_FREE_RUNNING"
	register "pcie_clk_config_flag[1]" = "PCIE_CLK_FREE_RUNNING"

	# Enable CPU PCIE RP 1, 2, 3 using using free running CLK (0x80)
	# Clock source is shared hence marked as free running.
	register "cpu_pcie_rp[CPU_RP(1)]" = "{
		.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "cpu_pcie_rp[CPU_RP(2)]" = "{
		.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED,
	}"
	register "cpu_pcie_rp[CPU_RP(3)]" = "{
		.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED,
	}"

	device domain 0 on
		device ref pcie5 on end
		device ref igpu on end
		device ref dtt on end
		device ref pcie4_0 on end
		device ref pcie4_1 on end
		device ref crashlog off end
		device ref xhci on end
		device ref heci1 on end
		device ref sata on end
		device ref pcie_rp5 on end
		device ref pcie_rp6 on end
		device ref pcie_rp8 on end
		device ref pcie_rp9 on end
		device ref pcie_rp10 on end
		device ref uart0 on end
		device ref uart1 on end
		device ref p2sb on end
		device ref hda on end
		device ref smbus on end
	end
end