[PATCH 04/20] mmc: mmci: Move signal directions bits into DT include file
Ulf Hansson
ulf.hansson at linaro.org
Fri Mar 21 08:14:01 EDT 2014
These bits is currently used from platform data, but will be needed
from DT as well, so let's make them available.
Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
---
include/dt-bindings/mmc/mmci.h | 21 +++++++++++++++++++++
include/linux/amba/mmci.h | 14 +-------------
2 files changed, 22 insertions(+), 13 deletions(-)
create mode 100644 include/dt-bindings/mmc/mmci.h
diff --git a/include/dt-bindings/mmc/mmci.h b/include/dt-bindings/mmc/mmci.h
new file mode 100644
index 0000000..8c55254
--- /dev/null
+++ b/include/dt-bindings/mmc/mmci.h
@@ -0,0 +1,21 @@
+/*
+ * This header provides constants for the mmci bindings.
+ *
+ */
+
+#ifndef _DT_BINDINGS_MMC_MMCI_H
+#define _DT_BINDINGS_MMC_MMCI_H
+
+/*
+ * Bus signal direction bits.
+ * The ST Micro version does not have ROD and reuse the voltage registers
+ * for direction settings.
+ */
+#define MCI_ST_DATA2DIREN (1 << 2)
+#define MCI_ST_CMDDIREN (1 << 3)
+#define MCI_ST_DATA0DIREN (1 << 4)
+#define MCI_ST_DATA31DIREN (1 << 5)
+#define MCI_ST_FBCLKEN (1 << 7)
+#define MCI_ST_DATA74DIREN (1 << 8)
+
+#endif
diff --git a/include/linux/amba/mmci.h b/include/linux/amba/mmci.h
index 32a89cf..47ff176 100644
--- a/include/linux/amba/mmci.h
+++ b/include/linux/amba/mmci.h
@@ -5,19 +5,7 @@
#define AMBA_MMCI_H
#include <linux/mmc/host.h>
-
-
-/*
- * These defines is places here due to access is needed from machine
- * configuration files. The ST Micro version does not have ROD and
- * reuse the voltage registers for direction settings.
- */
-#define MCI_ST_DATA2DIREN (1 << 2)
-#define MCI_ST_CMDDIREN (1 << 3)
-#define MCI_ST_DATA0DIREN (1 << 4)
-#define MCI_ST_DATA31DIREN (1 << 5)
-#define MCI_ST_FBCLKEN (1 << 7)
-#define MCI_ST_DATA74DIREN (1 << 8)
+#include <dt-bindings/mmc/mmci.h>
/* Just some dummy forwarding */
struct dma_chan;
--
1.7.9.5
More information about the linux-arm-kernel
mailing list