Skip to content

Commit

Permalink
dmaengine i.MX SDMA: Fix firmware loading
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Hauer authored and Dan Williams committed Jan 30, 2011
1 parent 1bae4ce commit 6866fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ static int __init sdma_get_firmware(struct sdma_engine *sdma,
/* download the RAM image for SDMA */
sdma_load_script(sdma, ram_code,
header->ram_code_size,
sdma->script_addrs->ram_code_start_addr);
addr->ram_code_start_addr);
clk_disable(sdma->clk);

sdma_add_scripts(sdma, addr);
Expand Down

0 comments on commit 6866fd3

Please sign in to comment.