drivers/i2c/tpm: Split cr50 driver from main driver
commitc565f9910707b91fcc7a27bab28806e558bb474d
authorDuncan Laurie <dlaurie@chromium.org>
Mon, 19 Sep 2016 23:04:39 +0000 (19 16:04 -0700)
committerDuncan Laurie <dlaurie@chromium.org>
Tue, 20 Sep 2016 00:52:46 +0000 (19 17:52 -0700)
treed6fc0eba37af7cc4710984b8d14e7830fcab1caf
parent64df72e8e2d1c086705325533767ca5e201e842a
drivers/i2c/tpm: Split cr50 driver from main driver

Originally I thought it would be cleaner to keep this code in one
place, but as things continue to diverge it ends up being easier
to split this into its own driver.  This way the different drivers
in coreboot, depthcharge, and the kernel, can all be standalone
and if one is changed it is easier to modify the others.

This change splits out the cr50 driver and brings along the basic
elements from the existing driver with no real change in
functionality.  The following commits will modify the code to make
it consistent so it can all be shared with depthcharge and the
linux kernel drivers.

BUG=chrome-os-partner:53336

Change-Id: Ia9a65e72519b95f5739e3b7a16b9c2431d64ebe2
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
src/drivers/i2c/tpm/Kconfig
src/drivers/i2c/tpm/Makefile.inc
src/drivers/i2c/tpm/cr50.c [new file with mode: 0644]
src/drivers/i2c/tpm/tpm.c