diff options
| author | Susheel Khiani <skhiani@codeaurora.org> | 2015-12-04 17:23:57 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:20:08 -0700 |
| commit | 832f4c8a6de285329720091e879a7b571bde321a (patch) | |
| tree | 6b84f653c66b47ecc84f23818aad7db9ba9e28e7 /include/soc/qcom | |
| parent | f75d28562cc2d12443356ad789e581b125a7a7c9 (diff) | |
soc: qcom: Expose TZ specific device id to other functions
We need to pass TZ specific device id when
calling into TZ for SMMU configuration. Expose
these device ids and an interface function which
can be used to extract these device id.
CRs-Fixed: 959535
Change-Id: I31239d187c893e1bf419a5e9b5add127699ef701
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Diffstat (limited to 'include/soc/qcom')
| -rw-r--r-- | include/soc/qcom/msm_tz_smmu.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/soc/qcom/msm_tz_smmu.h b/include/soc/qcom/msm_tz_smmu.h index c16ea8336d7a..13657cd03f48 100644 --- a/include/soc/qcom/msm_tz_smmu.h +++ b/include/soc/qcom/msm_tz_smmu.h @@ -15,10 +15,44 @@ #include <linux/device.h> +enum tz_smmu_device_id { + TZ_DEVICE_START = 0, + TZ_DEVICE_VIDEO = 0, + TZ_DEVICE_MDSS, + TZ_DEVICE_LPASS, + TZ_DEVICE_MDSS_BOOT, + TZ_DEVICE_USB1_HS, + TZ_DEVICE_OCMEM, + TZ_DEVICE_LPASS_CORE, + TZ_DEVICE_VPU, + TZ_DEVICE_COPSS_SMMU, + TZ_DEVICE_USB3_0, + TZ_DEVICE_USB3_1, + TZ_DEVICE_PCIE_0, + TZ_DEVICE_PCIE_1, + TZ_DEVICE_BCSS, + TZ_DEVICE_VCAP, + TZ_DEVICE_PCIE20, + TZ_DEVICE_IPA, + TZ_DEVICE_APPS, + TZ_DEVICE_GPU, + TZ_DEVICE_UFS, + TZ_DEVICE_ICE, + TZ_DEVICE_ROT, + TZ_DEVICE_VFE, + TZ_DEVICE_ANOC0, + TZ_DEVICE_ANOC1, + TZ_DEVICE_ANOC2, + TZ_DEVICE_CPP, + TZ_DEVICE_JPEG, + TZ_DEVICE_MAX, +}; + #ifdef CONFIG_MSM_TZ_SMMU int msm_tz_smmu_atos_start(struct device *dev, int cb_num); int msm_tz_smmu_atos_end(struct device *dev, int cb_num); +enum tz_smmu_device_id msm_dev_to_device_id(struct device *dev); #else @@ -32,6 +66,11 @@ static inline int msm_tz_smmu_atos_end(struct device *dev, int cb_num) return 0; } +static inline enum tz_smmu_device_id msm_dev_to_device_id(struct device *dev) +{ + return -EINVAL; +} + #endif /* CONFIG_MSM_TZ_SMMU */ #endif /* __MSM_TZ_SMMU_H__ */ |
