blob: 765aba4d5bac17f29ab89a3884f4c05448747057 [file] [log] [blame]
Hariram Purushothamandc4402e2017-03-28 20:41:43 -07001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _CAM_CDM_SOC_H_
14#define _CAM_CDM_SOC_H_
15
16int cam_hw_cdm_soc_get_dt_properties(struct cam_hw_info *cdm_hw,
17 const struct of_device_id *table);
18bool cam_cdm_read_hw_reg(struct cam_hw_info *cdm_hw,
19 enum cam_cdm_regs reg, uint32_t *value);
20bool cam_cdm_write_hw_reg(struct cam_hw_info *cdm_hw,
21 enum cam_cdm_regs reg, uint32_t value);
22int cam_cdm_intf_mgr_soc_get_dt_properties(
23 struct platform_device *pdev,
24 struct cam_cdm_intf_mgr *mgr);
25int cam_cdm_soc_load_dt_private(struct platform_device *pdev,
26 struct cam_cdm_private_dt_data *ptr);
27
28#endif /* _CAM_CDM_SOC_H_ */