tegrakernel/kernel/nvidia/include/media/isc-mgr.h

52 lines
1.4 KiB
C
Raw Normal View History

2022-02-16 09:13:02 -06:00
/*
* Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __TEGRA_ISC_MGR_H__
#define __TEGRA_ISC_MGR_H__
#include <uapi/media/isc-mgr.h>
#define MAX_ISC_GPIOS 8
struct isc_mgr_client {
struct mutex mutex;
struct list_head list;
struct i2c_client *client;
struct isc_mgr_new_dev cfg;
struct isc_dev_platform_data pdata;
int id;
};
struct isc_mgr_platform_data {
int bus;
int num_pwr_gpios;
u32 pwr_gpios[MAX_ISC_GPIOS];
u32 pwr_flags[MAX_ISC_GPIOS];
int num_pwr_map;
u32 pwr_mapping[MAX_ISC_GPIOS];
int num_misc_gpios;
u32 misc_gpios[MAX_ISC_GPIOS];
u32 misc_flags[MAX_ISC_GPIOS];
int csi_port;
bool default_pwr_on;
bool runtime_pwrctrl_off;
char *drv_name;
};
int isc_delete_lst(struct device *dev, struct i2c_client *client);
#endif /* __TEGRA_ISC_MGR_H__ */