summaryrefslogtreecommitdiffstats
path: root/dts/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'dts/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h')
-rw-r--r--dts/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/dts/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h b/dts/include/dt-bindings/nvmem/microchip,sama7g5-otpc.h
new file mode 100644
index 0000000000..f570b23165
--- /dev/null
+++ b/dts/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