summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/flash.c')
-rw-r--r--zephyr/shim/src/flash.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/zephyr/shim/src/flash.c b/zephyr/shim/src/flash.c
new file mode 100644
index 0000000000..83d210f270
--- /dev/null
+++ b/zephyr/shim/src/flash.c
@@ -0,0 +1,39 @@
+/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include <flash.h>
+#include <kernel.h>
+
+/* TODO(b/174873770): Add calls to Zephyr code here */
+
+int flash_physical_write(int offset, int size, const char *data)
+{
+ return -ENOSYS;
+}
+
+int flash_physical_erase(int offset, int size)
+{
+ return -ENOSYS;
+}
+
+int flash_physical_get_protect(int bank)
+{
+ return -ENOSYS;
+}
+
+uint32_t flash_physical_get_protect_flags(void)
+{
+ return -ENOSYS;
+}
+
+int flash_physical_protect_at_boot(uint32_t new_flags)
+{
+ return -ENOSYS;
+}
+
+int flash_physical_protect_now(int all)
+{
+ return -ENOSYS;
+}