From: Jarkko Nikula Date: Mon, 26 Sep 2011 07:45:42 +0000 (+0300) Subject: ARM: OMAP: mcbsp: Make threshold based transfer code generic X-Git-Tag: v3.2-rc1~90^2~8^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bba67ab3aa629f88e17786b07177b76b925cb0e;p=pandora-kernel.git ARM: OMAP: mcbsp: Make threshold based transfer code generic Remove CONFIG_ARCH_OMAP3 conditional compilation and cpu_is_omap34xx test around buffer threshold based transfer and DMA operating mode control. Use instead the buffer_size in platform data to determine when these sysfs controls are exposed and when to access related McBSP registers. Rationale for this is to make code generic and to allow to use it on OMAP4 that also supports threshold based transfers. Currently buffer_size variable is set only for OMAP3 SoCs but it is easy to extend to OMAP4 and any later OMAP version. Signed-off-by: Jarkko Nikula Acked-by: Peter Ujfalusi Tested-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed