summaryrefslogtreecommitdiff
path: root/chip/lm4/system.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-02-16 14:26:46 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-24 15:23:24 -0800
commitf0b564b4a031fdc974a98a13308a62a460ae4a69 (patch)
tree4a98eb323e3771fb38f575462fd83fbe2a13ce1a /chip/lm4/system.c
parentfb8e36631af8395d45d3bef79822c03dd6298ca3 (diff)
downloadchrome-ec-f0b564b4a031fdc974a98a13308a62a460ae4a69.tar.gz
system: Add generic bbram read / write routines
Add generic routines to read or write a byte to battery-backed RAM, and implement vbnvcontext get/set using these routines. BUG=chrome-os-partner:62952 BRANCH=reef TEST=On reef, with subsequent commit, run "cutoff" on the console, reattach AC, and verify device successfully wakes. Also verify Rp is dropped on console 'reboot' and F3 + power from RW. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I14691923f2e5198e901b6b5199e92c58c68cd18d Reviewed-on: https://chromium-review.googlesource.com/444444 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4/system.c')
-rw-r--r--chip/lm4/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/system.c b/chip/lm4/system.c
index cb1cf8cef0..684b520dae 100644
--- a/chip/lm4/system.c
+++ b/chip/lm4/system.c
@@ -600,12 +600,12 @@ const char *system_get_chip_name(void)
}
}
-int system_get_vbnvcontext(uint8_t *block)
+int system_get_bbram(enum system_bbram_idx idx, uint8_t *value)
{
return EC_ERROR_UNIMPLEMENTED;
}
-int system_set_vbnvcontext(const uint8_t *block)
+int system_set_bbram(enum system_bbram_idx idx, uint8_t value)
{
return EC_ERROR_UNIMPLEMENTED;
}