tpm/tpm_tis: Split tpm_tis driver into a core and TCG TIS compliant phy
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 18 May 2016 22:35:52 +0000 (00:35 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:28:57 +0000 (17:28 +0300)
commit41a5e1cf1fe151ed48b4b3106c748d03a85133ce
tree09fe38110e8e5382c6cdeff310a8cf9b5cdff034
parent92eb0f73e3517b63337b7fccc2de150b4e6147ce
tpm/tpm_tis: Split tpm_tis driver into a core and TCG TIS compliant phy

To avoid code duplication between the old tpm_tis and the new and future
native tcg tis driver(ie: spi, i2c...), the tpm_tis driver was reworked,
so that all common logic is extracted and can be reused from all drivers.

The core methods can also be used from other TIS like drivers.

itpm workaround is now managed with a specific tis flag
TPM_TIS_ITPM_POSSIBLE.

This commit is based on the initial work by Peter Huewe.

Signed-off-by: Peter Huewe <peter.huewe@infineon.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/Kconfig
drivers/char/tpm/Makefile
drivers/char/tpm/tpm_tis.c
drivers/char/tpm/tpm_tis_core.c [new file with mode: 0644]
drivers/char/tpm/tpm_tis_core.h