x86: acpi: Include the TPMv1 table only if needed
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:40 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2020 01:51:32 +0000 (09:51 +0800)
commit7f061e0d255d5cdfbd216960134ea66e474ae819
tree50d91001c517bc96bb54b61f30f9662b38b94287
parent1da448bb9fd281e5a0574aab838d9ef1f6b18575
x86: acpi: Include the TPMv1 table only if needed

This table is not needed if a v2 TPM is in use. Add a condition to avoid
adding it when not needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c