soc/intel/baytrail/smihandler.c: Align with Braswell
This reduces the differences between Bay Trail and Braswell. Tested with BUILD_TIMELESS=1, Google Ninja remains identical. Change-Id: Iaa6d5d72cd0368342205a9b98552c1e0762abbce Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43198 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1fb17d65cf
commit
5bcd35d6a5
1 changed files with 7 additions and 12 deletions
|
@ -68,8 +68,7 @@ static void busmaster_disable_on_bus(int bus)
|
||||||
/* If this is a bridge, then follow it. */
|
/* If this is a bridge, then follow it. */
|
||||||
hdr = pci_read_config8(dev, PCI_HEADER_TYPE);
|
hdr = pci_read_config8(dev, PCI_HEADER_TYPE);
|
||||||
hdr &= 0x7f;
|
hdr &= 0x7f;
|
||||||
if (hdr == PCI_HEADER_TYPE_BRIDGE ||
|
if (hdr == PCI_HEADER_TYPE_BRIDGE || hdr == PCI_HEADER_TYPE_CARDBUS) {
|
||||||
hdr == PCI_HEADER_TYPE_CARDBUS) {
|
|
||||||
unsigned int buses;
|
unsigned int buses;
|
||||||
buses = pci_read_config32(dev, PCI_PRIMARY_BUS);
|
buses = pci_read_config32(dev, PCI_PRIMARY_BUS);
|
||||||
busmaster_disable_on_bus((buses >> 8) & 0xff);
|
busmaster_disable_on_bus((buses >> 8) & 0xff);
|
||||||
|
@ -191,8 +190,7 @@ static void southbridge_smi_gsmi(void)
|
||||||
{
|
{
|
||||||
u32 *ret, *param;
|
u32 *ret, *param;
|
||||||
uint8_t sub_command;
|
uint8_t sub_command;
|
||||||
em64t100_smm_state_save_area_t *io_smi =
|
em64t100_smm_state_save_area_t *io_smi = smi_apmc_find_state_save(APM_CNT_ELOG_GSMI);
|
||||||
smi_apmc_find_state_save(APM_CNT_ELOG_GSMI);
|
|
||||||
|
|
||||||
if (!io_smi)
|
if (!io_smi)
|
||||||
return;
|
return;
|
||||||
|
@ -265,8 +263,7 @@ static void soc_legacy(void)
|
||||||
static void southbridge_smi_store(void)
|
static void southbridge_smi_store(void)
|
||||||
{
|
{
|
||||||
u8 sub_command, ret;
|
u8 sub_command, ret;
|
||||||
em64t100_smm_state_save_area_t *io_smi =
|
em64t100_smm_state_save_area_t *io_smi = smi_apmc_find_state_save(APM_CNT_SMMSTORE);
|
||||||
smi_apmc_find_state_save(APM_CNT_SMMSTORE);
|
|
||||||
uint32_t reg_ebx;
|
uint32_t reg_ebx;
|
||||||
|
|
||||||
if (!io_smi)
|
if (!io_smi)
|
||||||
|
@ -317,8 +314,7 @@ static void southbridge_smi_apmc(void)
|
||||||
break;
|
break;
|
||||||
case APM_CNT_GNVS_UPDATE:
|
case APM_CNT_GNVS_UPDATE:
|
||||||
if (smm_initialized) {
|
if (smm_initialized) {
|
||||||
printk(BIOS_DEBUG,
|
printk(BIOS_DEBUG, "SMI#: SMM structures already initialized!\n");
|
||||||
"SMI#: SMM structures already initialized!\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state = smi_apmc_find_state_save(reg8);
|
state = smi_apmc_find_state_save(reg8);
|
||||||
|
@ -447,8 +443,7 @@ void southbridge_smi_handler(void)
|
||||||
southbridge_smi[i]();
|
southbridge_smi[i]();
|
||||||
} else {
|
} else {
|
||||||
printk(BIOS_DEBUG,
|
printk(BIOS_DEBUG,
|
||||||
"SMI_STS[%d] occurred, but no "
|
"SMI_STS[%d] occurred, but no handler available.\n", i);
|
||||||
"handler available.\n", i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue