diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-10 15:39:12 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-02-11 16:38:15 +0000 |
commit | 00f11c0290758cb0f30b54f1a332082f136384ee (patch) | |
tree | 2608723fad8e7547d0ed790f482b7a74224227b7 /src/southbridge/intel/i82801jx/smihandler.c | |
parent | aa969e887af6c76c0d5e694a3a17e14ee13d27b2 (diff) |
sb/intel/i82801jx: Drop Global NVS support
Was copy-pasted from i82801ix and no mainboard actually needs it.
Change-Id: I400424540b52dc5d43aba15720b18ad57ea2ebda
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49279
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801jx/smihandler.c')
-rw-r--r-- | src/southbridge/intel/i82801jx/smihandler.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/southbridge/intel/i82801jx/smihandler.c b/src/southbridge/intel/i82801jx/smihandler.c index 03a6442eb1..ed58a11882 100644 --- a/src/southbridge/intel/i82801jx/smihandler.c +++ b/src/southbridge/intel/i82801jx/smihandler.c @@ -4,7 +4,6 @@ #include <console/console.h> #include <cpu/x86/smm.h> #include <device/pci_def.h> -#include <soc/nvs.h> #include <southbridge/intel/common/pmutil.h> #include "i82801jx.h" @@ -13,23 +12,6 @@ */ u16 pmbase = DEFAULT_PMBASE; -int southbridge_io_trap_handler(int smif) -{ - switch (smif) { - case 0x32: - printk(BIOS_DEBUG, "OS Init\n"); - /* gnvs->smif: - * On success, the IO Trap Handler returns 0 - * On failure, the IO Trap Handler returns a value != 0 - */ - gnvs->smif = 0; - return 1; /* IO trap handled */ - } - - /* Not handled */ - return 0; -} - void southbridge_smi_monitor(void) { #define IOTRAP(x) (trap_sts & (1 << x)) @@ -46,10 +28,9 @@ void southbridge_smi_monitor(void) mask |= (0xff << ((i - 16) << 3)); } - /* IOTRAP(3) SMI function call */ + /* IOTRAP(3) SMI function call (unused) */ if (IOTRAP(3)) { - if (gnvs && gnvs->smif) - io_trap_handler(gnvs->smif); // call function smif + printk(BIOS_DEBUG, "SMI function call not implemented\n"); return; } |