diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-23 13:08:40 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-23 23:30:33 -0700 |
commit | 1661f1cef07f5b29b7e9c06fb3220fb48d110686 (patch) | |
tree | 10149783f545d199b5abcdf4122336cbc9494648 /include/util.h | |
parent | 0653aa011ac5ce05f2e0d70bae90b5b7d126ea73 (diff) | |
download | chrome-ec-1661f1cef07f5b29b7e9c06fb3220fb48d110686.tar.gz |
Refactor flash module
This is a significant rewrite of the flash module, since it turns out
that much less of the flash logic is actually common between stm32 and
lm4.
BUG=chrome-os-partner:11699
TEST=on link,
(enable hardware wp)
flashinfo -> wp_gpio_asserted
flashwp enable
flashinfo -> wp_gpio_asserted ro_at_boot
reboot
flashinfo -> wp_gpio_asserted ro_at_boot ro_now
flashwp disable -> error 7
flashwp now
flashinfo -> wp_gpio_asserted ro_at_boot ro_now rw_now
reboot
flashinfo -> wp_gpio_asserted ro_at_boot ro_now
(disable hardware wp)
reboot
flashinfo -> ro_at_boot
flashwp disable
flashinfo -> (no flags)
Change-Id: If22b02373946ce1c080d49ccded4f8fa3e380115
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/28200
Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 2c6affddde..2cd15efa65 100644 --- a/include/util.h +++ b/include/util.h @@ -67,6 +67,7 @@ int isdigit(int c); int isspace(int c); int isalpha(int c); int isprint(int c); +int memcmp(const void *s1, const void *s2, int len); void *memcpy(void *dest, const void *src, int len); void *memset(void *dest, int c, int len); void *memmove(void *dest, const void *src, int len); |