]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/Tpm.asi
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / Tpm.asi
diff --git a/QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/Tpm.asi b/QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/Tpm.asi
new file mode 100644 (file)
index 0000000..f497973
--- /dev/null
@@ -0,0 +1,51 @@
+/** @file\r
+\r
+The Infineon SLB9645 TPM ACPI definition block.\r
+Provides TPM device info. and TPM presence check only.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+Device (TPM)\r
+{\r
+  //\r
+  // Define _HID as Infineon TPM Device, _CID as "PNP0C31" (defined in\r
+  // "Secure Startup-FVE and TPM Admin BIOS and Platform Requirements").\r
+  //\r
+  Name(_HID ,EISAID("INT3493"))\r
+  Name(_CID, EISAID("PNP0C31"))\r
+\r
+  //\r
+  // Readable name of this device.\r
+  //\r
+  Name (_STR, Unicode ("Infineon TPM 1.2 Device (SLB9645TT1.2)"))\r
+\r
+  //\r
+  // Return the resource consumed by TPM device.\r
+  //\r
+  Name (_CRS, ResourceTemplate () {\r
+    I2cSerialBus (0x20, ControllerInitiated, 0x00061A80, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer,,)\r
+  })\r
+\r
+  //\r
+  // Check if TPM present.\r
+  //\r
+  Method (_STA, 0)\r
+  {\r
+    if (LEqual (TPMP, 0))\r
+    {\r
+      return (0)\r
+    }\r
+    Return (0x0f)\r
+  }\r
+\r
+}\r