diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-12 05:18:14 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-01-29 19:14:49 -0500 |
commit | 6866fd3b7289a283741752b73e0e09f410b7639d (patch) | |
tree | aa8bec586fb4cae492ae63931523ba560f722b1a /drivers/dma | |
parent | 1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff) |
dmaengine i.MX SDMA: Fix firmware loading
When loading the microcode to the SDMA engine we have to use
the ram_code_start_addr found in the firmware image. The copy
in the sdma engine is not initialized correctly. This is broken
since:
5b28aa3 dmaengine i.MX SDMA: Allow to run without firmware
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d5a5d4d9c19b..75df8b937413 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1135,7 +1135,7 @@ static int __init sdma_get_firmware(struct sdma_engine *sdma, | |||
1135 | /* download the RAM image for SDMA */ | 1135 | /* download the RAM image for SDMA */ |
1136 | sdma_load_script(sdma, ram_code, | 1136 | sdma_load_script(sdma, ram_code, |
1137 | header->ram_code_size, | 1137 | header->ram_code_size, |
1138 | sdma->script_addrs->ram_code_start_addr); | 1138 | addr->ram_code_start_addr); |
1139 | clk_disable(sdma->clk); | 1139 | clk_disable(sdma->clk); |
1140 | 1140 | ||
1141 | sdma_add_scripts(sdma, addr); | 1141 | sdma_add_scripts(sdma, addr); |