| /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| #ifndef _CAM_CPAS_SOC_H_ |
| #define _CAM_CPAS_SOC_H_ |
| |
| #include "cam_soc_util.h" |
| |
| #define CAM_CPAS_MAX_CLIENTS 20 |
| |
| /** |
| * struct cam_cpas_private_soc : CPAS private DT info |
| * |
| * @arch_compat: ARCH compatible string |
| * @client_id_based: Whether clients are id based |
| * @num_clients: Number of clients supported |
| * @client_name: Client names |
| * @axi_camnoc_based: Whether AXi access is camnoc based |
| * @client_axi_port_name: AXI Port name for each client |
| * @axi_port_list_node : Node representing AXI Ports list |
| * |
| */ |
| struct cam_cpas_private_soc { |
| const char *arch_compat; |
| bool client_id_based; |
| uint32_t num_clients; |
| const char *client_name[CAM_CPAS_MAX_CLIENTS]; |
| bool axi_camnoc_based; |
| const char *client_axi_port_name[CAM_CPAS_MAX_CLIENTS]; |
| struct device_node *axi_port_list_node; |
| }; |
| |
| int cam_cpas_soc_init_resources(struct cam_hw_soc_info *soc_info, |
| irq_handler_t vfe_irq_handler, void *irq_data); |
| int cam_cpas_soc_deinit_resources(struct cam_hw_soc_info *soc_info); |
| int cam_cpas_soc_enable_resources(struct cam_hw_soc_info *soc_info); |
| int cam_cpas_soc_disable_resources(struct cam_hw_soc_info *soc_info); |
| #endif /* _CAM_CPAS_SOC_H_ */ |