driver: add PPI support in tpm driver
authorXiaoyan Zhang <xiaoyan.zhang@intel.com>
Wed, 22 Aug 2012 10:47:22 +0000 (18:47 +0800)
committerKent Yoder <key@linux.vnet.ibm.com>
Wed, 22 Aug 2012 21:23:42 +0000 (16:23 -0500)
commitf84fdff0fdcda7e509ce530e0ee612233a2104fb
tree6af900776de08b9610f383eb741681366e800e9a
parent1f862f0f96abdf8b030bda84d6b66d676f31785f
driver: add PPI support in tpm driver

The Physical Presence Interface enables the OS and the BIOS to cooperate and
provides a simple and straightforward platform user experience for
administering the TPM without sacrificing security.

V2: separate the patch out in a separate source file,
    add #ifdef CONFIG_ACPI so it compiles out on ppc,
    use standard error instead of ACPI error as return code of show/store fns.
V3: move #ifdef CONFIG_ACPI from .c file to .h file.
V4: move tpm_ppi code from tpm module to tpm_bios module.
V5: modify sys_add_ppi() so that ppi_attr_grp doesn't need to be exported

Signed-off-by: Xiaoyan Zhang <xiaoyan.zhang@intel.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
drivers/char/tpm/Makefile
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_ppi.c [new file with mode: 0644]