payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / system76 / gaze16 / devicetree.cb
blobe26fe629b4f716c664fc44d7662869afc273f597
1 chip soc/intel/tigerlake
2 register "common_soc_config" = "{
3 // Touchpad I2C bus
4 .i2c[0] = {
5 .speed = I2C_SPEED_FAST,
6 .rise_time_ns = 80,
7 .fall_time_ns = 110,
8 },
9 }"
11 # ACPI (soc/intel/tigerlake/acpi.c)
12 # Enable Enhanced Intel SpeedStep
13 register "eist_enable" = "1"
15 # CPU (soc/intel/tigerlake/cpu.c)
16 # Power limits
17 register "power_limits_config[POWER_LIMITS_H_8_CORE]" = "{
18 .tdp_pl1_override = 45,
19 .tdp_pl2_override = 109,
21 register "power_limits_config[POWER_LIMITS_H_6_CORE]" = "{
22 .tdp_pl1_override = 45,
23 .tdp_pl2_override = 109,
26 # FSP Memory (soc/intel/tigerlake/romstage/fsp_params.c)
27 # Enable C6 DRAM
28 register "enable_c6dram" = "1"
30 # FSP Silicon (soc/intel/tigerlake/fsp_params.c)
31 # Acoustic settings
32 register "AcousticNoiseMitigation" = "1"
33 register "SlowSlewRate" = "SLEW_FAST_8"
34 register "FastPkgCRampDisable" = "1"
36 # FIVR configuration
37 # Read EXT_RAIL_CONFIG to determine bitmaps
38 # sudo devmem2 0xfe0011b8
39 # 0x0
40 # Read EXT_V1P05_VR_CONFIG
41 # sudo devmem2 0xfe0011c0
42 # 0x1a42000
43 # Read EXT_VNN_VR_CONFIG0
44 # sudo devmem2 0xfe0011c4
45 # 0x1a42000
46 # TODO: v1p05 voltage and vnn icc max?
47 register "ext_fivr_settings" = "{
48 .configure_ext_fivr = 1,
49 .v1p05_enable_bitmap = 0,
50 .vnn_enable_bitmap = 0,
51 .v1p05_supported_voltage_bitmap = 0,
52 .vnn_supported_voltage_bitmap = 0,
53 .v1p05_icc_max_ma = 500,
54 .vnn_sx_voltage_mv = 1050,
57 # Disable S0ix substates
58 register "LpmStateDisableMask" = "
59 LPM_S0i2_1 |
60 LPM_S0i2_2 |
61 LPM_S0i3_1 |
62 LPM_S0i3_2 |
63 LPM_S0i3_3 |
64 LPM_S0i3_4
67 # Thermal
68 # rdmsr --bitfield 31:24 --decimal 0x1A2
69 register "tcc_offset" = "8"
71 # Enable CNVi BT
72 register "CnviBtCore" = "true"
74 # PM Util (soc/intel/tigerlake/pmutil.c)
75 # GPE configuration
76 register "pmc_gpe0_dw0" = "PMC_GPP_R"
77 register "pmc_gpe0_dw1" = "PMC_GPP_B"
78 register "pmc_gpe0_dw2" = "PMC_GPP_D"
80 # Actual device tree
81 device cpu_cluster 0 on
82 device lapic 0 on end
83 end
85 device domain 0 on
86 #From CPU EDS(575683)
87 device ref system_agent on end
88 device ref igpu on
89 # DDIA is eDP
90 register "DdiPortAConfig" = "DDI_PORT_CFG_EDP"
91 register "DdiPortAHpd" = "1"
92 register "DdiPortADdc" = "0"
94 # DDIB is HDMI
95 register "DdiPortBConfig" = "DDI_PORT_CFG_NO_LFP"
96 register "DdiPortBHpd" = "1"
97 register "DdiPortBDdc" = "1"
99 register "gfx" = "GMA_DEFAULT_PANEL(0)"
101 device ref dptf on end
102 device ref gna on end
103 device ref north_xhci on
104 # TODO: No TBT, but needed for USB 2.0 on Type-C port?
105 register "TcssXhciEn" = "1"
108 # From PCH EDS(615985)
109 device ref shared_ram on end
110 device ref cnvi_wifi on
111 chip drivers/wifi/generic
112 register "wake" = "GPE0_PME_B0"
113 device generic 0 on end
116 device ref i2c0 on
117 # Touchpad I2C bus
118 register "SerialIoI2cMode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
119 chip drivers/i2c/hid
120 register "generic.hid" = ""ELAN0412""
121 register "generic.desc" = ""ELAN Touchpad""
122 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_R12)"
123 register "generic.detect" = "1"
124 register "hid_desc_reg_offset" = "0x01"
125 device i2c 15 on end
128 device ref heci1 on end
129 device ref uart2 on
130 # Debug console
131 register "SerialIoUartMode[PchSerialIoIndexUART2]" = "PchSerialIoSkipInit"
133 device ref pch_espi on
134 register "gen1_dec" = "0x00040069" # EC PM channel
135 register "gen2_dec" = "0x00fc0E01" # AP/EC command
136 register "gen3_dec" = "0x00fc0F01" # AP/EC debug
137 chip drivers/pc80/tpm
138 device pnp 0c31.0 on end
141 device ref p2sb on end
142 device ref pmc hidden end
143 device ref hda on
144 register "PchHdaAudioLinkHdaEnable" = "1"
146 device ref smbus on end
147 device ref fast_spi on end