Cr50: Remove unused wipe_nvram() function.

Nothing uses this. Take it out.

BUG=none
BRANCH=none
TEST=make buildall

Change-Id: I4512130a97a54cf23ec6d715c4776b7b4d1b59a1
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/382662
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
Bill Richardson
2016-09-08 18:29:35 -07:00
committed by chrome-bot
parent 6d8483e396
commit cd4270d4e3
3 changed files with 0 additions and 22 deletions

View File

@@ -213,12 +213,3 @@ void _plat__ClearNvAvail(void)
s_NvIsAvailable = FALSE;
return;
}
void wipe_nvram(void)
{
#ifdef CONFIG_FLASH_NVMEM
nvmem_setup(0);
#else
memset(s_NV, 0xff, sizeof(s_NV));
#endif
}

View File

@@ -1,12 +0,0 @@
/* Copyright 2015 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_TPM2_MEMORY_H
#define __EC_BOARD_CR50_TPM2_MEMORY_H
/* A function to reinitialize the TPM NVram. */
void wipe_nvram(void);
#endif /* __EC_BOARD_CR50_TPM2_MEMORY_H */

View File

@@ -10,7 +10,6 @@
#include "flash.h"
#include "hooks.h"
#include "include/compile_time_macros.h"
#include "memory.h"
#include "system.h"
#include "registers.h"
#include "uart.h"