summaryrefslogtreecommitdiffstats
path: root/drivers/tpm/tpm_tis_sandbox.c
Commit message (Collapse)AuthorAgeFilesLines
* dm: tpm: sandbox: Convert TPM driver to driver modelSimon Glass2015-08-311-12/+45
| | | | | | | | | Convert the sandbox TPM driver to use driver model. Add it to the device tree so that it can be found on start-up. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* sandbox: tpm: Fix nvwrite commandChe-Liang Chiou2014-01-081-3/+1
| | | | | | | | | | | The original codes misused recvbuf in source buffer instead of sendbuf, and read from incorrect offset 14 instead of 22. Signed-off-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org>
* sandbox: tpm: Add TPM emulationSimon Glass2014-01-081-0/+262
Add a simple TPM emulator for sandbox. It only supports a small subset of TPM operations. However, these are enough to perform common tasks. Note this is an initial commit to get this working, but it could use cleaning up (for example constants instead of open-coded values). Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
OpenPOWER on IntegriCloud