aboutsummaryrefslogtreecommitdiff
path: root/src/pld/lattice_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pld/lattice_cmd.h')
-rw-r--r--src/pld/lattice_cmd.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pld/lattice_cmd.h b/src/pld/lattice_cmd.h
new file mode 100644
index 0000000..8d66ac4
--- /dev/null
+++ b/src/pld/lattice_cmd.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+/***************************************************************************
+ * Copyright (C) 2022 by Daniel Anselmi *
+ * danselmi@gmx.ch *
+ ***************************************************************************/
+
+#ifndef OPENOCD_PLD_LATTICE_CMD_H
+#define OPENOCD_PLD_LATTICE_CMD_H
+
+#define ISC_ERASE 0x0E
+#define ISC_DISABLE 0x26
+#define LSC_READ_STATUS 0x3C
+#define LSC_INIT_ADDRESS 0x46
+#define LSC_BITSTREAM_BURST 0x7A
+#define READ_USERCODE 0xC0
+#define ISC_ENABLE 0xC6
+
+#endif /* OPENOCD_PLD_LATTICE_CMD_H */