diff options
author | Eric Richter <erichte@linux.ibm.com> | 2020-03-06 11:13:16 -0600 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-03-11 17:32:08 +1100 |
commit | c2ba08e8ec3745d9c6a917a21d81d196160fd977 (patch) | |
tree | 0ce71ca65967d2fa44e2ab2d95f7092116b9bbb6 /libflash/test | |
parent | a08549a9e7a4e3f5eb3dd5525097d472fc363888 (diff) | |
download | skiboot-c2ba08e8ec3745d9c6a917a21d81d196160fd977.zip skiboot-c2ba08e8ec3745d9c6a917a21d81d196160fd977.tar.gz skiboot-c2ba08e8ec3745d9c6a917a21d81d196160fd977.tar.bz2 |
tpm_i2c_nuvoton: check TPM vendor id register during probe
The driver for the nuvoton i2c TPM does not currently check if there is
a functional TPM at the bus and address given by the device tree.
This patch adds a simple check of the TPM vendor id register, compares
against the known expected value for the chip, skips registering it if
the chip is inaccessible or returns an unexpected id.
Signed-off-by: Eric Richter <erichte@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'libflash/test')
0 files changed, 0 insertions, 0 deletions