summaryrefslogtreecommitdiff
path: root/sys/arch/octeon/dev/octmmcreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/octeon/dev/octmmcreg.h')
-rw-r--r--sys/arch/octeon/dev/octmmcreg.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/arch/octeon/dev/octmmcreg.h b/sys/arch/octeon/dev/octmmcreg.h
index ca341525bd8..d2b85b9fd94 100644
--- a/sys/arch/octeon/dev/octmmcreg.h
+++ b/sys/arch/octeon/dev/octmmcreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: octmmcreg.h,v 1.2 2017/09/04 16:25:46 visa Exp $ */
+/* $OpenBSD: octmmcreg.h,v 1.3 2017/10/16 14:18:47 visa Exp $ */
/*
* Copyright (c) 2016 Visa Hankala
@@ -137,6 +137,24 @@
#define MIO_EMM_BUF_DAT 0xe8
/*
+ * MMC DMA FIFO registers
+ */
+
+/* Size of the register space. */
+#define MIO_EMM_DMA_FIFO_REGSIZE 0x20
+
+#define MIO_EMM_DMA_FIFO_CFG 0x00
+#define MIO_EMM_DMA_FIFO_CFG_CLR 0x0000000000010000ull
+
+#define MIO_EMM_DMA_FIFO_ADR 0x10
+
+#define MIO_EMM_DMA_FIFO_CMD 0x18
+#define MIO_EMM_DMA_FIFO_CMD_RW 0x4000000000000000ull
+#define MIO_EMM_DMA_FIFO_CMD_INTDIS 0x1000000000000000ull
+#define MIO_EMM_DMA_FIFO_CMD_SIZE 0x00fffff000000000ull
+#define MIO_EMM_DMA_FIFO_CMD_SIZE_SHIFT 36
+
+/*
* NAND flash DMA registers
*/