Files
OpenCellular/board/cr50/wp.h
Vadim Bendebury 4a673c15ad rma: enable WP on RMA disable
When RMA procedure is completed WP needs to be enabled back.

BRANCH=cr50, cr50-mp
BUG=b:37952913, b:73075443
TEST=on a Robo device, verified that WP is enabled, took the device
     through RMA unlock, verified that WP is disabled, took the device
     through RMA disable, verified that WP is enabled again.

     Also confirmed that after RMA is disabled WP status follows the
     battery.

Change-Id: Iad6af7d16aadcd10d580f709aeb942cf508a8489
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/905926
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2018-02-08 02:31:20 +00:00

30 lines
633 B
C

/* Copyright 2017 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_BOARD_CR50_WP_H
#define __EC_BOARD_CR50_WP_H
#include "common.h"
/**
* Initialize write protect state.
*
* Must be called after case-closed debugging is initialized.
*/
void init_wp_state(void);
/**
* Read the FWMP value from TPM NVMEM and set the console restriction
* appropriately.
*/
void read_fwmp(void);
/**
* Set WP as dicated by CCD configuration.
*/
void set_wp_follow_ccd_config(void);
#endif /* ! __EC_BOARD_CR50_WP_H */