diff options
-rw-r--r-- | drivers/dma/imx-sdma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 152247675feb..4e7918339b12 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1252,6 +1252,10 @@ static void sdma_add_scripts(struct sdma_engine *sdma, | |||
1252 | s32 *saddr_arr = (u32 *)sdma->script_addrs; | 1252 | s32 *saddr_arr = (u32 *)sdma->script_addrs; |
1253 | int i; | 1253 | int i; |
1254 | 1254 | ||
1255 | /* use the default firmware in ROM if missing external firmware */ | ||
1256 | if (!sdma->script_number) | ||
1257 | sdma->script_number = SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1; | ||
1258 | |||
1255 | for (i = 0; i < sdma->script_number; i++) | 1259 | for (i = 0; i < sdma->script_number; i++) |
1256 | if (addr_arr[i] > 0) | 1260 | if (addr_arr[i] > 0) |
1257 | saddr_arr[i] = addr_arr[i]; | 1261 | saddr_arr[i] = addr_arr[i]; |