Compare commits
7 Commits
bonw15
...
f450af3321
Author | SHA1 | Date | |
---|---|---|---|
|
f450af3321 | ||
|
e92ae5d705 | ||
|
9b115ee72c | ||
|
8c9e6ad983 | ||
|
38a0553447 | ||
|
05584923bf | ||
|
0bbcbd18fc |
@@ -23,6 +23,9 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
|||||||
params->SataPortDevSlpPinMux[1] = 0x5967400d; // GPP_H13
|
params->SataPortDevSlpPinMux[1] = 0x5967400d; // GPP_H13
|
||||||
|
|
||||||
params->SataPortsSolidStateDrive[1] = 1;
|
params->SataPortsSolidStateDrive[1] = 1;
|
||||||
|
|
||||||
|
// Enable reporting CPU C10 state over eSPI
|
||||||
|
params->PchEspiHostC10ReportEnable = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mainboard_init(void *chip_info)
|
static void mainboard_init(void *chip_info)
|
||||||
|
@@ -151,12 +151,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 4,
|
.clk_req = 4,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)" # SSD1_PWR_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B16)" # M2_SSD1_RST#
|
|
||||||
register "srcclk_pin" = "4" # SSD1_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pmc hidden
|
device ref pmc hidden
|
||||||
chip drivers/intel/pmc_mux
|
chip drivers/intel/pmc_mux
|
||||||
|
@@ -103,14 +103,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 1,
|
.clk_req = 1,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable tied to 3.3VS?
|
|
||||||
#register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D14)" # M2_PWR_EN1
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "disable_l23" = "true"
|
|
||||||
register "srcclk_pin" = "1" # SSD1_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp9 on
|
device ref pcie_rp9 on
|
||||||
# PCIe RP#9 x1, Clock 6 (GLAN)
|
# PCIe RP#9 x1, Clock 6 (GLAN)
|
||||||
@@ -119,13 +111,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 6,
|
.clk_req = 6,
|
||||||
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable tied to VDD3?
|
|
||||||
#register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D4)" # GPIO_LAN_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "6" # GLAN_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp10 on
|
device ref pcie_rp10 on
|
||||||
# PCIe RP#10 x1, Clock 2 (WLAN)
|
# PCIe RP#10 x1, Clock 2 (WLAN)
|
||||||
@@ -134,12 +119,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 2,
|
.clk_req = 2,
|
||||||
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)" # PCH_WLAN_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "2" # WLAN_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp11 on
|
device ref pcie_rp11 on
|
||||||
# PCIe RP#11 x1, Clock 5 (CARD)
|
# PCIe RP#11 x1, Clock 5 (CARD)
|
||||||
@@ -148,13 +127,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 5,
|
.clk_req = 5,
|
||||||
.flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER,
|
.flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable tied to 3.3VS?
|
|
||||||
#register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B7)" # CARD_PWR_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "5" # CARD_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -109,12 +109,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 2,
|
.clk_req = 2,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)" # PCH_WLAN_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "2" # WLAN_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp6 on
|
device ref pcie_rp6 on
|
||||||
# PCIe root port #6 x1, Clock 5 (CARD)
|
# PCIe root port #6 x1, Clock 5 (CARD)
|
||||||
@@ -123,12 +117,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 5,
|
.clk_req = 5,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: No enable_gpio = no D3cold?
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "5" # CARD_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp7 on
|
device ref pcie_rp7 on
|
||||||
# PCIe root port #7 x1, Clock 6 (GLAN)
|
# PCIe root port #7 x1, Clock 6 (GLAN)
|
||||||
@@ -147,14 +135,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 1,
|
.clk_req = 1,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable tied to 3.3VS?
|
|
||||||
#register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C2)" # SATA_M2_PWR_EN1
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "disable_l23" = "true" # Fixes suspend on WD drives
|
|
||||||
register "srcclk_pin" = "1" # SSD_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref gbe on end
|
device ref gbe on end
|
||||||
end
|
end
|
||||||
|
@@ -137,12 +137,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 1,
|
.clk_req = 1,
|
||||||
.flags = PCIE_RP_LTR,
|
.flags = PCIE_RP_LTR,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)" # SSD1_PWR_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)" # M2_SSD1_RST#
|
|
||||||
register "srcclk_pin" = "1" # SSD1_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pmc hidden
|
device ref pmc hidden
|
||||||
chip drivers/intel/pmc_mux
|
chip drivers/intel/pmc_mux
|
||||||
|
@@ -150,12 +150,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 2,
|
.clk_req = 2,
|
||||||
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E3)" # PCH_WLAN_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "2" # WLAN_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp6 on
|
device ref pcie_rp6 on
|
||||||
# PCIe RP#6 x1, Clock 6 (CARD)
|
# PCIe RP#6 x1, Clock 6 (CARD)
|
||||||
@@ -164,12 +158,6 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 6,
|
.clk_req = 6,
|
||||||
.flags = PCIE_RP_HOTPLUG | PCIE_RP_AER,
|
.flags = PCIE_RP_HOTPLUG | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable connected directly to 3.3VS?
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "6" # CARD_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
device ref pcie_rp8 on
|
device ref pcie_rp8 on
|
||||||
# PCIe RP#8 x1, Clock 5 (GLAN)
|
# PCIe RP#8 x1, Clock 5 (GLAN)
|
||||||
@@ -178,15 +166,7 @@ chip soc/intel/alderlake
|
|||||||
.clk_req = 5,
|
.clk_req = 5,
|
||||||
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
.flags = PCIE_RP_LTR | PCIE_RP_AER,
|
||||||
}"
|
}"
|
||||||
chip soc/intel/common/block/pcie/rtd3
|
|
||||||
# XXX: Enable connected directly to VDD3?
|
|
||||||
#register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D4)" # GPIO_LAN_EN
|
|
||||||
register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_B13)" # BUF_PLT_RST#
|
|
||||||
register "srcclk_pin" = "5" # GLAN_CLKREQ#
|
|
||||||
device generic 0 on end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
device ref pmc hidden
|
device ref pmc hidden
|
||||||
chip drivers/intel/pmc_mux
|
chip drivers/intel/pmc_mux
|
||||||
device generic 0 on
|
device generic 0 on
|
||||||
|
@@ -3,6 +3,8 @@ CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
|
|||||||
bootblock-y += bootblock.c
|
bootblock-y += bootblock.c
|
||||||
bootblock-y += gpio_early.c
|
bootblock-y += gpio_early.c
|
||||||
|
|
||||||
|
romstage-y += variants/$(VARIANT_DIR)/romstage.c
|
||||||
|
|
||||||
ramstage-y += ramstage.c
|
ramstage-y += ramstage.c
|
||||||
ramstage-y += variants/$(VARIANT_DIR)/gpio.c
|
ramstage-y += variants/$(VARIANT_DIR)/gpio.c
|
||||||
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
|
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
|
||||||
|
@@ -68,9 +68,6 @@ chip soc/intel/tigerlake
|
|||||||
# rdmsr --bitfield 31:24 --decimal 0x1A2
|
# rdmsr --bitfield 31:24 --decimal 0x1A2
|
||||||
register "tcc_offset" = "8"
|
register "tcc_offset" = "8"
|
||||||
|
|
||||||
# Enable CNVi BT
|
|
||||||
register "CnviBtCore" = "true"
|
|
||||||
|
|
||||||
# PM Util (soc/intel/tigerlake/pmutil.c)
|
# PM Util (soc/intel/tigerlake/pmutil.c)
|
||||||
# GPE configuration
|
# GPE configuration
|
||||||
register "pmc_gpe0_dw0" = "PMC_GPP_R"
|
register "pmc_gpe0_dw0" = "PMC_GPP_R"
|
||||||
@@ -103,6 +100,8 @@ chip soc/intel/tigerlake
|
|||||||
# From PCH EDS(615985)
|
# From PCH EDS(615985)
|
||||||
device ref shared_ram on end
|
device ref shared_ram on end
|
||||||
device ref cnvi_wifi on
|
device ref cnvi_wifi on
|
||||||
|
register "CnviBtCore" = true
|
||||||
|
register "CnviBtAudioOffload" = true
|
||||||
chip drivers/wifi/generic
|
chip drivers/wifi/generic
|
||||||
register "wake" = "GPE0_PME_B0"
|
register "wake" = "GPE0_PME_B0"
|
||||||
device generic 0 on end
|
device generic 0 on end
|
||||||
|
@@ -18,4 +18,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
|||||||
|
|
||||||
// Remap PEG2 as PEG1
|
// Remap PEG2 as PEG1
|
||||||
params->CpuPcieRpFunctionSwap = 1;
|
params->CpuPcieRpFunctionSwap = 1;
|
||||||
|
|
||||||
|
// Enable reporting CPU C10 state over ESPI
|
||||||
|
params->PchEspiHostC10ReportEnable = 1;
|
||||||
}
|
}
|
||||||
|
@@ -15,4 +15,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
|||||||
params->CpuPcieRpAdvancedErrorReporting[1] = 0;
|
params->CpuPcieRpAdvancedErrorReporting[1] = 0;
|
||||||
params->CpuPcieRpLtrEnable[1] = 1;
|
params->CpuPcieRpLtrEnable[1] = 1;
|
||||||
params->CpuPcieRpPtmEnabled[1] = 0;
|
params->CpuPcieRpPtmEnabled[1] = 0;
|
||||||
|
|
||||||
|
// Enable reporting CPU C10 state over ESPI
|
||||||
|
params->PchEspiHostC10ReportEnable = 1;
|
||||||
}
|
}
|
||||||
|
@@ -21,4 +21,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
|||||||
|
|
||||||
// Low latency legacy I/O
|
// Low latency legacy I/O
|
||||||
params->PchLegacyIoLowLatency = 1;
|
params->PchLegacyIoLowLatency = 1;
|
||||||
|
|
||||||
|
// Enable reporting CPU C10 state over ESPI
|
||||||
|
params->PchEspiHostC10ReportEnable = 1;
|
||||||
}
|
}
|
||||||
|
@@ -62,9 +62,6 @@ chip soc/intel/tigerlake
|
|||||||
# Thermal
|
# Thermal
|
||||||
register "tcc_offset" = "12"
|
register "tcc_offset" = "12"
|
||||||
|
|
||||||
# Enable CNVi BT
|
|
||||||
register "CnviBtCore" = "true"
|
|
||||||
|
|
||||||
# Actual device tree
|
# Actual device tree
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
@@ -90,6 +87,8 @@ chip soc/intel/tigerlake
|
|||||||
device ref gna on end
|
device ref gna on end
|
||||||
device ref shared_ram on end
|
device ref shared_ram on end
|
||||||
device ref cnvi_wifi on
|
device ref cnvi_wifi on
|
||||||
|
register "CnviBtCore" = true
|
||||||
|
register "CnviBtAudioOffload" = true
|
||||||
chip drivers/wifi/generic
|
chip drivers/wifi/generic
|
||||||
register "wake" = "GPE0_PME_B0"
|
register "wake" = "GPE0_PME_B0"
|
||||||
device generic 0 on end
|
device generic 0 on end
|
||||||
|
@@ -301,10 +301,10 @@ uint8_t get_supported_lpm_mask(void)
|
|||||||
case ADL_M: /* fallthrough */
|
case ADL_M: /* fallthrough */
|
||||||
case ADL_N:
|
case ADL_N:
|
||||||
case ADL_P:
|
case ADL_P:
|
||||||
case RPL_HX:
|
|
||||||
case RPL_P:
|
case RPL_P:
|
||||||
return LPM_S0i2_0 | LPM_S0i3_0;
|
return LPM_S0i2_0 | LPM_S0i3_0;
|
||||||
case ADL_S:
|
case ADL_S:
|
||||||
|
case RPL_HX:
|
||||||
return LPM_S0i2_0 | LPM_S0i2_1;
|
return LPM_S0i2_0 | LPM_S0i2_1;
|
||||||
default:
|
default:
|
||||||
printk(BIOS_ERR, "Unknown ADL CPU type: %d\n", type);
|
printk(BIOS_ERR, "Unknown ADL CPU type: %d\n", type);
|
||||||
|
Reference in New Issue
Block a user