soc/amd/*/smihandler: remove replace southbridge references with fch
Change-Id: I96fc8082263800b731f1d4d9ecdc8a99c28bff32 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50485 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c3ce09cdac
commit
a2db88eb5a
2 changed files with 8 additions and 8 deletions
|
@ -97,7 +97,7 @@ static void southbridge_smi_store(void)
|
||||||
io_smi->rax = smmstore_exec(sub_command, (void *)reg_ebx);
|
io_smi->rax = smmstore_exec(sub_command, (void *)reg_ebx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb_apmc_smi_handler(void)
|
static void fch_apmc_smi_handler(void)
|
||||||
{
|
{
|
||||||
const uint8_t cmd = inb(pm_acpi_smi_cmd_port());
|
const uint8_t cmd = inb(pm_acpi_smi_cmd_port());
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ static void sb_apmc_smi_handler(void)
|
||||||
mainboard_smi_apmc(cmd);
|
mainboard_smi_apmc(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb_slp_typ_handler(void)
|
static void fch_slp_typ_handler(void)
|
||||||
{
|
{
|
||||||
uint32_t pci_ctrl, reg32;
|
uint32_t pci_ctrl, reg32;
|
||||||
uint16_t pm1cnt, reg16;
|
uint16_t pm1cnt, reg16;
|
||||||
|
@ -219,8 +219,8 @@ int southbridge_io_trap_handler(int smif)
|
||||||
* in fch.c is unrelated to this list.
|
* in fch.c is unrelated to this list.
|
||||||
*/
|
*/
|
||||||
static const struct smi_sources_t smi_sources[] = {
|
static const struct smi_sources_t smi_sources[] = {
|
||||||
{ .type = SMITYPE_SMI_CMD_PORT, .handler = sb_apmc_smi_handler },
|
{ .type = SMITYPE_SMI_CMD_PORT, .handler = fch_apmc_smi_handler },
|
||||||
{ .type = SMITYPE_SLP_TYP, .handler = sb_slp_typ_handler},
|
{ .type = SMITYPE_SLP_TYP, .handler = fch_slp_typ_handler},
|
||||||
};
|
};
|
||||||
|
|
||||||
void *get_smi_source_handler(int source)
|
void *get_smi_source_handler(int source)
|
||||||
|
|
|
@ -95,7 +95,7 @@ static void southbridge_smi_store(void)
|
||||||
io_smi->rax = smmstore_exec(sub_command, (void *)reg_ebx);
|
io_smi->rax = smmstore_exec(sub_command, (void *)reg_ebx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb_apmc_smi_handler(void)
|
static void fch_apmc_smi_handler(void)
|
||||||
{
|
{
|
||||||
const uint8_t cmd = inb(pm_acpi_smi_cmd_port());
|
const uint8_t cmd = inb(pm_acpi_smi_cmd_port());
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ static void sb_apmc_smi_handler(void)
|
||||||
mainboard_smi_apmc(cmd);
|
mainboard_smi_apmc(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sb_slp_typ_handler(void)
|
static void fch_slp_typ_handler(void)
|
||||||
{
|
{
|
||||||
uint32_t pci_ctrl, reg32;
|
uint32_t pci_ctrl, reg32;
|
||||||
uint16_t pm1cnt, reg16;
|
uint16_t pm1cnt, reg16;
|
||||||
|
@ -214,8 +214,8 @@ int southbridge_io_trap_handler(int smif)
|
||||||
* in southbridge.c is unrelated to this list.
|
* in southbridge.c is unrelated to this list.
|
||||||
*/
|
*/
|
||||||
static const struct smi_sources_t smi_sources[] = {
|
static const struct smi_sources_t smi_sources[] = {
|
||||||
{ .type = SMITYPE_SMI_CMD_PORT, .handler = sb_apmc_smi_handler },
|
{ .type = SMITYPE_SMI_CMD_PORT, .handler = fch_apmc_smi_handler },
|
||||||
{ .type = SMITYPE_SLP_TYP, .handler = sb_slp_typ_handler},
|
{ .type = SMITYPE_SLP_TYP, .handler = fch_slp_typ_handler},
|
||||||
};
|
};
|
||||||
|
|
||||||
void *get_smi_source_handler(int source)
|
void *get_smi_source_handler(int source)
|
||||||
|
|
Loading…
Reference in a new issue