]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: imx-sdma: pass sdma firmware name via platform data
authorShawn Guo <shawn.guo@linaro.org>
Wed, 22 Jun 2011 14:41:31 +0000 (22:41 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 27 Jun 2011 09:50:14 +0000 (11:50 +0200)
commitd09870954abad36ad0cfb09b9afa391bfea72a00
treed67038e20abbac136aca364b7a069781a59e6c4d
parent24b9ad95a6927a8aca2473314ae6509fec9b4e14
dmaengine: imx-sdma: pass sdma firmware name via platform data

It is not good to have cpu_name and to_version encoded into sdma
firmware name as variables.  For example, there are three TOs of
imx51 soc, the sdma script never changes since TO1, which means
all three TOs of imx51 uses TO1 version of sdma script.  But we
have to prepare three identical firmwares, sdma-imx51-to1.bin
sdma-imx51-to2.bin and sdma-imx51-to3.bin, to have the kernel
capable of running on all three TOs.

The patch removes cpu_name and to_version from sdma platform data,
and instead uses fw_name to pass the firmware name, so that we can
pass the TO version where it's relevant and skip it where only one
firmware exists.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mm-imx25.c
arch/arm/mach-imx/mm-imx31.c
arch/arm/mach-imx/mm-imx35.c
arch/arm/mach-mx5/mm.c
arch/arm/plat-mxc/include/mach/sdma.h
drivers/dma/imx-sdma.c