summaryrefslogtreecommitdiff
path: root/common/i2cs_tpm.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-12-19 16:55:12 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-20 21:56:41 -0800
commit9cc53cb892ca53f600235241b3f0ddcdeea09da6 (patch)
tree7e761cbcfc61b984fd7e68c1ba3c5861076fbc16 /common/i2cs_tpm.c
parent68ce71d642e7c8fa612b03799a91e3982e8c9854 (diff)
downloadchrome-ec-9cc53cb892ca53f600235241b3f0ddcdeea09da6.tar.gz
cr50: keep board properties related code in board.c
There are plans to extend use of the LONG_LIFE_SCRATCH1 register for other purposes than keeping board properties. Just as the board properties, the new use is also very board specific. This patch moves the board properties code from chip/g to board/cr50, where it belongs. Instead of reading board properties bitmap and checking if various bits are set, api functions are now provided to allow determining various properties settings without actually looking at the properties bitmap. CQ-DEPEND=CL:*313057 BRANCH=none BUG=chrome-os-partner:58961 TEST=verified that both Gru and Reef boot with the new image, additionally, on Reef confirmed that it is possible to communicate with the H1 over USB, and that plt_reset signal is handled properly. Change-Id: Id0dd2dc16389f773a149fb01eee1ce7bb99c4547 Reviewed-on: https://chromium-review.googlesource.com/422081 Commit-Ready: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'common/i2cs_tpm.c')
-rw-r--r--common/i2cs_tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/i2cs_tpm.c b/common/i2cs_tpm.c
index 274e6b6ba0..104671a302 100644
--- a/common/i2cs_tpm.c
+++ b/common/i2cs_tpm.c
@@ -218,7 +218,7 @@ static void i2cs_tpm_enable(void)
static void i2cs_if_register(void)
{
- if (!(system_get_board_properties() & BOARD_SLAVE_CONFIG_I2C))
+ if (!board_tpm_uses_i2c())
return;
tpm_register_interface(i2cs_tpm_enable);