[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bb630ee8242145fa926ee0b0147e0851d3e5b34f.1309368631.git.nicolas.ferre@atmel.com>
Date: Wed, 29 Jun 2011 20:00:17 +0200
From: Nicolas Ferre <nicolas.ferre@...el.com>
To: alsa-devel@...a-project.org, broonie@...nsource.wolfsonmicro.com,
lrg@...com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Nicolas Ferre <nicolas.ferre@...el.com>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Subject: [PATCH 3/5] ASoC: atmel-ssc: dmaengine usage switch depending on cpu
Signed-off-by: Nicolas Ferre <nicolas.ferre@...el.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
---
include/linux/atmel-ssc.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h
index 2bab4b4..52b4c20 100644
--- a/include/linux/atmel-ssc.h
+++ b/include/linux/atmel-ssc.h
@@ -3,6 +3,7 @@
#include <linux/platform_device.h>
#include <linux/list.h>
+#include <mach/cpu.h>
struct ssc_device {
struct list_head list;
@@ -310,4 +311,6 @@ void ssc_free(struct ssc_device *ssc);
#define ssc_readl(base, reg) __raw_readl(base + SSC_##reg)
#define ssc_writel(base, reg, value) __raw_writel((value), base + SSC_##reg)
+#define ssc_use_dmaengine() cpu_is_at91sam9x5()
+
#endif /* __INCLUDE_ATMEL_SSC_H */
--
1.7.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists