diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-02-25 17:53:06 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-10 07:48:09 +0000 |
commit | e87743f8373dd517efd87ae01a9e66e59cd3799f (patch) | |
tree | 40f5a0fd0cacbba531840c6646e767eb90ede980 /zephyr/test/system/test_system.c | |
parent | 304ac382935378e95ba1f37b98230d8219b18ac0 (diff) | |
download | chrome-ec-e87743f8373dd517efd87ae01a9e66e59cd3799f.tar.gz |
zephyr: add bbram system call
This CL include the following:
1. Adds BBRAM system call.
2. BBRAM read/write data isn't really for characters. Change to use
uint8_t.
BUG=None.
BRANCH=None.
TEST=build & boot EC on volteer
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Iff92071e1808c4dacb24bf46e663898120369821
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2731177
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/test/system/test_system.c')
-rw-r--r-- | zephyr/test/system/test_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/system/test_system.c b/zephyr/test/system/test_system.c index 4ba845d878..7a78e2ae82 100644 --- a/zephyr/test/system/test_system.c +++ b/zephyr/test/system/test_system.c @@ -20,7 +20,7 @@ static char mock_data[64] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@"; static int mock_bbram_read(const struct device *unused, int offset, int size, - char *data) + uint8_t *data) { if (offset < 0 || offset + size >= ARRAY_SIZE(mock_data)) return -1; |