]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: tpm_tis: Share common data between phys
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 18 May 2016 22:35:48 +0000 (00:35 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
commit57dacc2b4ce5350db3046721dad3d88c3b451aa2
treedd243349678c1fec67391e5811f7a5ebdd28196a
parentd2efee6e3ac8f5967e13f39bc8daaa81f81486e7
tpm: tpm_tis: Share common data between phys

Split priv_data structure in common and phy specific structures. This will
allow in future patches to reuse the same tis logic on top of new phy such
as spi and i2c. Ultimately, other drivers may reuse this tis logic.
(e.g: st33zp24...)

iobase field is specific to TPM addressed on 0xFED4xxxx on LPC/SPI bus.

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

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/tpm_tis.c
drivers/char/tpm/tpm_tis_core.h [new file with mode: 0644]