blob: d99a878e946df66645202491bf00eed9991b4077 [file] [log] [blame]
Lakshmi Narayana Kalavala85c40352017-05-15 16:19:13 -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_ICP_HW_MGR_INTF_H
14#define CAM_ICP_HW_MGR_INTF_H
15
16#include <uapi/media/cam_icp.h>
17#include <uapi/media/cam_defs.h>
18#include <linux/of.h>
19#include "cam_cpas_api.h"
20
Suresh Vankadara34494fc2017-08-12 18:18:09 +053021#define ICP_TURBO_VOTE 600000000
22#define ICP_SVS_VOTE 400000000
Lakshmi Narayana Kalavala85c40352017-05-15 16:19:13 -070023
24int cam_icp_hw_mgr_init(struct device_node *of_node,
25 uint64_t *hw_mgr_hdl);
26
27/**
28 * struct cam_icp_cpas_vote
29 * @ahb_vote: AHB vote info
30 * @axi_vote: AXI vote info
31 * @ahb_vote_valid: Flag for ahb vote data
32 * @axi_vote_valid: flag for axi vote data
33 */
34struct cam_icp_cpas_vote {
35 struct cam_ahb_vote ahb_vote;
36 struct cam_axi_vote axi_vote;
37 uint32_t ahb_vote_valid;
38 uint32_t axi_vote_valid;
39};
40
41#endif /* CAM_ICP_HW_MGR_INTF_H */