blob: 2dd2c0867411b5fe581a9447c1df88d8a0957533 [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_BPS_SOC_H_
14#define _CAM_BPS_SOC_H_
15
16#include "cam_soc_util.h"
17
18int cam_bps_init_soc_resources(struct cam_hw_soc_info *soc_info,
19 irq_handler_t bps_irq_handler, void *irq_data);
20
21int cam_bps_enable_soc_resources(struct cam_hw_soc_info *soc_info);
22
23int cam_bps_disable_soc_resources(struct cam_hw_soc_info *soc_info);
24
Suresh Vankadara6657bc22017-07-31 10:33:04 +053025int cam_bps_get_gdsc_control(struct cam_hw_soc_info *soc_info);
26
27int cam_bps_transfer_gdsc_control(struct cam_hw_soc_info *soc_info);
28
Suresh Vankadara34494fc2017-08-12 18:18:09 +053029int cam_bps_update_clk_rate(struct cam_hw_soc_info *soc_info,
30 uint32_t clk_rate);
Lakshmi Narayana Kalavala85c40352017-05-15 16:19:13 -070031#endif /* _CAM_BPS_SOC_H_*/