|
@@ -140,6 +140,13 @@
|
|
#define atmci_writel(port,reg,value) \
|
|
#define atmci_writel(port,reg,value) \
|
|
__raw_writel((value), (port)->regs + reg)
|
|
__raw_writel((value), (port)->regs + reg)
|
|
|
|
|
|
|
|
+/* On AVR chips the Peripheral DMA Controller is not connected to MCI. */
|
|
|
|
+#ifdef CONFIG_AVR32
|
|
|
|
+# define ATMCI_PDC_CONNECTED 0
|
|
|
|
+#else
|
|
|
|
+# define ATMCI_PDC_CONNECTED 1
|
|
|
|
+#endif
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Fix sconfig's burst size according to atmel MCI. We need to convert them as:
|
|
* Fix sconfig's burst size according to atmel MCI. We need to convert them as:
|
|
* 1 -> 0, 4 -> 1, 8 -> 2, 16 -> 3.
|
|
* 1 -> 0, 4 -> 1, 8 -> 2, 16 -> 3.
|