diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-07-22 14:05:49 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-24 20:21:02 (GMT) |
commit | e9f747c6bbdd5aa6642e2921ae1fd1f10e8f8a43 (patch) | |
tree | b512e1ab895265fdaf160cbef7aab34c70bc3db0 /drivers | |
parent | 71a2f1d71fc9bcbd8f3c96fef0c857642d408537 (diff) | |
download | linux-fsl-qoriq-e9f747c6bbdd5aa6642e2921ae1fd1f10e8f8a43.tar.xz |
Add operation mapping for DMA controller and Maple.
These are required for ALU DSP stashing use case.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: I7efacb81b60d23e6e5f91632547f8b9a04028a1f
Reviewed-on: http://git.am.freescale.net:8181/3442
Reviewed-by: Yoder Stuart-B08248 <stuart.yoder@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/fsl_pamu.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c index e85c039..4d466d6 100644 --- a/drivers/iommu/fsl_pamu.c +++ b/drivers/iommu/fsl_pamu.c @@ -707,7 +707,26 @@ static void __init setup_omt(struct ome *omt) ome->moe[IOE_DIRECT0_IDX] = EOE_LDEC | EOE_VALID; ome->moe[IOE_DIRECT1_IDX] = EOE_LDEC | EOE_VALID; + /* Configure OMI_DMA */ + ome = &omt[OMI_DMA]; + ome->moe[IOE_READ_IDX] = EOE_VALID | EOE_RSA; + ome->moe[IOE_EREAD0_IDX] = EOE_VALID | EOE_RSA; + ome->moe[IOE_WRITE_IDX] = EOE_VALID | EOE_WWSA; + ome->moe[IOE_EWRITE0_IDX] = EOE_VALID | EOE_WWSA; + + /* Configure OMI_DMA_READI */ + ome = &omt[OMI_DMA_READI]; + ome->moe[IOE_READ_IDX] = EOE_VALID | EOE_READI; + ome->moe[IOE_EREAD0_IDX] = EOE_VALID | EOE_READI; + ome->moe[IOE_WRITE_IDX] = EOE_VALID | EOE_WWSA; + ome->moe[IOE_EWRITE0_IDX] = EOE_VALID | EOE_WWSA; + /* Configure OMI_MAPLE */ + ome = &omt[OMI_MAPLE]; + ome->moe[IOE_READ_IDX] = EOE_VALID | EOE_RSA; + ome->moe[IOE_EREAD0_IDX] = EOE_VALID | EOE_RSA; + ome->moe[IOE_WRITE_IDX] = EOE_VALID | EOE_WWSA; + ome->moe[IOE_EWRITE0_IDX] = EOE_VALID | EOE_WWSA; } /* |