summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/alderlake/crashlog.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/soc/intel/alderlake/crashlog.c b/src/soc/intel/alderlake/crashlog.c
index 9435aa092d..3a857c1a2b 100644
--- a/src/soc/intel/alderlake/crashlog.c
+++ b/src/soc/intel/alderlake/crashlog.c
@@ -210,27 +210,14 @@ bool cpu_cl_discovery(void)
m_cpu_crashLog_support = true;
- /* Program BAR address and enable command register memory space decoding */
- u32 tmp_bar_addr = PCH_PWRM_BASE_ADDRESS;
- printk(BIOS_DEBUG, "tmp_bar_addr: 0x%X\n", tmp_bar_addr);
-
- if (cpu_cl_devsc_cap.discovery_data.fields.t_bir_q == TEL_DVSEC_TBIR_BAR0) {
- pci_write_config32(SA_DEV_TMT, PCI_BASE_ADDRESS_0, tmp_bar_addr);
- } else if (cpu_cl_devsc_cap.discovery_data.fields.t_bir_q == TEL_DVSEC_TBIR_BAR1) {
- pci_write_config32(SA_DEV_TMT, PCI_BASE_ADDRESS_1, tmp_bar_addr);
- } else {
- printk(BIOS_DEBUG, "invalid discovery data t_bir_q: 0x%x\n",
- cpu_cl_devsc_cap.discovery_data.fields.t_bir_q);
- return false;
- }
- pci_or_config16(SA_DEV_TMT, PCI_COMMAND, PCI_COMMAND_MEMORY);
+ const struct resource *res = find_resource(SA_DEV_TMT, PCI_BASE_ADDRESS_0);
+ printk(BIOS_DEBUG, "cpu crashlog bar addr: 0x%llX\n", res->base);
if (!cpu_cl_gen_discovery_table()) {
printk(BIOS_ERR, "CPU crashlog discovery table not valid.\n");
m_cpu_crashLog_present = false;
return false;
}
- m_cpu_crashLog_present = true;
return true;
}