mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
expo: cedit: Support writing settings to CMOS RAM
Add a command to write cedit settings to CMOS RAM so that it can be preserved across a reboot. This uses a simple bit-encoding, where each field has a 'bit position' and a 'bit length' in the schema. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -97,4 +97,17 @@ int cedit_write_settings_env(struct expo *exp, bool verbose);
|
||||
*/
|
||||
int cedit_read_settings_env(struct expo *exp, bool verbose);
|
||||
|
||||
/**
|
||||
* cedit_write_settings_cmos() - Write settings to CMOS RAM
|
||||
*
|
||||
* Write settings to the defined places in CMOS RAM
|
||||
*
|
||||
* @exp: Expo to write settings from
|
||||
* @dev: UCLASS_RTC device containing space for this information
|
||||
* Returns 0 if OK, -ve on error
|
||||
* @verbose: true to print a summary at the end
|
||||
*/
|
||||
int cedit_write_settings_cmos(struct expo *exp, struct udevice *dev,
|
||||
bool verbose);
|
||||
|
||||
#endif /* __CEDIT_H */
|
||||
|
||||
Reference in New Issue
Block a user