1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel MID SoC Camera Imaging ISP subsystem. 4 * 5 * Copyright (c) 2014 Intel Corporation. All Rights Reserved. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License version 9 * 2 as published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 */ 16 #ifndef ATOMISP_GMIN_PLATFORM_H_ 17 #define ATOMISP_GMIN_PLATFORM_H_ 18 19 #include "atomisp_platform.h" 20 21 int atomisp_register_i2c_module(struct v4l2_subdev *subdev, 22 struct camera_sensor_platform_data *plat_data, 23 enum intel_v4l2_subdev_type type); 24 struct v4l2_subdev *atomisp_gmin_find_subdev(struct i2c_adapter *adapter, 25 struct i2c_board_info *board_info); 26 int atomisp_gmin_remove_subdev(struct v4l2_subdev *sd); 27 int gmin_get_var_int(struct device *dev, bool is_gmin, 28 const char *var, int def); 29 struct camera_sensor_platform_data * 30 gmin_camera_platform_data( 31 struct v4l2_subdev *subdev, 32 enum atomisp_input_format csi_format, 33 enum atomisp_bayer_order csi_bayer); 34 35 int atomisp_gmin_register_vcm_control(struct camera_vcm_control *); 36 37 #endif 38