Add ACPI tables for TPM
[qemu-kvm.git] / hw / i386 / ssdt-tpm.dsl
blob75d96910bf3885ad1a5ba012096000227dd55dc6
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with this program; if not, see <http://www.gnu.org/licenses/>.
14  */
15 #include "hw/acpi/tpm.h"
17 ACPI_EXTRACT_ALL_CODE ssdt_tpm_aml
19 DefinitionBlock (
20     "ssdt-tpm.aml",     // Output Filename
21     "SSDT",             // Signature
22     0x01,               // SSDT Compliance Revision
23     "BXPC",             // OEMID
24     "BXSSDT",           // TABLE ID
25     0x1                 // OEM Revision
26     )
28     Scope(\_SB) {
29         /* TPM with emulated TPM TIS interface */
30         Device (TPM) {
31             Name (_HID, EisaID ("PNP0C31"))
32             Name (_CRS, ResourceTemplate ()
33             {
34                 Memory32Fixed (ReadWrite, TPM_TIS_ADDR_BASE, TPM_TIS_ADDR_SIZE)
35                 // older Linux tpm_tis drivers do not work with IRQ
36                 //IRQNoFlags () {TPM_TIS_IRQ}
37             })
38             Method (_STA, 0, NotSerialized) {
39                 Return (0x0F)
40             }
41         }
42     }