summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dt-bindings/nvmem/microchip,sama7g5-otpc.h')
-rw-r--r--include/dt-bindings/nvmem/microchip,sama7g5-otpc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h b/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
new file mode 100644
index 000000000..f570b2316
--- /dev/null
+++ b/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
+
+#ifndef _DT_BINDINGS_NVMEM_MICROCHIP_OTPC_H
+#define _DT_BINDINGS_NVMEM_MICROCHIP_OTPC_H
+
+/*
+ * Need to have it as a multiple of 4 as NVMEM memory is registered with
+ * stride = 4.
+ */
+#define OTP_PKT(id) ((id) * 4)
+
+#endif