soc/amd: Move soc_route_sci to common/blocks/smi/smi_util
Change-Id: Ic379723c0bf6e5edf5f3d63cc11b24d0e59b5075 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42988 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2fec394913
commit
1a973434c5
|
@ -35,11 +35,6 @@ static const struct soc_amd_event gpio_event_table[] = {
|
||||||
{ GPIO_129, GEVENT_17 },
|
{ GPIO_129, GEVENT_17 },
|
||||||
};
|
};
|
||||||
|
|
||||||
void soc_route_sci(uint8_t event)
|
|
||||||
{
|
|
||||||
smi_write8(SMI_SCI_MAP(event), event);
|
|
||||||
}
|
|
||||||
|
|
||||||
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
||||||
{
|
{
|
||||||
*table = gpio_event_table;
|
*table = gpio_event_table;
|
||||||
|
|
|
@ -56,6 +56,11 @@ void configure_gevent_smi(uint8_t gevent, uint8_t mode, uint8_t level)
|
||||||
smi_write32(SMI_REG_SMITRIG0, reg32);
|
smi_write32(SMI_REG_SMITRIG0, reg32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void soc_route_sci(uint8_t event)
|
||||||
|
{
|
||||||
|
smi_write8(SMI_SCI_MAP(event), event);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure generation of SCIs.
|
* Configure generation of SCIs.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,11 +34,6 @@ static const struct soc_amd_event gpio_event_table[] = {
|
||||||
{ GPIO_129, GEVENT_17 },
|
{ GPIO_129, GEVENT_17 },
|
||||||
};
|
};
|
||||||
|
|
||||||
void soc_route_sci(uint8_t event)
|
|
||||||
{
|
|
||||||
smi_write8(SMI_SCI_MAP(event), event);
|
|
||||||
}
|
|
||||||
|
|
||||||
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
||||||
{
|
{
|
||||||
*table = gpio_event_table;
|
*table = gpio_event_table;
|
||||||
|
|
|
@ -34,11 +34,6 @@ static const struct soc_amd_event gpio_event_table[] = {
|
||||||
{ GPIO_69, GEVENT_17 },
|
{ GPIO_69, GEVENT_17 },
|
||||||
};
|
};
|
||||||
|
|
||||||
void soc_route_sci(uint8_t event)
|
|
||||||
{
|
|
||||||
smi_write8(SMI_SCI_MAP(event), event);
|
|
||||||
}
|
|
||||||
|
|
||||||
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
void soc_get_gpio_event_table(const struct soc_amd_event **table, size_t *items)
|
||||||
{
|
{
|
||||||
*table = gpio_event_table;
|
*table = gpio_event_table;
|
||||||
|
|
Loading…
Reference in New Issue