diff options
author | Roy Pledge <roy.pledge@nxp.com> | 2017-09-18 23:39:43 +0300 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2017-09-22 21:33:07 +0300 |
commit | e6e2df69c8321fcb5497a409a1a2a3139b15c3d8 (patch) | |
tree | a75ba68290c69111fffe696588599de1fbdb3739 /drivers/soc/fsl/qbman/qman_priv.h | |
parent | 219e8e0580cc441504b75e291401cf108e1a78f3 (diff) | |
download | linux-e6e2df69c8321fcb5497a409a1a2a3139b15c3d8.tar.xz |
soc/fsl/qbman: Rework portal mapping calls for ARM/PPC
Rework portal mapping for PPC and ARM. The PPC devices require a
cacheable coherent mapping while ARM will work with a non-cachable/write
combine mapping. This also eliminates the need for manual cache
flushes on ARM. This also fixes the code so sparse checking is clean.
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/qbman/qman_priv.h')
-rw-r--r-- | drivers/soc/fsl/qbman/qman_priv.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/soc/fsl/qbman/qman_priv.h b/drivers/soc/fsl/qbman/qman_priv.h index b1e2cbfd449b..9407d2e72c02 100644 --- a/drivers/soc/fsl/qbman/qman_priv.h +++ b/drivers/soc/fsl/qbman/qman_priv.h @@ -153,11 +153,9 @@ static inline void qman_cgrs_xor(struct qman_cgrs *dest, void qman_init_cgr_all(void); struct qm_portal_config { - /* - * Corenet portal addresses; - * [0]==cache-enabled, [1]==cache-inhibited. - */ - void __iomem *addr_virt[2]; + /* Portal addresses */ + void *addr_virt_ce; + void __iomem *addr_virt_ci; struct device *dev; struct iommu_domain *iommu_domain; /* Allow these to be joined in lists */ |