From 09e6667fdb5fe0584b0e3b155307d03e3ee5a3dc Mon Sep 17 00:00:00 2001 From: Dipen Patel Date: Wed, 29 Jan 2020 14:59:06 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2287319 Reviewed-by: Stephen Warren Reviewed-by: Bibek Basu Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- include/linux/gpio-tegra186.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/linux/gpio-tegra186.h (limited to 'include') 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 @@ +/* + * Copyright (c) 2020, 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. + */ + +#ifndef _LINUX_GTE_GPIO_TEGRA186_H +#define _LINUX_GTE_GPIO_TEGRA186_H + +int tegra_gpio_enable_external_gte(struct gpio_chip *chip); + +#endif -- cgit v1.2.2