summaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/monolake/dsdt.asl
diff options
context:
space:
mode:
authorLukasz Siudut <lsiudut@fb.com>2019-04-24 12:00:10 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2019-04-28 00:26:38 +0000
commite54c15aa729d2b9ae2978e1aedf4fd7bc92cf97d (patch)
tree5430d6115020f844ce44e43add3c16defd1975cc /src/mainboard/ocp/monolake/dsdt.asl
parente7168edeb8dead2699d0bddf98006a8e86823244 (diff)
mb/ocp/monolake: add TPM and IPMI support
Changes includes: - enable TPM1 + add entry in devicetree - configure LPC IO to make IPMI work + add entry in devicetree - introduce DSDT and SMBIOS entries for IPMI to make it detectable by ipmi_si driver Signed-off-by: Lukasz Siudut <lsiudut@fb.com> Change-Id: Ia975643064075f1f861f4ead6f24ed71f345ea04 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32443 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/mainboard/ocp/monolake/dsdt.asl')
-rw-r--r--src/mainboard/ocp/monolake/dsdt.asl95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/mainboard/ocp/monolake/dsdt.asl b/src/mainboard/ocp/monolake/dsdt.asl
index 1248703266..72b1c3c086 100644
--- a/src/mainboard/ocp/monolake/dsdt.asl
+++ b/src/mainboard/ocp/monolake/dsdt.asl
@@ -27,6 +27,9 @@ DefinitionBlock(
{
#include "acpi/platform.asl"
+ Name (IDTP, 0x0CA2)
+ Name (ICDP, 0x0CA6)
+
Name(_S0, Package() { 0x00, 0x00, 0x00, 0x00 })
Name(_S5, Package() { 0x07, 0x00, 0x00, 0x00 })
@@ -290,5 +293,97 @@ DefinitionBlock(
}
}
+ Scope (_SB.PCI0.LPC0)
+ {
+ Device (SPMI)
+ {
+ Name (_HID, EisaId ("IPI0001"))
+ Name (_STR, Unicode ("IPMI_KCS"))
+ Name (_UID, 0x00)
+ OperationRegion (IPST, SystemIO, ICDP, 0x01)
+ Field (IPST, ByteAcc, NoLock, Preserve)
+ {
+ STAS, 8
+ }
+ Method (_STA, 0, NotSerialized) {
+ Return (0x0f)
+ }
+ Name (ICRS, ResourceTemplate ()
+ {
+ IO (Decode16,
+ 0x0000,
+ 0x0000,
+ 0x00,
+ 0x00,
+ _Y01)
+ IO (Decode16,
+ 0x0000,
+ 0x0000,
+ 0x00,
+ 0x00,
+ _Y02)
+
+ })
+ Method (_CRS, 0, NotSerialized)
+ {
+ CreateWordField (ICRS, \_SB.PCI0.LPC0.SPMI._Y01._MIN, IPDB)
+ CreateWordField (ICRS, \_SB.PCI0.LPC0.SPMI._Y01._MAX, IPDH)
+ CreateByteField (ICRS, \_SB.PCI0.LPC0.SPMI._Y01._LEN, IPDL)
+ CreateWordField (ICRS, \_SB.PCI0.LPC0.SPMI._Y02._MIN, IPCB)
+ CreateWordField (ICRS, \_SB.PCI0.LPC0.SPMI._Y02._MAX, IPCH)
+ CreateByteField (ICRS, \_SB.PCI0.LPC0.SPMI._Y02._LEN, IPCL)
+
+ IPDB = IDTP
+ IPDH = IDTP
+ IPDL = 0x01
+
+ IPCB = ICDP
+ IPCH = ICDP
+ IPCL = 0x01
+
+ Return (ICRS)
+ }
+ Method (_IFT, 0, NotSerialized) {
+ Return (0x01)
+ }
+ Method(_SRV, 0, NotSerialized) {
+ Return (0x0200)
+ }
+ }
+
+ Device (SYSR)
+ {
+ Name (_HID, EisaId ("PNP0C02"))
+
+ Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
+ {
+ IO (Decode16,
+ 0x0CA2,
+ 0x0CA2,
+ 0x01,
+ 0x01,
+ )
+ IO (Decode16,
+ 0x0CA6,
+ 0x0CA6,
+ 0x01,
+ 0x01,
+ )
+ IO (Decode16,
+ 0x0CA8,
+ 0x0CA8,
+ 0x01,
+ 0x01,
+ )
+ IO (Decode16,
+ 0x0CAC,
+ 0x0CAC,
+ 0x01,
+ 0x01,
+ )
+ })
+ }
+ }
+
#include "acpi/mainboard.asl"
}