Add function to reset EC configuration

This commit is contained in:
Tim Crawford 2020-09-23 09:46:39 -06:00 committed by Jeremy Soller
parent e8dfe7fe44
commit 46ca5e0a12
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-3.0-only
#include <board/config.h>
#include <board/battery.h>
#include <common/debug.h>
/**
* Reset the EC configuration data.
*/
void config_reset(void) {
battery_reset();
INFO("Reset configuration\n");
}

View File

@ -0,0 +1,8 @@
// SPDX-License-Identifier: GPL-3.0-only
#ifndef _BOARD_CONFIG_H
#define _BOARD_CONFIG_H
void config_reset(void);
#endif // _BOARD_CONFIG_H