diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2011-02-24 04:46:55 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-24 16:03:52 -0500 |
commit | 9504ba64f014cfd50a64106e49c8ba729522db5b (patch) | |
tree | acc4df7736ad2bdd435394c7d783caf49eb15bef /arch/arm/mach-omap2/mcbsp.c | |
parent | e95496d4acadd0b72c4947be61e8d44700fdaae7 (diff) |
OMAP: McBSP: APIs to pass DMA params from McBSP driver to client drivers
After McBSP driver is hwmod adapted, the information about the hw would be
obtained from the hwmod database by the mcbsp driver. Since DMA programming is
handled by the client driver, APIs are provided to pass the DMA channel number
and base address of data register required by the client driver for DMA
programming.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Charulatha V <charu@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mcbsp.c')
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 4ada6a9ca4aa..565b9064a328 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -126,6 +126,8 @@ static int omap_init_mcbsp(struct omap_hwmod *oh, void *unused) | |||
126 | return -ENOMEM; | 126 | return -ENOMEM; |
127 | } | 127 | } |
128 | 128 | ||
129 | pdata->mcbsp_config_type = oh->class->rev; | ||
130 | |||
129 | if (oh->class->rev == MCBSP_CONFIG_TYPE3) { | 131 | if (oh->class->rev == MCBSP_CONFIG_TYPE3) { |
130 | if (id == 2) | 132 | if (id == 2) |
131 | /* The FIFO has 1024 + 256 locations */ | 133 | /* The FIFO has 1024 + 256 locations */ |