commit | e03dbdebb40282563aae16b85829d15b849869fb | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Nov 23 21:29:32 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Dec 05 06:01:34 2018 -0700 |
tree | 5a7c28336bc8ab523acbff7c67d56478f9aef249 | |
parent | 66cf8f7e4687f9bfe35a1a849adee2e04617dffe [diff] |
tpm: Remove use of build-time TPM versions There is only one place in the code which assumes at build-time that we are using either a v1 or a v2 TPM. Fix this up and add a new function to return the version of a TPM. Supported TPM versions (v1 and v2) can be enabled independently and it is possible to use both versions at once. This is useful for sandbox when running tests. Signed-off-by: Simon Glass <sjg@chromium.org>