dma: imx-sdma: Assign a default script number for ROM firmware cases
authorNicolin Chen <Guangyu.Chen@freescale.com>
Wed, 8 Jan 2014 08:45:56 +0000 (16:45 +0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 13 Jan 2014 09:22:04 +0000 (14:52 +0530)
commit70dabaede806e12881a527ef9460b293ec15af59
treeb7286fed3e60c6a785a24e5ef9a9eb41497ffc1b
parente5b2886145bb0c3d7949952bd618529f8bea4cf7
dma: imx-sdma: Assign a default script number for ROM firmware cases

i.MX series have inner firmware in its ROM code: when SDMA isn't provided
any firmware from Kernel or rootfs, the default inner ROM firmware will be
activated. However the current driver doesn't assign any script number to
this situation, and those platform running in this case would be broken.

Thus this patch adds a default script number when no external firmware being
loaded so that people would continue to be able to use basic scripts to run
their platform without any firmware.

Reported-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c