mb/cwwk/adl: Fix HDMI, PCIe CLKREQ, EC, TPM

- Update VBT to fix HDMI
- Enable ITE environment controller
- Enable PTT fTPM
- Disable s0ix, it never worked and will crash if used
- Set CLKREQ# based on register values from vendor firmware
- Set pmc_gpe0_dw{0-3} to fix "Duplicate GPE DW register values"

Change-Id: I9365e76c593b7e4a334dcdc5ecd46da253e14716
Signed-off-by: Brandon Weeks <bweeks@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86260
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Brandon Weeks 2025-02-03 16:28:28 -08:00 committed by Felix Held
commit 0e775bc390
3 changed files with 42 additions and 21 deletions

View file

@ -5,10 +5,12 @@ if BOARD_CWWK_ADL_N
config BOARD_SPECIFIC_OPTIONS
def_bool y
select BOARD_ROMSIZE_KB_16384
select CRB_TPM
select DRIVERS_UART_8250IO
select FSP_TYPE_IOT
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
select HAVE_INTEL_PTT
select INTEL_GMA_HAVE_VBT
select SOC_INTEL_ALDERLAKE_PCH_N
select SUPERIO_ITE_IT8613E

Binary file not shown.

View file

@ -1,6 +1,8 @@
chip soc/intel/alderlake
register "s0ix_enable" = "true"
register "pmc_gpe0_dw0" = "GPP_B"
register "pmc_gpe0_dw1" = "GPP_D"
register "pmc_gpe0_dw2" = "GPP_E"
register "usb2_ports[0]" = "USB2_PORT_SHORT(OC_SKIP)"
register "usb2_ports[1]" = "USB2_PORT_SHORT(OC_SKIP)"
@ -14,45 +16,49 @@ chip soc/intel/alderlake
register "pch_pcie_rp[PCH_RP(1)]" = "{
.clk_src = 0,
.clk_req = 0,
.flags = PCIE_RP_LTR | PCIE_RP_AER,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_DETECT,
}"
register "pch_pcie_rp[PCH_RP(7)]" = "{
.clk_src = 1,
.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_DISABLE,
.clk_req = 1,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_DETECT | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_L0S,
}"
register "pch_pcie_rp[PCH_RP(9)]" = "{
.clk_src = 2,
.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_DISABLE,
.clk_req = 2,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_DETECT | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_L0S,
}"
register "pch_pcie_rp[PCH_RP(10)]" = "{
.clk_src = 3,
.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_DISABLE,
.clk_req = 3,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_DETECT | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_L0S,
}"
register "pch_pcie_rp[PCH_RP(11)]" = "{
.clk_src = 4,
.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_DISABLE,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_L0S,
}"
register "pch_pcie_rp[PCH_RP(12)]" = "{
.clk_src = 4,
.flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED,
.pcie_rp_aspm = ASPM_DISABLE,
.flags = PCIE_RP_AER | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
.pcie_rp_aspm = ASPM_L0S,
}"
# Enable EDP in PortA
register "ddi_portA_config" = "1"
register "ddi_ports_config" = "{
[DDI_PORT_A] = DDI_ENABLE_HPD,
[DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC,
}"
device domain 0 on
device ref igpu on end
device ref dtt on end
device ref crashlog off end
device ref xhci on end
device ref shared_sram on end
@ -63,21 +69,34 @@ chip soc/intel/alderlake
device ref pcie_rp11 on end
device ref pcie_rp12 on end # M.2 E key port
device ref pch_espi on
register "gen1_dec" = "0x00fc0201"
register "gen2_dec" = "0x003c0a01"
register "gen3_dec" = "0x000c0081"
chip superio/ite/it8613e
register "FAN2.mode" = "FAN_SMART_SOFTWARE" # CPU_FAN
register "FAN3.mode" = "FAN_SMART_SOFTWARE" # SYS_FAN
device pnp 2e.0 off end
device pnp 2e.1 on # COM 1
device pnp 2e.1 on # COM 1
io 0x60 = 0x3f8
irq 0x70 = 0x4
irq 0xf0 = 0x1
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
device pnp 2e.4 on # Environment Controller
io 0x60 = 0x0a30
io 0x62 = 0x0a20
irq 0x70 = 0x00
irq 0x71 = 0x80
end
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 ref hda on end
device ref smbus on end
chip drivers/crb
device mmio 0xfed40000 on end
end
end
end