diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2016-08-31 13:51:14 -0700 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2016-09-06 22:51:25 +0200 |
commit | 40ae1706a447ca81fed31287ec30f28823504c01 (patch) | |
tree | b80076100a3b18afe98322d939f33aacd7e030a2 /src/include/option.h | |
parent | 4a560769ad7811b9cab09325f577d389491f17ed (diff) |
drivers/i2c/tpm: Make driver safe for use in x86 pre-ram
Use CAR accessors where needed for accessing static data.
In some cases this required some minor restructuring to pass
in a variable instead of use a global one.
For the tpm_vendor_init the structure no longer has useful
defaults, which nobody was depending on anyway. This now
requires the caller to provide a non-zero address.
Tested by enabling I2C TPM on reef and compiling successfully.
Change-Id: I8e02fbcebf5fe10c4122632eda1c48b247478289
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16394
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include/option.h')
0 files changed, 0 insertions, 0 deletions