mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Convert automotive ISC kernel driver to OOT module. Jira CAMERASW-7592 Change-Id: I0a81b58df941ef38bf0fb3226086e13b6d68d012 Signed-off-by: Frank Chen <frankc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2811344 Reviewed-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
30 lines
559 B
C
30 lines
559 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __ISC_GPIO_PRIV_H__
|
|
#define __ISC_GPIO_PRIV_H__
|
|
|
|
struct isc_gpio_plat_data {
|
|
const char *gpio_prnt_chip;
|
|
u32 max_gpio;
|
|
};
|
|
|
|
struct isc_gpio_desc {
|
|
u32 gpio;
|
|
atomic_t ref_cnt;
|
|
};
|
|
|
|
struct isc_gpio_priv {
|
|
struct device *pdev;
|
|
struct isc_gpio_plat_data pdata;
|
|
struct mutex mutex;
|
|
struct gpio_chip gpio_chip;
|
|
struct gpio_chip *tgc;
|
|
struct isc_gpio_desc *gpios;
|
|
u32 num_gpio;
|
|
};
|
|
|
|
#endif /* __ISC_GPIO_PRIV_H__ */
|