tpm: Reorganize the I2C TPM driver
authorTom Wai-Hong Tam <waihong@chromium.org>
Fri, 12 Apr 2013 11:04:37 +0000 (11:04 +0000)
committerSimon Glass <sjg@chromium.org>
Mon, 3 Jun 2013 08:31:23 +0000 (01:31 -0700)
commit1b393db5870927d68c42a46e6c5877c8d0d83910
tree9c8357f65d5221778bcd7a9272c40823eeb89649
parentec34fa5e43bfbef5a93394db04ff3b03fdfe3f44
tpm: Reorganize the I2C TPM driver

This patch does a similar code reogranzation from
  http://patchwork.ozlabs.org/patch/132179/
which is based on an old version of code (fdt support and bus selection
still not in). It merges this tidy-up on top of the recent code. It does
not make any logical change.

tpm.c implements the interface defined in tpm.h based on underlying
LPC or I2C TPM driver. tpm.c and the underlying driver communicate
throught tpm_private.h.

Note: Merging the LPC driver with tpm.c is left to future patches.

Change-Id: Ie1384f5f9e3935d3bc9a44adf8de80c5a70a5f2b
Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
README
drivers/tpm/Makefile
drivers/tpm/slb9635_i2c/compatibility.h [deleted file]
drivers/tpm/slb9635_i2c/tpm.c [deleted file]
drivers/tpm/slb9635_i2c/tpm.h [deleted file]
drivers/tpm/slb9635_i2c/tpm_tis_i2c.c [deleted file]
drivers/tpm/tpm.c [new file with mode: 0644]
drivers/tpm/tpm_private.h [new file with mode: 0644]
drivers/tpm/tpm_tis_i2c.c [new file with mode: 0644]
include/configs/exynos5250-dt.h