Lakshmi Narayana Kalavala | 85c4035 | 2017-05-15 16:19:13 -0700 | [diff] [blame] | 1 | /* 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 | |
| 18 | int cam_bps_init_soc_resources(struct cam_hw_soc_info *soc_info, |
| 19 | irq_handler_t bps_irq_handler, void *irq_data); |
| 20 | |
| 21 | int cam_bps_enable_soc_resources(struct cam_hw_soc_info *soc_info); |
| 22 | |
| 23 | int cam_bps_disable_soc_resources(struct cam_hw_soc_info *soc_info); |
| 24 | |
Suresh Vankadara | 6657bc2 | 2017-07-31 10:33:04 +0530 | [diff] [blame] | 25 | int cam_bps_get_gdsc_control(struct cam_hw_soc_info *soc_info); |
| 26 | |
| 27 | int cam_bps_transfer_gdsc_control(struct cam_hw_soc_info *soc_info); |
| 28 | |
Suresh Vankadara | 34494fc | 2017-08-12 18:18:09 +0530 | [diff] [blame] | 29 | int cam_bps_update_clk_rate(struct cam_hw_soc_info *soc_info, |
| 30 | uint32_t clk_rate); |
Lakshmi Narayana Kalavala | 85c4035 | 2017-05-15 16:19:13 -0700 | [diff] [blame] | 31 | #endif /* _CAM_BPS_SOC_H_*/ |