summaryrefslogtreecommitdiff
path: root/chip/g/flash_info.h
diff options
context:
space:
mode:
authornagendra modadugu <ngm@google.com>2016-07-21 19:36:28 -0700
committerVadim Bendebury <vbendeb@chromium.org>2016-07-23 02:18:49 +0000
commite819881b8c191603b7861cb98ebbbf5e6172da5a (patch)
tree7dfd3734687611b8698900e29c488f8c0858bc87 /chip/g/flash_info.h
parentc44ee5f93d354f38dfacec6bd63b5d40392a7e55 (diff)
downloadchrome-ec-e819881b8c191603b7861cb98ebbbf5e6172da5a.tar.gz
CR50: add endorsement certificate flow
This change implements logic for installing endorsement certificates in the RW section. The endorsement certificates are initially provisioned in a fixed RO flash region and are copied in the RW TPM data region (once this region has been initialized). Also add code for reading from the info bank, which is where the endorsement seed is initially stored. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 BUG=chrome-os-partner:50115 TEST=TCG tests running Change-Id: Id8c16d399202eee4ac0c4e397bdd29641ff9d2f3 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/362402 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/flash_info.h')
-rw-r--r--chip/g/flash_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/g/flash_info.h b/chip/g/flash_info.h
index 443b64e031..fae622c24b 100644
--- a/chip/g/flash_info.h
+++ b/chip/g/flash_info.h
@@ -9,5 +9,6 @@
void flash_info_write_enable(void);
void flash_info_write_disable(void);
int flash_info_physical_write(int byte_offset, int num_bytes, const char *data);
+int flash_physical_info_read_word(int byte_offset, uint32_t *dst);
#endif /* ! __EC_CHIP_G_FLASH_INFO_H */