summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorVarun Sethi <Varun.Sethi@freescale.com>2014-03-10 19:19:40 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-03-18 18:38:12 (GMT)
commitcae1675c4b2b2d8384306a9844108abaf15a5150 (patch)
tree15168c21a77e2b771292925d76e3bf4c497d165b /arch/powerpc/include
parentbe144893e73b6fec387c41ca87378e4714b09666 (diff)
downloadlinux-fsl-qoriq-cae1675c4b2b2d8384306a9844108abaf15a5150.tar.xz
iommu/fsl: PAMU driver changes for DSP stasing support.
Modifications to PAMU driver for supporting DSP stashing. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I1462806c85f0f398a332ac321bb7b67a8cabc1bb Reviewed-on: http://git.am.freescale.net:8181/9617 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Stuart Yoder <stuart.yoder@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/fsl_pamu_stash.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_pamu_stash.h b/arch/powerpc/include/asm/fsl_pamu_stash.h
index caa1b21..d961be8 100644
--- a/arch/powerpc/include/asm/fsl_pamu_stash.h
+++ b/arch/powerpc/include/asm/fsl_pamu_stash.h
@@ -19,11 +19,23 @@
#ifndef __FSL_PAMU_STASH_H
#define __FSL_PAMU_STASH_H
+/* Define operation mapping indexes */
+enum omap_index {
+ OMI_QMAN,
+ OMI_FMAN,
+ OMI_QMAN_PRIV,
+ OMI_CAAM,
+ OMI_PMAN,
+ OMI_DSP,
+ OMI_MAX,
+};
+
/* cache stash targets */
enum pamu_stash_target {
PAMU_ATTR_CACHE_L1 = 1,
PAMU_ATTR_CACHE_L2,
PAMU_ATTR_CACHE_L3,
+ PAMU_ATTR_CACHE_DSP_L2,
};
/*
@@ -34,6 +46,12 @@ enum pamu_stash_target {
struct pamu_stash_attribute {
u32 cpu; /* cpu number */
u32 cache; /* cache to stash to: L1,L2,L3 */
+ u32 window; /* ~0 indicates all windows */
+};
+
+struct pamu_omi_attribute {
+ u32 omi; /* index in the operation mapping table */
+ u32 window; /* ~0 indicates all windows */
};
#endif /* __FSL_PAMU_STASH_H */