diff options
Diffstat (limited to 'drivers/crypto/omap-aes.c')
-rw-r--r-- | drivers/crypto/omap-aes.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 799ca517c121..41c91f3c7f14 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c | |||
@@ -339,18 +339,6 @@ static int omap_aes_dma_init(struct omap_aes_dev *dd) | |||
339 | goto err_dma_out; | 339 | goto err_dma_out; |
340 | } | 340 | } |
341 | 341 | ||
342 | omap_set_dma_dest_params(dd->dma_lch_in, 0, OMAP_DMA_AMODE_CONSTANT, | ||
343 | dd->phys_base + AES_REG_DATA, 0, 4); | ||
344 | |||
345 | omap_set_dma_dest_burst_mode(dd->dma_lch_in, OMAP_DMA_DATA_BURST_4); | ||
346 | omap_set_dma_src_burst_mode(dd->dma_lch_in, OMAP_DMA_DATA_BURST_4); | ||
347 | |||
348 | omap_set_dma_src_params(dd->dma_lch_out, 0, OMAP_DMA_AMODE_CONSTANT, | ||
349 | dd->phys_base + AES_REG_DATA, 0, 4); | ||
350 | |||
351 | omap_set_dma_src_burst_mode(dd->dma_lch_out, OMAP_DMA_DATA_BURST_4); | ||
352 | omap_set_dma_dest_burst_mode(dd->dma_lch_out, OMAP_DMA_DATA_BURST_4); | ||
353 | |||
354 | return 0; | 342 | return 0; |
355 | 343 | ||
356 | err_dma_out: | 344 | err_dma_out: |
@@ -443,6 +431,12 @@ static int omap_aes_crypt_dma(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, | |||
443 | len32 = DIV_ROUND_UP(length, sizeof(u32)); | 431 | len32 = DIV_ROUND_UP(length, sizeof(u32)); |
444 | 432 | ||
445 | /* IN */ | 433 | /* IN */ |
434 | omap_set_dma_dest_params(dd->dma_lch_in, 0, OMAP_DMA_AMODE_CONSTANT, | ||
435 | dd->phys_base + AES_REG_DATA, 0, 4); | ||
436 | |||
437 | omap_set_dma_dest_burst_mode(dd->dma_lch_in, OMAP_DMA_DATA_BURST_4); | ||
438 | omap_set_dma_src_burst_mode(dd->dma_lch_in, OMAP_DMA_DATA_BURST_4); | ||
439 | |||
446 | omap_set_dma_transfer_params(dd->dma_lch_in, OMAP_DMA_DATA_TYPE_S32, | 440 | omap_set_dma_transfer_params(dd->dma_lch_in, OMAP_DMA_DATA_TYPE_S32, |
447 | len32, 1, OMAP_DMA_SYNC_PACKET, dd->dma_in, | 441 | len32, 1, OMAP_DMA_SYNC_PACKET, dd->dma_in, |
448 | OMAP_DMA_DST_SYNC); | 442 | OMAP_DMA_DST_SYNC); |
@@ -451,6 +445,12 @@ static int omap_aes_crypt_dma(struct crypto_tfm *tfm, dma_addr_t dma_addr_in, | |||
451 | dma_addr_in, 0, 0); | 445 | dma_addr_in, 0, 0); |
452 | 446 | ||
453 | /* OUT */ | 447 | /* OUT */ |
448 | omap_set_dma_src_params(dd->dma_lch_out, 0, OMAP_DMA_AMODE_CONSTANT, | ||
449 | dd->phys_base + AES_REG_DATA, 0, 4); | ||
450 | |||
451 | omap_set_dma_src_burst_mode(dd->dma_lch_out, OMAP_DMA_DATA_BURST_4); | ||
452 | omap_set_dma_dest_burst_mode(dd->dma_lch_out, OMAP_DMA_DATA_BURST_4); | ||
453 | |||
454 | omap_set_dma_transfer_params(dd->dma_lch_out, OMAP_DMA_DATA_TYPE_S32, | 454 | omap_set_dma_transfer_params(dd->dma_lch_out, OMAP_DMA_DATA_TYPE_S32, |
455 | len32, 1, OMAP_DMA_SYNC_PACKET, | 455 | len32, 1, OMAP_DMA_SYNC_PACKET, |
456 | dd->dma_out, OMAP_DMA_SRC_SYNC); | 456 | dd->dma_out, OMAP_DMA_SRC_SYNC); |