diff options
author | Varun Sethi <Varun.Sethi@freescale.com> | 2013-07-22 14:03:54 (GMT) |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-08-26 07:47:31 (GMT) |
commit | 5db32addf766b3b58f4860860e27aef6edd23d95 (patch) | |
tree | 501561c0078ef44ec1f6ca70cd5a9afad4436a79 /drivers | |
parent | 3e9416a16c9c71bae0ecbe476bd3f832bab52f81 (diff) | |
download | linux-fsl-qoriq-5db32addf766b3b58f4860860e27aef6edd23d95.tar.xz |
Add operation mapping for PMAN.
Setup and operation mapping index for PMAN.
Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
Change-Id: I4384a247491293260c1da1d4cf6cfc3b2bec2034
Reviewed-on: http://git.am.freescale.net:8181/3441
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c index ddd0836..e85c039 100644 --- a/drivers/iommu/fsl_pamu.c +++ b/drivers/iommu/fsl_pamu.c @@ -617,6 +617,7 @@ found_cpu_node: #define QMAN_PORTAL_PAACE 2 #define BMAN_PAACE 3 #define FMAN_PAACE 4 +#define PMAN_PAACE 5 /** * Setup operation mapping and stash destinations for QMAN and QMAN portal. @@ -652,6 +653,10 @@ static void setup_dpaa_paace(struct paace *ppaace, int paace_type) set_bf(ppaace->impl_attr, PAACE_IA_CID, get_stash_id(IOMMU_ATTR_CACHE_L3, 0)); break; + case PMAN_PAACE: + set_bf(ppaace->impl_attr, PAACE_IA_OTM, PAACE_OTM_INDEXED); + ppaace->op_encode.index_ot.omi = OMI_PMAN; + break; } } @@ -696,6 +701,13 @@ static void __init setup_omt(struct ome *omt) ome = &omt[OMI_CAAM]; ome->moe[IOE_READ_IDX] = EOE_VALID | EOE_READI; ome->moe[IOE_WRITE_IDX] = EOE_VALID | EOE_WRITE; + + /* Configure OMI_PMAN */ + ome = &omt[OMI_PMAN]; + ome->moe[IOE_DIRECT0_IDX] = EOE_LDEC | EOE_VALID; + ome->moe[IOE_DIRECT1_IDX] = EOE_LDEC | EOE_VALID; + + } /* @@ -815,6 +827,8 @@ static void __init setup_liodns(void) setup_dpaa_paace(ppaace, QMAN_PAACE); if (of_device_is_compatible(node, "fsl,bman")) setup_dpaa_paace(ppaace, BMAN_PAACE); + if (of_device_is_compatible(node, "fsl,pman")) + setup_dpaa_paace(ppaace, PMAN_PAACE); #ifdef CONFIG_FSL_FMAN_CPC_STASH if (of_device_is_compatible(node, "fsl,fman-port-10g-rx") || of_device_is_compatible(node, "fsl,fman-port-1g-rx")) |