Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62109 )
Change subject: sb/amd/sb700/bootblock.c: Configure TPM decoding ......................................................................
sb/amd/sb700/bootblock.c: Configure TPM decoding
Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com Change-Id: I5979cb09f9ebdfc161090775a638a024daaba4c0 --- M src/southbridge/amd/sb700/bootblock.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/62109/1
diff --git a/src/southbridge/amd/sb700/bootblock.c b/src/southbridge/amd/sb700/bootblock.c index be64c23..9d74e13 100644 --- a/src/southbridge/amd/sb700/bootblock.c +++ b/src/southbridge/amd/sb700/bootblock.c @@ -184,6 +184,18 @@ pci_write_config8(dev, 0x4a, byte); }
+static void sb700_enable_tpm_decoding(void) +{ + u8 reg8; + pci_devfn_t dev; + + dev = PCI_DEV(0, 0x14, 3); + + reg8 = pci_read_config8(dev, 0x7c); + reg8 |= 1; /* Tpm12_en */ + pci_write_config8(dev, 0x7c, reg8); +} + void bootblock_early_southbridge_init(void) { sb700_enable_rom(); @@ -194,4 +206,6 @@ sb7xx_51xx_lpc_port80(); if (CONFIG(POST_DEVICE_PCI_PCIE)) sb7xx_51xx_pci_port80(); + + sb700_enable_tpm_decoding(); }