diff options
author | Patrick Rudolph <siro@das-labor.org> | 2018-02-03 11:50:56 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-23 08:35:31 +0000 |
commit | 77e0baa6e99761462af4c69c7beda0af9571525e (patch) | |
tree | 734a29e0d1e681ad1d1fa251e9cdbb7862e7e5bc /payloads/libpayload/include/libpayload.h | |
parent | 0beddb5e237f23c59399b1c93f25230a6eab3372 (diff) | |
download | coreboot-77e0baa6e99761462af4c69c7beda0af9571525e.tar.xz |
libpayload/drivers/nvram: Add function to write RTC
Add a function to set the RTC to provided struct tm.
Change-Id: I17b4c1ee0dcc649738ac6a7400b087d07213eaf0
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/23585
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include/libpayload.h')
-rw-r--r-- | payloads/libpayload/include/libpayload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 74969726bf..e3f8fd363f 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -151,6 +151,7 @@ u8 nvram_read(u8 addr); void nvram_write(u8 val, u8 addr); int nvram_updating(void); void rtc_read_clock(struct tm *tm); +void rtc_write_clock(const struct tm *tm); /** @} */ /** |