mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 00:21:46 +00:00
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>
15 lines
505 B
C
15 lines
505 B
C
/*
|
|
* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef __EC_CHIP_G_FLASH_INFO_H
|
|
#define __EC_CHIP_G_FLASH_INFO_H
|
|
|
|
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 */
|