summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDipen Patel <dipenp@nvidia.com>2020-01-29 17:59:06 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2020-02-24 10:25:10 -0500
commit09e6667fdb5fe0584b0e3b155307d03e3ee5a3dc (patch)
tree5e3b48ec5f8a1e41e776377643d0506069526928 /include
parent9f9fd43261bf079bc16ee0290474194d2210171f (diff)
drivers: gpio-tegra186: Add conditional GTE flag
There is use_timestamp gpio driver DT property which is used to map GTE registers address space which will conflict if GTE driver is enabled. This CL creates function for GTE driver to indicate its presence so using flag which will make timestamp control function just to return enabling the timestamp bit. Bug 2757864 Change-Id: I653c237455131f1b1a92a6de3cc79385d799316f Signed-off-by: Dipen Patel <dipenp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2287319 Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rw-r--r--include/linux/gpio-tegra186.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/gpio-tegra186.h b/include/linux/gpio-tegra186.h
new file mode 100644
index 000000000..07912a120
--- /dev/null
+++ b/include/linux/gpio-tegra186.h
@@ -0,0 +1,19 @@
1/*
2 * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#ifndef _LINUX_GTE_GPIO_TEGRA186_H
15#define _LINUX_GTE_GPIO_TEGRA186_H
16
17int tegra_gpio_enable_external_gte(struct gpio_chip *chip);
18
19#endif