msm: camera: common: Reinstate API to check memory types
Add back in check for ddr memory type to distinguish between DDR4/5 memory types. CRs-fixed: 3136181 Change-Id: Ia152cde2786bf6e3da172d2b7046f9871d4f8e3c Signed-off-by: Karthik Jayakumar <quic_kjayakum@quicinc.com> Signed-off-by: Wasim Khan <quic_wasikhan@quicinc.com>
Cette révision appartient à :
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
|
||||
* copyright (c) 2022, Qulacomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
@@ -364,14 +364,6 @@ void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr)
|
||||
|
||||
dma_buf_vunmap(dmabuf, &mapping);
|
||||
}
|
||||
|
||||
int cam_get_ddr_type(void)
|
||||
{
|
||||
/* We assume all chipsets running kernel version 5.15+
|
||||
* to be using only DDR5 based memory.
|
||||
*/
|
||||
return DDR_TYPE_LPDDR5;
|
||||
}
|
||||
#else
|
||||
void cam_smmu_util_iommu_custom(struct device *dev,
|
||||
dma_addr_t discard_start, size_t discard_length)
|
||||
@@ -410,9 +402,4 @@ void cam_compat_util_put_dmabuf_va(struct dma_buf *dmabuf, void *vaddr)
|
||||
{
|
||||
dma_buf_vunmap(dmabuf, vaddr);
|
||||
}
|
||||
|
||||
int cam_get_ddr_type(void)
|
||||
{
|
||||
return of_fdt_get_ddrtype();
|
||||
}
|
||||
#endif
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur