Compare commits
1 Commits
upstream-8
...
upstream-8
Author | SHA1 | Date | |
---|---|---|---|
|
1d52b376a5 |
@@ -11,6 +11,7 @@
|
|||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <intelblocks/cse.h>
|
#include <intelblocks/cse.h>
|
||||||
|
#include <intelblocks/fast_spi.h>
|
||||||
#include <intelblocks/me.h>
|
#include <intelblocks/me.h>
|
||||||
#include <intelblocks/pmclib.h>
|
#include <intelblocks/pmclib.h>
|
||||||
#include <intelblocks/post_codes.h>
|
#include <intelblocks/post_codes.h>
|
||||||
@@ -1310,10 +1311,17 @@ static void cse_set_state(struct device *dev)
|
|||||||
|
|
||||||
size_t enable_reply_size;
|
size_t enable_reply_size;
|
||||||
|
|
||||||
/* Function Start */
|
|
||||||
|
|
||||||
int send;
|
int send;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
/* Function Start */
|
||||||
|
|
||||||
|
if (fast_spi_flash_descriptor_override()) {
|
||||||
|
printk(BIOS_WARNING, "HECI: not setting ME state because "
|
||||||
|
"flash descriptor override is enabled\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if the CMOS value "me_state" exists, if it doesn't, then
|
* Check if the CMOS value "me_state" exists, if it doesn't, then
|
||||||
* don't do anything.
|
* don't do anything.
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
#include <bootstate.h>
|
#include <bootstate.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <intelblocks/cse.h>
|
#include <intelblocks/cse.h>
|
||||||
|
#include <intelblocks/fast_spi.h>
|
||||||
#include <intelblocks/pmc_ipc.h>
|
#include <intelblocks/pmc_ipc.h>
|
||||||
#include <security/vboot/vboot_common.h>
|
#include <security/vboot/vboot_common.h>
|
||||||
#include <soc/intel/common/reset.h>
|
#include <soc/intel/common/reset.h>
|
||||||
@@ -243,6 +244,11 @@ static void do_send_end_of_post(bool wait_for_completion)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fast_spi_flash_descriptor_override()) {
|
||||||
|
printk(BIOS_WARNING, "CSE: not sending EOP because flash descriptor override is enabled\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!eop_sent) {
|
if (!eop_sent) {
|
||||||
set_cse_device_state(PCH_DEVFN_CSE, DEV_ACTIVE);
|
set_cse_device_state(PCH_DEVFN_CSE, DEV_ACTIVE);
|
||||||
timestamp_add_now(TS_ME_END_OF_POST_START);
|
timestamp_add_now(TS_ME_END_OF_POST_START);
|
||||||
|
@@ -483,6 +483,15 @@ void fast_spi_clear_outstanding_status(void)
|
|||||||
write32(spibar + SPIBAR_HSFSTS_CTL, SPIBAR_HSFSTS_W1C_BITS);
|
write32(spibar + SPIBAR_HSFSTS_CTL, SPIBAR_HSFSTS_W1C_BITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if flash descriptor override is asserted */
|
||||||
|
bool fast_spi_flash_descriptor_override(void)
|
||||||
|
{
|
||||||
|
void *spibar = fast_spi_get_bar();
|
||||||
|
uint32_t hsfsts = read32(spibar + SPIBAR_HSFSTS_CTL);
|
||||||
|
printk(BIOS_DEBUG, "HSFSTS: 0x%X\n", hsfsts);
|
||||||
|
return !(hsfsts & SPIBAR_HSFSTS_FDOPSS);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* As there is no official ACPI ID for this controller use the generic PNP ID for now. */
|
/* As there is no official ACPI ID for this controller use the generic PNP ID for now. */
|
||||||
static const char *fast_spi_acpi_hid(const struct device *dev)
|
static const char *fast_spi_acpi_hid(const struct device *dev)
|
||||||
|
@@ -111,5 +111,7 @@ void fast_spi_set_bde(void);
|
|||||||
* Set FAST_SPIBAR Vendor Component Lock bit.
|
* Set FAST_SPIBAR Vendor Component Lock bit.
|
||||||
*/
|
*/
|
||||||
void fast_spi_set_vcl(void);
|
void fast_spi_set_vcl(void);
|
||||||
|
/* Check if flash descriptor override is asserted */
|
||||||
|
bool fast_spi_flash_descriptor_override(void);
|
||||||
|
|
||||||
#endif /* SOC_INTEL_COMMON_BLOCK_FAST_SPI_H */
|
#endif /* SOC_INTEL_COMMON_BLOCK_FAST_SPI_H */
|
||||||
|
@@ -282,8 +282,6 @@ static void fill_fspm_misc_params(FSP_M_CONFIG *m_cfg,
|
|||||||
static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
||||||
const struct soc_intel_meteorlake_config *config)
|
const struct soc_intel_meteorlake_config *config)
|
||||||
{
|
{
|
||||||
const struct device *dev;
|
|
||||||
|
|
||||||
/* Audio: HDAUDIO_LINK_MODE I2S/SNDW */
|
/* Audio: HDAUDIO_LINK_MODE I2S/SNDW */
|
||||||
m_cfg->PchHdaEnable = is_devfn_enabled(PCI_DEVFN_HDA);
|
m_cfg->PchHdaEnable = is_devfn_enabled(PCI_DEVFN_HDA);
|
||||||
m_cfg->PchHdaDspEnable = config->pch_hda_dsp_enable;
|
m_cfg->PchHdaDspEnable = config->pch_hda_dsp_enable;
|
||||||
@@ -304,13 +302,6 @@ static void fill_fspm_audio_params(FSP_M_CONFIG *m_cfg,
|
|||||||
memset(m_cfg->PchHdaAudioLinkDmicEnable, 0, sizeof(m_cfg->PchHdaAudioLinkDmicEnable));
|
memset(m_cfg->PchHdaAudioLinkDmicEnable, 0, sizeof(m_cfg->PchHdaAudioLinkDmicEnable));
|
||||||
memset(m_cfg->PchHdaAudioLinkSspEnable, 0, sizeof(m_cfg->PchHdaAudioLinkSspEnable));
|
memset(m_cfg->PchHdaAudioLinkSspEnable, 0, sizeof(m_cfg->PchHdaAudioLinkSspEnable));
|
||||||
memset(m_cfg->PchHdaAudioLinkSndwEnable, 0, sizeof(m_cfg->PchHdaAudioLinkSndwEnable));
|
memset(m_cfg->PchHdaAudioLinkSndwEnable, 0, sizeof(m_cfg->PchHdaAudioLinkSndwEnable));
|
||||||
|
|
||||||
dev = pcidev_path_on_root(PCI_DEVFN_HDA);
|
|
||||||
if (dev) {
|
|
||||||
uint16_t svid = CONFIG_SUBSYSTEM_VENDOR_ID ? : (dev->subsystem_vendor ? : 0x8086);
|
|
||||||
uint16_t ssid = CONFIG_SUBSYSTEM_DEVICE_ID ? : (dev->subsystem_device ? : 0x7e28);
|
|
||||||
m_cfg->PchHdaSubSystemIds = (ssid << 16) | svid;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fill_fspm_cnvi_params(FSP_M_CONFIG *m_cfg,
|
static void fill_fspm_cnvi_params(FSP_M_CONFIG *m_cfg,
|
||||||
|
Reference in New Issue
Block a user