summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch b/meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch
new file mode 100644
index 0000000000..6e31ead2bd
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap2-git/omap3evm/0001-ASoC-OMAP-Add-basic-support-for-OMAP34xx-in-McBSP.patch
@@ -0,0 +1,55 @@
1From a1dbb6dd28e9815a307b87b8d96dcf371d6cfd58 Mon Sep 17 00:00:00 2001
2From: Jarkko Nikula <jarkko.nikula@nokia.com>
3Date: Mon, 19 May 2008 13:24:41 +0300
4Subject: [PATCH] ASoC: OMAP: Add basic support for OMAP34xx in McBSP DAI driver
5
6This adds support for OMAP34xx McBSP port 1 and 2.
7
8Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
9---
10 sound/soc/omap/omap-mcbsp.c | 20 +++++++++++++++++++-
11 1 files changed, 19 insertions(+), 1 deletions(-)
12
13diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
14index 40d87e6..8e6ec9d 100644
15--- a/sound/soc/omap/omap-mcbsp.c
16+++ b/sound/soc/omap/omap-mcbsp.c
17@@ -99,6 +99,21 @@ static const unsigned long omap2420_mcbsp_port[][2] = {
18 static const int omap2420_dma_reqs[][2] = {};
19 static const unsigned long omap2420_mcbsp_port[][2] = {};
20 #endif
21+#if defined(CONFIG_ARCH_OMAP34XX)
22+static const int omap34xx_dma_reqs[][2] = {
23+ { OMAP24XX_DMA_MCBSP1_TX, OMAP24XX_DMA_MCBSP1_RX },
24+ { OMAP24XX_DMA_MCBSP2_TX, OMAP24XX_DMA_MCBSP2_RX },
25+};
26+static const unsigned long omap34xx_mcbsp_port[][2] = {
27+ { OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR2,
28+ OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR2 },
29+ { OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR2,
30+ OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR2 },
31+};
32+#else
33+static const int omap34xx_dma_reqs[][2] = {};
34+static const unsigned long omap34xx_mcbsp_port[][2] = {};
35+#endif
36
37 static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream)
38 {
39@@ -169,9 +184,12 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
40 } else if (cpu_is_omap2420()) {
41 dma = omap2420_dma_reqs[bus_id][substream->stream];
42 port = omap2420_mcbsp_port[bus_id][substream->stream];
43+ } else if (cpu_is_omap343x()) {
44+ dma = omap34xx_dma_reqs[bus_id][substream->stream];
45+ port = omap34xx_mcbsp_port[bus_id][substream->stream];
46 } else {
47 /*
48- * TODO: Add support for 2430 and 3430
49+ * TODO: Add support for 2430
50 */
51 return -ENODEV;
52 }
53--
541.5.5.1
55