cam_cdm_soc.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _CAM_CDM_SOC_H_
  7. #define _CAM_CDM_SOC_H_
  8. #define CAM_HW_CDM_CPAS_0_NAME "qcom,cam170-cpas-cdm0"
  9. #define CAM_HW_CDM_CPAS_NAME_1_0 "qcom,cam-cpas-cdm1_0"
  10. #define CAM_HW_CDM_CPAS_NAME_1_1 "qcom,cam-cpas-cdm1_1"
  11. #define CAM_HW_CDM_CPAS_NAME_1_2 "qcom,cam-cpas-cdm1_2"
  12. #define CAM_HW_CDM_IFE_NAME_1_2 "qcom,cam-ife-cdm1_2"
  13. #define CAM_HW_CDM_CPAS_NAME_2_0 "qcom,cam-cpas-cdm2_0"
  14. #define CAM_HW_CDM_OPE_NAME_2_0 "qcom,cam-ope-cdm2_0"
  15. #define CAM_HW_CDM_CPAS_NAME_2_1 "qcom,cam-cpas-cdm2_1"
  16. #define CAM_HW_CDM_RT_NAME_2_1 "qcom,cam-rt-cdm2_1"
  17. #define CAM_HW_CDM_OPE_NAME_2_1 "qcom,cam-ope-cdm2_1"
  18. #define CAM_HW_CDM_RT_NAME_2_2 "qcom,cam-rt-cdm2_2"
  19. int cam_hw_cdm_soc_get_dt_properties(struct cam_hw_info *cdm_hw,
  20. const struct of_device_id *table);
  21. bool cam_cdm_read_hw_reg(struct cam_hw_info *cdm_hw,
  22. uint32_t reg, uint32_t *value);
  23. bool cam_cdm_write_hw_reg(struct cam_hw_info *cdm_hw,
  24. uint32_t reg, uint32_t value);
  25. int cam_cdm_intf_mgr_soc_get_dt_properties(
  26. struct platform_device *pdev,
  27. struct cam_cdm_intf_mgr *mgr);
  28. int cam_cdm_soc_load_dt_private(struct platform_device *pdev,
  29. struct cam_cdm_private_dt_data *ptr);
  30. #endif /* _CAM_CDM_SOC_H_ */