summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-04-25 16:49:41 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-04-27 09:24:37 +0000
commit12c12d1e070bc8fb4ed8602f21c142e9c3bbc9d3 (patch)
tree4a2c0e0b1c0d51887e077faed59fd56ed13b35f3
parent614135359d66ca242fa9df2d3d67fa9c9d145818 (diff)
downloadcoreboot-12c12d1e070bc8fb4ed8602f21c142e9c3bbc9d3.tar.xz
soc/amd/stoneyridge/include/soc/smi.h: Fix name collision
When smi.h is included to southbridge.h (to use SCI/SMI definitions within southbridge.h definitions), this causes a collision of the definition of NONE (ioapic.h also has a NONE definition). As NONE is an enumeration of interrupt types (SCI/SMI), add INTERRUPT_ at the start of each definition. This is preparation to have GPIO table/code also declare/program SCI/SMI. BUG=b:72875858 TEST=Build grunt. Change-Id: I5c7b798f9f4d7c2a9f9c606c7ebffb7004a37b99 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/25845 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/amd/stoneyridge/include/soc/smi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/amd/stoneyridge/include/soc/smi.h b/src/soc/amd/stoneyridge/include/soc/smi.h
index 34d3d74848..636f9c3559 100644
--- a/src/soc/amd/stoneyridge/include/soc/smi.h
+++ b/src/soc/amd/stoneyridge/include/soc/smi.h
@@ -201,10 +201,10 @@ enum smi_mode {
};
enum smi_sci_type {
- NONE,
- SCI,
- SMI,
- BOTH,
+ INTERRUPT_NONE,
+ INTERRUPT_SCI,
+ INTERRUPT_SMI,
+ INTERRUPT_BOTH,
};
enum smi_sci_lvl {