|
@@ -1,6 +1,7 @@
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
/*
|
|
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
|
|
|
|
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
*/
|
|
|
|
|
|
#ifndef _CAM_COMPAT_H_
|
|
#ifndef _CAM_COMPAT_H_
|
|
@@ -13,6 +14,7 @@
|
|
#include <linux/qcom_scm.h>
|
|
#include <linux/qcom_scm.h>
|
|
#include <linux/list_sort.h>
|
|
#include <linux/list_sort.h>
|
|
#include <linux/dma-iommu.h>
|
|
#include <linux/dma-iommu.h>
|
|
|
|
+#include <soc/qcom/of_common.h>
|
|
|
|
|
|
#include "cam_csiphy_dev.h"
|
|
#include "cam_csiphy_dev.h"
|
|
#include "cam_cpastop_hw.h"
|
|
#include "cam_cpastop_hw.h"
|
|
@@ -47,7 +49,7 @@ int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
|
|
void cam_free_clear(const void *);
|
|
void cam_free_clear(const void *);
|
|
void cam_check_iommu_faults(struct iommu_domain *domain,
|
|
void cam_check_iommu_faults(struct iommu_domain *domain,
|
|
struct cam_smmu_pf_info *pf_info);
|
|
struct cam_smmu_pf_info *pf_info);
|
|
-int cam_get_ddr_type(void);
|
|
|
|
|
|
+static inline int cam_get_ddr_type(void) { return of_fdt_get_ddrtype(); }
|
|
int cam_compat_util_get_dmabuf_va(struct dma_buf *dmabuf, uintptr_t *vaddr);
|
|
int cam_compat_util_get_dmabuf_va(struct dma_buf *dmabuf, uintptr_t *vaddr);
|
|
void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr);
|
|
void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr);
|
|
void cam_smmu_util_iommu_custom(struct device *dev,
|
|
void cam_smmu_util_iommu_custom(struct device *dev,
|