summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'openpcd/firmware/src/flash.c')
-rw-r--r--openpcd/firmware/src/flash.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/openpcd/firmware/src/flash.c b/openpcd/firmware/src/flash.c
new file mode 100644
index 0000000..cca7fb7
--- /dev/null
+++ b/openpcd/firmware/src/flash.c
@@ -0,0 +1,11 @@
+
+
+#define EFCS_CMD_WRITE_PAGE 0x01
+#define EFCS_CMD_SET_LOCK_BIT 0x02
+#define EFCS_CMD_WRITE_PAGE_LOCK 0x03
+#define EFCS_CMD_CLEAR_LOCK 0x04
+#define EFCS_CMD_ERASE_ALL 0x08
+#define EFCS_CMD_SET_NVM_BIT 0x0b
+#define EFCS_CMD_CLEAR_NVM_BIT 0x0d
+#define EFCS_CMD_SET_SECURITY_BIT 0x0f
+
personal git repositories of Harald Welte. Your mileage may vary