gpio: tegra186: Add HTE support
authorDipen Patel <dipenp@nvidia.com>
Fri, 22 Apr 2022 20:52:17 +0000 (13:52 -0700)
committerThierry Reding <treding@nvidia.com>
Wed, 4 May 2022 09:06:13 +0000 (11:06 +0200)
commit10e4afd6cc4bf1b6cc21ad9418bcebdcc18abefb
tree58904b5ce82f2c9be040697c43bc02f1fc7d4962
parent42112dd77b74220e6a1f4a71bb51ca3f583d3842
gpio: tegra186: Add HTE support

Tegra194 AON GPIO controller with the use of its internal hardware
timestamping engine (HTE), also known as GTE, can timestamp GPIO lines
through system counter. This patch implements enable/disable callbacks
for the GPIO controller. In enable call, it will set timestamp function
bit and GPIO line rising/falling edges in the config register. In
disable call, it restores the state.

Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpio/gpio-tegra186.c