diff options
Diffstat (limited to 'src/soc/amd/picasso')
-rw-r--r-- | src/soc/amd/picasso/gpio.c | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/include/soc/smi.h | 43 | ||||
-rw-r--r-- | src/soc/amd/picasso/psp.c | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/smi_util.c | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/smihandler.c | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/southbridge.c | 1 | ||||
-rw-r--r-- | src/soc/amd/picasso/xhci.c | 1 |
7 files changed, 6 insertions, 43 deletions
diff --git a/src/soc/amd/picasso/gpio.c b/src/soc/amd/picasso/gpio.c index c402fb5a6e..3ad4c5cc94 100644 --- a/src/soc/amd/picasso/gpio.c +++ b/src/soc/amd/picasso/gpio.c @@ -3,6 +3,7 @@ #include <stdint.h> #include <amdblocks/gpio_banks.h> #include <amdblocks/acpimmio.h> +#include <amdblocks/smi.h> #include <soc/gpio.h> #include <soc/smi.h> diff --git a/src/soc/amd/picasso/include/soc/smi.h b/src/soc/amd/picasso/include/soc/smi.h index 1f08efe3ac..ad7edbcc7d 100644 --- a/src/soc/amd/picasso/include/soc/smi.h +++ b/src/soc/amd/picasso/include/soc/smi.h @@ -178,47 +178,4 @@ #define SMI_MODE_MASK 0x03 -enum smi_mode { - SMI_MODE_DISABLE = 0, - SMI_MODE_SMI = 1, - SMI_MODE_NMI = 2, - SMI_MODE_IRQ13 = 3, -}; - -enum smi_sci_type { - INTERRUPT_NONE, - INTERRUPT_SCI, - INTERRUPT_SMI, - INTERRUPT_BOTH, -}; - -enum smi_sci_lvl { - SMI_SCI_LVL_LOW, - SMI_SCI_LVL_HIGH, -}; - -enum smi_sci_dir { - SMI_SCI_EDG, - SMI_SCI_LVL, -}; - -struct smi_sources_t { - int type; - void (*handler)(void); -}; - -struct sci_source { - uint8_t scimap; /* SCIMAP 0-57 */ - uint8_t gpe; /* 32 GPEs */ - uint8_t direction; /* Active High or Low, smi_sci_lvl */ - uint8_t level; /* Edge or Level, smi_sci_dir */ -}; - -void configure_smi(uint8_t smi_num, uint8_t mode); -void configure_gevent_smi(uint8_t gevent, uint8_t mode, uint8_t level); -void configure_scimap(const struct sci_source *sci); -void disable_gevent_smi(uint8_t gevent); -void gpe_configure_sci(const struct sci_source *scis, size_t num_gpes); -void soc_route_sci(uint8_t event); - #endif /* AMD_PICASSO_SMI_H */ diff --git a/src/soc/amd/picasso/psp.c b/src/soc/amd/picasso/psp.c index 702b0d9d96..6a4a1ea821 100644 --- a/src/soc/amd/picasso/psp.c +++ b/src/soc/amd/picasso/psp.c @@ -5,6 +5,7 @@ #include <soc/smi.h> #include <amdblocks/acpimmio.h> #include <amdblocks/psp.h> +#include <amdblocks/smi.h> #define PSP_MAILBOX_OFFSET 0x10570 #define MSR_CU_CBBCFG 0xc00110a2 diff --git a/src/soc/amd/picasso/smi_util.c b/src/soc/amd/picasso/smi_util.c index 2fbc8e2d6a..39b2b95a2c 100644 --- a/src/soc/amd/picasso/smi_util.c +++ b/src/soc/amd/picasso/smi_util.c @@ -9,6 +9,7 @@ #include <soc/southbridge.h> #include <soc/smi.h> #include <amdblocks/acpimmio.h> +#include <amdblocks/smi.h> void configure_smi(uint8_t smi_num, uint8_t mode) { diff --git a/src/soc/amd/picasso/smihandler.c b/src/soc/amd/picasso/smihandler.c index 7e762a9abb..4931de82b7 100644 --- a/src/soc/amd/picasso/smihandler.c +++ b/src/soc/amd/picasso/smihandler.c @@ -14,6 +14,7 @@ #include <amdblocks/acpimmio.h> #include <amdblocks/acpi.h> #include <amdblocks/psp.h> +#include <amdblocks/smi.h> #include <elog.h> #include <soc/smu.h> diff --git a/src/soc/amd/picasso/southbridge.c b/src/soc/amd/picasso/southbridge.c index f3424497c4..bc801a34b4 100644 --- a/src/soc/amd/picasso/southbridge.c +++ b/src/soc/amd/picasso/southbridge.c @@ -19,6 +19,7 @@ #include <amdblocks/acpi.h> #include <amdblocks/smbus.h> #include <amdblocks/spi.h> +#include <amdblocks/smi.h> #include <soc/acpi.h> #include <soc/cpu.h> #include <soc/i2c.h> diff --git a/src/soc/amd/picasso/xhci.c b/src/soc/amd/picasso/xhci.c index 97a012e03f..a7e480767e 100644 --- a/src/soc/amd/picasso/xhci.c +++ b/src/soc/amd/picasso/xhci.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <amdblocks/gpio_banks.h> +#include <amdblocks/smi.h> #include <bootstate.h> #include <device/device.h> #include <drivers/usb/pci_xhci/pci_xhci.h> |