Add function to reset EC configuration
This commit is contained in:
parent
e8dfe7fe44
commit
46ca5e0a12
14
src/board/system76/common/config.c
Normal file
14
src/board/system76/common/config.c
Normal 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");
|
||||
}
|
8
src/board/system76/common/include/board/config.h
Normal file
8
src/board/system76/common/include/board/config.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user