]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: tpm: Split out common nvdata code
authorSimon Glass <sjg@chromium.org>
Sun, 18 Jul 2021 20:17:57 +0000 (14:17 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commit6dfa121d78a7b95e664f7c7ce10c8bf43c56d13d
tree5a79d08a677dcc98e8b1acd32fbdfc807d3ae3b8
parenta56746b690b91c8b1b729561578379eb62f07986
sandbox: tpm: Split out common nvdata code

We want to support nvdata in TPM2 as well. To avoid code duplicating the
associated code, move it into a common file.

Drop the special-case logic for the kernel space. This can be handled by
the higher-level code now, i.e. in vboot itself.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/tpm/Makefile
drivers/tpm/sandbox_common.c [new file with mode: 0644]
drivers/tpm/sandbox_common.h [new file with mode: 0644]
drivers/tpm/tpm_tis_sandbox.c